MA5:MA(C,5),COLORWHITE,LINETHICK3;
IF(MA5 REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK3;
IF(MA5=REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK3;
IF(MA5 REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK3;
A:=(EMA(CLOSE,10)*7+EMA(CLOSE,20)*3)/10;
B:=DMA(EMA(CLOSE,20),MAX(1,100*(SUM(vol,5)/(3*CAPITAL))));
STICKLINE(C O,C,O,2.8,0),COLORRED;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
XG:=crOSS(C,MA5) AND CROSS(A,B);
DRAWICON(XG,L,25);
DRAWICON(XG,L*0.98,26);
DRAWICON(XG,L*0.96,27);