M2:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORGREEN,LINETHICK1;
M3:IF(MA(CLOSE,17)< M2,M2,MA(CLOSE,17)),COLORGREEN,LINETHICK1;
支撑线:M3-(EMA(C,3)-M3),COLORFF8080,LINETHICK1;
J1:=BACKSET(M1>REF(M1,1),2);
IF(J1,M3,DRAWNULL),COLORRED,LINETHICK2;
DRAWICON(crOSS(支撑线,M3),H*1.01,2);
DRAWICON(CROSS(M3,支撑线),L*0.99,1);