新建一个指标文件,添加参数
用一句代码设置属性
//--- 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);
填充数组
在这里插入代码片