MA5:MA(C,5),COLORYELLOW;
MA20:MA(C,20),COLORGRAY;
MA60:MA(C,60),COLORMAGENTA;
COND1:=MA5>REF(MA5,1)&&MA20>REF(MA20,1)&&CROSS(MA5,MA20);
DRAWTEXT(COND1,MA5,'嘴N'),COLORRED;
COND2:=MA5<REF(MA5,1)&&MA20<REF(MA20,1)&&CROSSDOWN(MA5,MA20);
DRAWTEXT(COND2,MA5,'嘴N'),COLORGREEN;
C1:=MA5>MA20&&MA20>MA60;
C2:=MA5<MA20&&MA20<MA60;
N:=BARSLAST(YEAR<>REF(YEAR,1))+1;
DRAWTEXT(BACKSET(ISLASTBAR,N)&&CROSS(C1,0.5),H,'PPP'),COLORRED,FONTSIZE18;
DRAWTEXT(BACKSET(ISLASTBAR,N)&&CROSS(C2,0.5),L,'PPP'),COLORGREEN,VALIGN0,FONTSIZE18;
FILLRGN1(BACKSET(ISLASTBAR,N)&&C1,MAX1(MA5,MA20,MA60),MIN1(MA5,MA20,MA60)),RGB(64,0,0);
FILLRGN1(BACKSET(ISLASTBAR,N)&&C2,MAX1(MA5,MA20,MA60),MIN1(MA5,MA20,MA60)),RGB(0,64,0);
DRAWKLINE1(H,O,L,C);
DRAWICON(C>MA60&&ISUP&&(C+O)/2>MA5,H,4);
DRAWICON(C<MA60&&ISDOWN&&(C+O)/2<MA5,L,5),VALIGN0;