,,,,
M1 := EMA( CLOSE, 9 );
M2 := EMA( CLOSE, 18 );
MD : M1 - M2, colorwhite, LINETHICK3;
MM := EMA( MD, 3 );
PARTLINE(MD,MD >= MM AND MD < 0,RGB(255,120,120)), LINETHICK3;
PARTLINE(MD,MD >= MM AND MD >= 0,RGB(250,0,0)), LINETHICK3;
PARTLINE(MD,MD < MM AND MD >= 0,RGB(0,250,0)), LINETHICK3;
PARTLINE(MD,MD < MM AND MD < 0,RGB(230,230,230)), LINETHICK3;