M:=34;N:=7;
ZX:=MA(CLOSE,M);
阻力线:(ZX + N*STD(CLOSE,M)),DOTLINE,LINETHICK1,COLORFFFF20;
拉升力:= (CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,47))*0.6*CLOSE;
拉升力A:=SMA(拉升力,6.3,1);
波峰波谷:=SMA(拉升力A,3,1),COLOR09FFFF;
拉升力B:=3*拉升力A-2.1*波峰波谷;
空方:=3*波峰波谷-1* 拉升力A;
做空:IF(空方>拉升力B,拉升力B,空方)*4.5,LINETHICK2,COLORFFFFFF;
IF(做空>REF(做空,1),做空,DRAWNULL),COLORFF0080,LINETHICK3;