SetIndexArrow()设置的箭头,怎么变大?

 

我看有的指标的箭头可以设置很大个。但是我的就很小。是使用了哪一个函数控制的 ?


   SetIndexStyle(0,DRAW_ARROW);

   SetIndexArrow(0,233);

   SetIndexBuffer(0,UpBuffer_1);

   SetIndexEmptyValue(0,-40.0);

 

用预编译指令,更加方便,比如,下图width1,width2 后面的数字就是箭头大小

//--- plot buy
#property indicator_label1  "buy"
#property indicator_type1   DRAW_ARROW
#property indicator_color1  clrDeepSkyBlue
#property indicator_style1  STYLE_SOLID
#property indicator_width1  1
//--- plot sell
#property indicator_label2  "sell"
#property indicator_type2   DRAW_ARROW
#property indicator_color2  clrRed
#property indicator_style2  STYLE_SOLID
#property indicator_width2  1
 

用函数就是这个:

void  SetIndexStyle( 
   int     index,       // line index 
   int     type,        // line type 
   int     style=EMPTY, // line style 
   int     width=EMPTY, // line width 
   color   clr=clrNONE  // line color 
   );
原因: