MQL4 Reference Checkup IsVisualMode

IsVisualMode

Checks if the Expert Advisor is tested in visual mode.

bool  IsVisualMode();

Returned value

Returns true if the Expert Advisor is tested with checked "Visual Mode" button, otherwise returns false.

Example:

  if(IsVisualMode()) Comment("Visual mode turned on");