I developed an expert. As far as I know, the expert starts running when the price change. However, if the price change again, and my expert does not get to finish, the expert do not continues and another expert run starts.This happens when the market is under strong variations.So, under this case, my expert never comes to the end.Is possible to avoid expert interruption by a new change in the price ?
Thanks for your reply.
Can you confirm this:
1) An expert starts running when the envolved pair changes cotation.
2) If the expert takes a bit time to finish and the pair cotation changes before the expert ends, the expert re-starts again.
Perhaps I am confusing something, but this is what I thought it is how MT4 works
you can use
You're wrong. Any event handler - either processing new price tick or timer - is executed uninterrupted until it exits. All successive events (price ticks or timer) are waiting until your EA finishes processing of the previous event.
If you see other behaviour, this can be a bug either in your code or in the platform. We need more information.