M1R := EMA( CLOSE, 9 );
M2R := EMA( CLOSE, 18 );
MDR := M1R*2 - M2R*2, COLORWHITE, LINETHICK2;
MMR:= EMA( MDR, 3 );
STICKLINE( MDR >= MMR AND MDR >= 0 ,MDR,0,3,0 ),COLORRED;
STICKLINE( MDR >= MMR AND MDR < 0 ,MDR,0,3,0 ),COLORMAGENTA;
STICKLINE( MDR < MMR AND MDR >= 0 ,MDR,0,3,0 ),COLORGREEN;
STICKLINE( MDR < MMR AND MDR < 0 ,MDR,0,3,0 ),COLORBLUE;