is different? IsOptimization(); "optimization mode" and IS_PROFILE_MODE: "non zero in profiling mode"
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.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?