Download MetaTrader 5
To add comments, please log in or register
Write articles, help other developers and make money
auto9817
55
auto9817 2014.01.03 14:25 

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
17963
Simon Gniadkowski 2014.01.03 14:36  
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