A way to see the code execution time on the MetaTrader platform

The execution time of the MetaTrader platform code is microseconds, which is 10 negative six seconds.

The test situation is generally a few hundred microseconds.


Ulong start1,time;

Start1 =GetMicrosecondCount();

Time =GetMicrosecondCount()-start1;

PrintFormat("Calculating Time %d us", time);

The connection speed of the platform is in the order of milliseconds, which means that as long as it is not a program that is not too slow, it will not affect the transaction speed.

Instead, we put emphasis on logical judgment.

Leave a Reply

Your email address will not be published. Required fields are marked *