input:低点参数(10,1,20),高点参数(8,1,20);
x1:=TROUGH(2,低点参数,1);
x8:=TROUGHBARS(2,低点参数,1)=0;
x3:=PEAK(1,高点参数,1);
x5:=PEAKBARS(1,高点参数,1)=0;
x31:=PEAKBARS(1,高点参数,2);
x38:=PEAKBARS(1,高点参数,1);
x81:=TROUGHBARS(2,低点参数,2);
x83:=TROUGHBARS(2,低点参数,1);
低点间隔:ref(x83,1)+1,linethick0;
低点位置:=低点间隔/2;
DRAWNUMBER(x8,l*0.95,低点间隔,0),colorcc00FF;
stickline(x8,l*0.98,l*0.96,1,0),colorcc00FF;
{DRAWNUMBER(x8,SYSPARAM(5),低点间隔,0);//l*0.95}
{stickline(x8,l*0.98,SYSPARAM(5),1,0),colorcc00FF;}
高点间隔:ref(x38,1)+1,linethick0;
低点位置:=高点间隔/2;
DRAWNUMBER(x5,h*1.06,高点间隔,0),color00FFCC;
stickline(x5,h*1.015,h*1.035,1,0),color00FFCC;
{DRAWNUMBER(x5,SYSPARAM(4),高点间隔,0),color00FFCC;}
{stickline(x5,SYSPARAM(4),h*1.015,1,0),color00FFCC;}