Simple question. What is MQL4 IsTesting() function equivalent in MQL5 ?

 

I need to change variable in the strategy testing mode.

 

So how to detect if EA is working on the Strategy testing mode or visual mode using code? 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties - Documentation on MQL5
 
auto9817:

I need to change variable in the strategy testing mode.

 

So how to detect if EA is working on the Strategy testing mode or visual mode using code? 

Try  MQLInfoInteger()  with  MQL_TESTER