In Strategy Tester Or In Real MT4?

 

I am tring  to find the function that return the running environment of my EA.

How to find it's running in a tester or in a real MT4.

I can't find it in the Manu.

I hope this function do exist.

Please Please Please

Tell me please.

 
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
A purchased licensed version allows at least 5 activations. The number of activations is specified by seller. Seller may increase the allowed number of activations
 
Ma Yuliang: How to find it's running in a tester or in a real MT4.
  1. Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. The tester is for testing your code. It shouldn't do anything different, live, demo, or tester.
 
Thanks this is what I want. Code is no difference in this funtion between MT4 and MT5.
Reason: