M1:=60;
M2:=89;
M3:=120;
EXP1:EMA(CLOSE,M1),POINTDOT,coloryellow,LINETHICK3;
EXP2:EMA(CLOSE,M2),colorred,LINETHICK2;
EXP3:EMA(CLOSE,M3),POINTDOT,COLORFFCC00,LINETHICK3;
IF(EXP2>=REF(EXP2,1),EXP2,DRAWNULL),colorred,LINETHICK1;
IF(EXP2<=REF(EXP2,1),EXP2,DRAWNULL),colorblue,LINETHICK2;
B1:=EMA(C,3);
B2:=EMA(C,26);
B3:=B1-B2;
WDIF:EMA(EMA(EMA(C,3),3),3)+B3,LINETHICK2,COLORF00FF0;
WDEA:EMA(WDIF,9),colorgreen,LINETHICK1;
MA18:=MA(CLOSE,18);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));
DRAWTEXT(FILTER(买=1,5),LOW,'买'),coloryellow;
DRAWICON(CROSS(WDIF,WDEA),WDEA,17);
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H5:=高1-(高1-低1)*0.809;
H6:=高1-(高1-低1)*0.886;
H7:=高1-(高1-低1)*0.946;
顶:REFDATE(高1,DATE),COLORFFCC00;
低:REFDATE(低1,DATE),colorblue;