N:=1,100,20;M:=1,100,32;P1:=1,100,80;P2:=1,100,100;VAR1:=(C+H+O+L)/4;:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;幅度:100*(卖出-买入)/买入,NODRAW;MA1:=MA(VAR1,3);STICKLINE(卖出>LOW AND 卖出
MIN(C,O) AND 卖出LOW AND 卖出LOW AND 买入MIN(C,O) AND 买入LOW AND 买入HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;DRAWTEXT(OSS(LOW,买入),LOW*0.95,'B'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖出,HIGH),HIGH*1.02,'S'),COLO