X:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
Y:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
FSL:IF(MA(CLOSE,17)<Y,Y,MA(CLOSE,17)),COLORFF00FF,LINETHICK2;
IF(FSL<REF(FSL,1),FSL,DRAWNULL),COLORGREEN,LINETHICK2;
CZX:FSL-(EMA(C,3)-FSL),COLOR00FFFF,LINETHICK2;
PM:MA(C,5),COLORWHITE,LINETHICK2;
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM<REF(PM,1),PM,DRAWNULL),COLORBLUE,LINETHICK2;
DRAWICON(CROSS(FSL,CZX),FSL-0.1,1);
DRAWTEXT(C>FSL,FSL,'○' ),COLORGREEN;
DRAWTEXT(CROSS(MA(C,5),FSL-(EMA(C,3)-FSL)),LOW,'◎'),COLORCCCC00,LINETHICK2;
DRAWTEXT(CROSS(MA(C,5),IF(MA(CLOSE,17)<Y,Y,MA(CLOSE,17))),LOW,'☆');