Our automated strategy is performing well for the most part, except a glitch that is executing trades where they are not meant to execute.
To fix this error I need to add a condition to every signal, in English, this is what I want: If the close of 1 and 2 bars ago is less than 50 ticks away from the open of the current bar, continue, If condition not met, then wait for next signal"
Plese advise if there is code for something like this?
Thanking you!
Comment