N:=5;MA250:=MA(CLOSE,250),COLORMAGENTA,LINETHICK3;{N(3,30,5);}【箱顶】:PEAK(3,N,1)*0.999;【箱底】:TROUGH(3,N,1)*0.999;【箱高】:=1*(【箱顶】-【箱底】)/【箱底】;运行的升幅:=(MA(H,3)-REF(MA(H,3),1))*100/REF(MA(H,3),1);{NODRAW;}{ML:=EMA(L,7),COLORMAGENTA;MH:=MA(H,7),COLORGRAY;:MA((MH+ML)/2,3),LINETHICK1,COLORGREEN;线1:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORMAGENTA;}{八周}VAR1:MA(C,7),COLORGREEN;VAR1A:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;DRAWICON(OSS(C,VAR1),L*0.99,1);DRAWICON(CROSS(VAR1,C),H*1.00,2);XDU:=IF(EMA(EMA