Topic: How Fast is an Expert Adviser
I was wandering how fast is the calculation of EA in MT and decided to check it by myself.
I made it calculating a strategy 1000 times on every tick including data copying and indicator calculations. The strategy has 5 indicators and uses 1000 bars.
long startTick = GetTickCount();
int tries = 1000;
for(int i=0;i<tries;i++)
actionsTrade.OnTick(__ticks);
long endTick = GetTickCount();
long timePassed = endTick - startTick;
Print("Performance [mlsec] ",IntegerToString(timePassed), " for ", IntegerToString(tries), " calcs.");
Results:
And this is fast: 205 milliseconds for 1000 calculations or 0.0002 sec per calculation. Not bad for a 7000 lines EA.