M1:=3;
M2:=5;
EXP1:EMA(CLOSE,M1),LINETHICK2;
EXP2:EMA(CLOSE,M2),LINETHICK2;
IF(EXP1>REF(EXP1,1), EXP1,DRAWNULL),COLORRED,LINETHICK2;
IF(EXP2>REF(EXP2,1), EXP2,DRAWNULL),COLORBLUE,LINETHICK2;
M1:=3;
M2:=5;
EXP1:EMA(CLOSE,M1),LINETHICK2;
EXP2:EMA(CLOSE,M2),LINETHICK2;
IF(EXP1>REF(EXP1,1), EXP1,DRAWNULL),COLORRED,LINETHICK2;
IF(EXP2>REF(EXP2,1), EXP2,DRAWNULL),COLORBLUE,LINETHICK2;