MQL4参考 检测 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");