I am trying to create an EA that opens a position 1 pip above the high of the previous candle or 1 pip below it depending how price moves and once this position is opened to open a new position in this direction each time price either go 1 pip above (for a buy) or below (for a sell) the high/low of previous bar. The EA either buys or sells depending on the first trade.
A trailing stop is one pip above high or below low of previous candle in opposite direction.
All open positions closed once SL is hit.
Then the process starts again.
The idea is an always in the market EA. Can any one help. I tried something but it is not working: here is the shared link:
https://fxdreema.com/shared/T5noxGjhc
I am not sure if my logic is correct?
Thanks you.
Kimo