MID:=(HIGH+LOW+OPEN+CLOSE)/4;
MA5:MA(MID,5);
IF(MA5>REF(MA5,1) AND C>SAR(4,2,20),MA5,DRAWNULL),COLORRED,LINETHICK1;
IF(NOT(MA5>REF(MA5,1) AND C>SAR(4,2,20)),MA5,DRAWNULL),COLORCYAN,LINETHICK1;
STICKLINE(MA5>REF(MA5,1) AND C>SAR(4,2,20) AND C
STICKLINE(NOT(MA5>REF(MA5,1) AND C>SAR(4,2,20)) AND C>O,C,O,3,1),COLORCYAN;
DRAWTEXT(ISLASTBAR AND MA5>REF(MA5,1) AND C>SAR(4,2,20),MA5,'满仓'),COLORRED;