MQL4 Reference Checkup 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");