@cmuphyfx
sure, there you go:
https://we.tl/t-v79ol3wENN
@tec-nacks
well... It's not functioning because you didn't follow my instructions.
You've already made a mistake in the second block.
It should be >=.
I strongly suggest understanding the idea of this solution step by step first.
Manually add a red vertical line to the chart to simulate upcoming news.
Start moving it and observe how its value changes relative to the time values.
Then, add another red line and see how the EA reacts to two news events that are close together. Check if the times overlap or if they're okay.
Based on this, adjust the values in the EA.
Also, decide whether the solution I mentioned earlier, skip ticks or on/off, works better for you.
Perhaps combining them might be a better solution.
Maybe separating them into tabs for on timer / on tick could be the right approach.
It all depends on your needs and the structure of your EA.
Regardless of your choice, always stick to the KISS principle that I follow myself and in the end, everything should work properly.
Certainly, a bad idea is adding many additional conditions before understanding how the basic one works, which seems to be what you've done in the given project...