@roar thank you. Of course, I will try.
But I spent the whole day today testing your solution on a separate MT4 to see how the EA behaves on different currency pairs. I ran it on 5 pairs, and for example, USDJPY has been performing almost perfectly for the past hour. The distances between consecutive openings are nearly perfect. I've attached a screenshot. However, on other pairs like EURUSD or GBPUSD, the issue persists even though the same EA with the same parameters is running on each of them. I also checked the latency in milliseconds, and it's negligible everywhere, so it's not a connection issue either. That's why I believe it's related to sudden price movements rather than a specific pair.
Do you think it's possible to somehow prevent the EA from opening positions earlier than the specified distance?
Maybe with a additional block or a function, etc.?





