MQL4参考 自定义指标 HideTestIndicators

HideTestIndicators

The function sets a flag hiding indicators called by the Expert Advisor.

void  HideTestIndicators(
   bool      hide     // flag
   );

Parameters

hide

[in]  Hiding flag.

Returned value

None.

Note

After the Expert Advisor has been tested and the appropriate chart opened, the flagged indicators will not be drawn in the testing chart. Every indicator called will first be flagged with the current hiding flag. It must be noted that only those indicators can be drawn in the testing chart that are directly called from the expert under test.

Example:

   HideTestIndicators(true);
   MaCurrent=iMA(NULL,0,56,0,MODE_EMA,PRICE_CLOSE,0);
   MaPrevious=iMA(NULL,0,56,0,MODE_EMA,PRICE_CLOSE,1);
   HideTestIndicators(false);