MQL4参考 检测 IsTesting

IsTesting

Checks if the Expert Advisor runs in the testing mode.

bool  IsTesting();

Returned value

Returns true if the Expert Advisor runs in the testing mode, otherwise returns false.

Example:

  if(IsTesting()) Print("I am testing now");