ssl:=EMA(C,3);
ssl,colorgreen;
mm:EMA((SLOPE(C,22)*20+C),55),colorwhite;
STICKLINE(ssl>mm,ssl,mm,1,0),colormagenta;
STICKLINE(ssl<=mm,ssl,mm,1,0),colorgreen;
STICKLINE(C>=O,C,O,8,0),colorred;
STICKLINE(C>=O,H,L,0,0),colorred;
STICKLINE(C<=O,C,O,8,0),colorgreen;
STICKLINE(C<=O,H,L,0,0),colorgreen;
DRAWTEXT(mm<=ssl AND mm=HHV(mm,1+BARSLAST(CROSS(mm,ssl))),mm,'↑');