Stop and Reverse Strategy not working MT5
-
Hey here is a shared copy of a very Simple Stop and Reverse strategy for MT5.
https://fxdreema.com/shared/6vQgsR9jd
Doesn't work for some reason, will not run optimization tests. I've messed around with changing where to put the once per bar block but doesn't make a difference.
-
Try this

-
Yeah tried that doesn't work.
-
@sm24 look at journal for any errors. Anyway move "once per bar" just above buy and sell block
-
Trust me I've tried moving around the blocks, there's an issue with the code.
Here's a screenshot of the error. -

-
@sm24
What if you input 0 instead of 1 to the Candle ID? Does it work? -
@sm24 said in Stop and Reverse Strategy not working MT5:
Trust me I've tried moving around the blocks, there's an issue with the code.
Here's a screenshot of the error.i said to look for any errors because it works on my MT5, i already backtested it. One thing: are you backtesting on "every tick model" or not?
-
But it won't work on open prices only right? Because I'm trying to have it only check on the opening or closing of each bar not every tick.