Download MetaTrader 5

is different? IsOptimization(); "optimization mode" and IS_PROFILE_MODE: "non zero in profiling mode"

To add comments, please log in or register
Do you have Mac OS? Find out how to install MetaTrader on it!
Carl Schreiber
Carl Schreiber 2014.03.17 10:36 

I just stumbled over these two entries in the MQL4 Reference:


Returns true if Expert Advisor runs in the Strategy Tester optimization mode, otherwise returns false.


Flag that a mql4-program operates in profiling mode

non zero in profiling mode, otherwise zero

So is there a difference and if so what is PROFILE_MODE?

Alain Verleyen
Alain Verleyen 2014.03.17 11:30  

Of course, Profile mode as nothing to do with backtesting or optimization. It's a tool available in MetaEditor to profile your code, in other words to check the performance of your code.

There is no online information for MT4, but you can press F1 in MetaEditor (User Guide) and search for Profiler.

To add comments, please log in or register