# 4 very simple trading strategi indicators

I need 4 simple trading strategies, which can be implemented in the "ttrTest package" in the R programming language

- Filter rule

- Moving average rule

- Support and resistance rule

- Channel break out

Specifics about the different strategies will be discussed beneath.

It is very simple strategies. I provide 3 examples of functions that works with the ttrTest package.

I need the strategies to be implemented with the dataSnoop function (also linked beneath).

I figure it should be relative easy, if you knos how to code?

1.1 Filter Rules

"A filter rule strategy is specified as follows. If the daily closing price (in U.S. dollars) of a foreign currency goes up by x% or more from its most recent low, then the speculator borrows the dollar and uses the proceeds to buy the foreign currency. When the closing price of the foreign currency drops by at least y% from a subsequent high, the speculator short sells the foreign currency and uses the proceeds to buy the dollar. We define the subsequent high as the highest price over the e most recent days and the subsequent low as the lowest price over the e most recent days. We also consider the case where a given long or short position is held for c days during which time all other signals are ignored."

1.2 Moving Average Rules

"The moving average of a currency price for a given day is computed as the simple average of prices over the previous n days, including the current day. Under a moving average rule, when the short moving average of a foreign currency price is above the long moving average by an amount larger than the band with b%, the speculator borrows the dollar to buy the foreign currency. Similarly, when the short moving average is below the long moving average by b%, the speculator short sells the FX to buy the dollar. In addition to this fixed percentage band filter, we also implement the moving average rules with a time delay filter, which requires that the long or short signals remain valid for d days before he takes any action. As in the filter rule case, we also consider the case where a given long or short position is held for c days during which time all other signals are ignored."

1.3 Trading Range Break (or Support and Resistance) Rules

"Under a trading range break rule, when the price of a foreign currency exceeds the maximum price (resistance level) over the previous n days by b%, the speculator borrows the dollar to buy the foreign currency. When the price goes below the minimum price over the previous n days by b%, the speculator sells short the FX to buy the dollar. We also consider an alternative definition for the resistance level, i.e., the local maximum (minimum), which is the most recent closing price higher (lower) than the e previous closing prices. As with the moving average rules, we implement the rules with a time delay filter, d, and as well we consider the case where a given long or short position is held for c days during which time all other signals are ignored."

1.4 Channel Breakout Rules

A channel is defined to be one that occurs when the high price of a foreign currency over the previous n days is within x% of the low over the previous n days. Under a channel breakout rule, the speculator borrows the dollar to buy FX when the closing price of the foreign currency goes above the channel by b% and sells short the FX to buy the dollar when the closing price goes below the channel by b%. Once again, we consider holding a given long or short position for c days during which all other signals are ignored.

( 0 reviews ) Viby j, Denmark

Project ID: #24101414

## Awarded to:

maurineted5

Greetings, I am Maurine, a bachelor in ECONOMICS & STATISTICS holder, and a proficient statistician. I offer data collection, analysis, interpretation, and presentation services. I'm competent in softwares such as Adva More

\$20 USD in 7 days
(19 Reviews)
4.5

## 5 freelancers are bidding on average \$105 for this job

chomsengdev

Hi I have read your description and I am interested in your project. As you can see my profile, I have top skills of automated trading software for cryptocurrency, forex as well as stock. I have experiences of MetaTrad More

\$200 USD in 7 days
(12 Reviews)
5.5
bry8ted

Hello, As a Software Developer, I am well skilled in Expert Advisor, pine script, indicators, sierra chart, amibroker, algo trader, thinkorswim Algorithm and ninjatrader (NT8 and NT7). Having done several tasks on the More

\$150 USD in 3 days
(8 Reviews)
4.9
abubakarayyub01

Hello, Dear Hiring Manager, We are a team of professional members of Statistics (Master & PhD), Mathematics (Masters & PhD), Biology, Bio-Chemistry, Biotechnology, Chemistry, Botany, Zoology, Physics and having years More

\$144 USD in 3 days
(3 Reviews)
3.0
Albdi

I work as a data scientist and algo trader. I just wanted to say Hi and let you know I offer FX and Equity backtesting services. I have also been using R for more than 7 years especially for financial analysis and am f More

\$10 USD in 7 days
(1 Review)
2.0