转折幅度:=8;{以收盘价的转折幅度找波段高低点-这个转折幅度可以自己设置成参数,便于日常使用时调整} 低a:=const(trou**ars(c,转折幅度,2));低c:=const(trou**ars(c,转折幅度,1));高b1:=const(peakbars(c,转折幅度,1));高b2:=const(peakbars(c,转折幅度,2));高b:=if(高b1<低a and 高b1...
setindexstyle(0,draw_line,0,1);//定义指标的显示形式。draw_line标示画线指标。看下这个内置函数的定义setindexstyle( int index, int type, int style=empty, int width=empty, color clr=clr_none) index:索引号。0就是第一个指标线1就是第二个指标线。 type: 指标类型...