N:=2;N1:=9;N2:=12;N3:=26;N4:=1;MA5:MA(CLOSE,N),LINETHICK1,colorwhite;MA10:MA(CLOSE,N1),LINETHICK1,coloryellow;MA20:MA(CLOSE,N2),LINETHICK1,colormagenta;MA60:MA(CLOSE,N3),LINETHICK1,colorgreen;买线:=EMA(C,N4);卖线:=EMA(SLOPE(C,20)*10+C,35);DRAWTEXT(OSS(买线,卖线),LOW*1.00,'←买'),colorred,LINETHICK1;DRAWTEXT(CROSS(买线,卖线),HIGH*1.01,'←卖'),colorgreen;LC:=REF(CLOSE,1);:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(A(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,'←逢高出局!'),COLOR00FF00 ;A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A