MQL4参考 自定义指标 SetLevelStyle

SetLevelStyle

The function sets a new style, width and color of horizontal levels of indicator to be output in a separate window.

void  SetLevelStyle(
   int     draw_style,       // drawing style
   int     line_width,       // line width
   color   clr               // color
   );

Parameters

draw_style

[in]  Drawing style. Can be one of the Drawing shape styles listed. EMPTY value means that the style will not be changed.

line_width

[in]  Line width. Valid values are 1,2,3,4,5. EMPTY value indicates that the width will not be changed.

clr

[in]  Line color. Empty value CLR_NONE means that the color will not be changed.

Returned value

None.

Example:

//--- show levels as thick red lines
   SetLevelStyle(STYLE_SOLID,2,clrRed);

See also

Custom Indicator Properties