Pause for a tick
-
I have developed an EA that works on M1 chart but I need it to pause for at least 1 tick after the new M1 period starts before it works through the trade opening conditions. Any suggestions to do this will be much appreciated.
-
The reason for this is that I have a condition that is meant to compare the previous period low price with the low price of the previous 10 periods starting with the previous plus 1 period (candle ID 2). However, in backtesting the EA sometimes is behind and uses the 10 periods back starting with candle ID 3.
-
You can just use the seconds filter block, allow seconds from 2 to 60... But its weird that the EA sometimes uses ID 3 and sometimes ID 2, the real problem might be elsewhere
-
Yes I am not sure why it's doing this.
-
@roar do you know if the seconds filter starts at 0? So if I filter 1 to 60 will the EA start at 1 second past the minute? I am also wondering if every n ticks could work. Basically I want the EA to wait for one tick to happen in the new period before continuuing with the calculations for opening a trade.