SetIndexArrow
SetIndexArrow
设置 DRAW_ARROW 类型的指标线条的箭头符号。
void SetIndexArrow(
int index, // line index
int code // code
);参数
- index
[in] 线条索引。必须在 0 到 7 之间。
- code
[in] 来自 Wingdings 字体的符号代码或预定义的箭头常量。
返回值
无。
注意
范围在 33 到 255 之外的箭头代码不能使用。
示例:
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);
}另请参阅
最后更新于