MQL4 Reference Custom Indicators SetIndexEmptyValue
SetIndexEmptyValue
Sets drawing line empty value.
void SetIndexEmptyValue(
int index,
double value
); |
Parameters
index
[in] Line index. Must lie between 0 and 7.
value
[in] New "empty" value.
Returned value
Note
Example:
int init()
{
//---- 2 allocated indicator buffers
SetIndexBuffer(0,ExtUppperBuffer);
SetIndexBuffer(1,ExtLowerBuffer);
//---- drawing parameters setting
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,217);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,218);
//---- 0 value will not be displayed
SetIndexEmptyValue(0,0.0);
SetIndexEmptyValue(1,0.0);
//---- displaying in DataWindow
SetIndexLabel(0,"Fractal Up");
SetIndexLabel(1,"Fractal Down");
//---- initialization done
return(0);
} |
See also
|