Lavoro terminato
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specifiche
Hi all,
I am looking for a developer who can code me an EA.
Let me be specific. First the definitions:
for a given bar t, let range(t)=high(t)-low(t). let T is the number of periods that I use for averaging (thus T is a parameter). Then AR=averageRange(T)=sum(t=1:T)range(t)/T
PP is the daily pivot point. I want the basic pivot calculation.
my trading rules would be following:
buy if current price<PP-(3*AR/8), TP=current price+(5*AR/8), SL=current price-(3*AR/8)
sell if current price>PP+(3*AR/8), TP=current price-(5*AR/8), SL=current price+(3*AR/8)
if SL hits on any case reverse the trade with the same amount. Put SL and TP the same way above. if SL hits again reverse the trade again. do this max n many times for a trade. make a parameter of n. If a trade reversed n many times and SL hit again, stop trading for that day.
Suppose EA opens a trade at day t but remained open on the rollover. hit n many SL on day t and day t+1, stop trading. start trading on day t+2.
AR might be different for a trade on different days. What I mean is: suppose EA opened a buy trade on day t with AR(t). SL and TP will use AR(t). then the trade remained open on the next day then SL hit. EA reverse the trade but now will use AR(t+1) for new SL and TP. and so on.
n=0 means there wont be a reversal!!!
if TP hits on any case we start over the game. and use the
buy if current price<PP-(3*AR/8), TP=current price+(5*AR/8), SL=current price-(3*AR/8)
sell if current price>PP+(3*AR/8), TP=current price-(5*AR/8), SL=current price+(3*AR/8) rules...
I need magic number option to run the same ea on different symbols.
I need just fixed lot option.
SL and TP can be visible or hidden. I need both options.
you can use other options that you think might be needed.
I will need the mq4 file.
thanks.