M1:EMA(C,5),COLORRED,LINETHICK2;
M2:EMA(M1,5),COLORGREEN;
M3:EMA(M2,5),COLORGREEN;
M4:EMA(M3,5),COLORGREEN;
M5:EMA(M4,5),COLORGREEN;
M1S:IF(M1>REF(M1,1),M1,DRAWNULL),COLORYELLOW;
M2S:IF(M2>REF(M2,1),M2,DRAWNULL),,COLORYELLOW;
M3S:IF(M3>REF(M3,1),M3,DRAWNULL),,COLORYELLOW;
M4S:IF(M4>REF(M4,1),M4,DRAWNULL),,COLORYELLOW;
M5S:IF(M5>REF(M5,1),M5,DRAWNULL),,COLORYELLOW;
T1:=BARSLASTCOUNT(CROSS(M1,M2)+CROSS(M1,M3)+CROSS(M1,M4)+CROSS(M1,M5)>1)=1;
DRAWICON(T1,L,26);