Download MetaTrader 5
To add comments, please log in or register
MQL5 Reference is available in 8 languages. Learn MQL5 in the language that suits you best!
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
17994
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