Download MetaTrader 5

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

To add comments, please log in or register
auto9817
55
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? 

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
Simon Gniadkowski
Moderator
18036
Simon Gniadkowski  
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
To add comments, please log in or register