M1:=MA(CLOSE,17)+Abs(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORGREEN;
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;
XG:crOSS(M3,支撑线);