MQL4 Reference Custom Indicators SetIndexArrow

SetIndexArrow

Sets an arrow symbol for indicators line of the DRAW_ARROW type.

void  SetIndexArrow(
   int     index,       // line index
   int     code         // code
   );

Parameters

index

[in]  Line index. Must lie between 0 and 7.

code

[in]  Symbol code from Wingdings font or predefined arrow constant.

Returned value

None.

Note

Arrow codes out of range 33 to 255 cannot be used.

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);
//---- displaying in the DataWindow
    SetIndexLabel(0,"Fractal Up");
    SetIndexLabel(1,"Fractal Down");
//---- initialization done
   return(0);
  }

See also

Custom Indicator Properties