指标编程全揭秘

新建一个指标文件,添加参数
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
用一句代码设置属性

//--- plot da
// #property indicator_label1  "da"
// #property indicator_type1   DRAW_LINE
// #property indicator_color1  clrRed
// #property indicator_style1  STYLE_SOLID
// #property indicator_width1  1
   SetIndexLabel(0, "da");
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1, clrRed);

设置箭头类型
PlotIndexSetInteger(2,PLOT_ARROW,159);
PlotIndexSetInteger(3,PLOT_ARROW,159);

在这里插入图片描述
在这里插入图片描述
填充数组

在这里插入代码片

猜你喜欢

转载自blog.csdn.net/bus_lupe/article/details/84814129