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
Carl Schreiber
7109
Carl Schreiber  

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

IsOptimization():

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

and IS_PROFILE_MODE:

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
Moderator
32455
Alain Verleyen  

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