How EA Execution Behave During Consecutive Ticks in MT5/MT4

shanmugapradeep

Active Trader
Dec 18, 2020
164
13
34
40
Hello,


On a tick, the EA starts executing its code, but before it completes executing the full code, the next tick occurs. In this case, what will happen? Will the new tick be ignored until the EA completes the full code execution, or will the EA’s operation be interrupted in the middle by every new tick?
 
enivid would know better, but i think the previous ticks run must be handled first......

ontick.......

use gettickcount to get a rough idea of the time required to run thu.......

some of mine might take 15 or 20 seconds...... but they are doing some tremendous math...... and dont place trades......

anything placing or managing trades might work more in line with your intentions if it has a low gettickcount.......

however, in several instances slower is better........ which might be why metatrader has the sleep function......

you can use the sleep function , which intentionally extends gettickcount.....h
 
Last edited:
  • 👍
Reactions: shanmugapradeep