LC:=REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
MA6 :MA(RSI6,6),colorgreen;
STICKLINE(RSI6>MA6,RSI6,MA6,3,0),colorred;
STICKLINE(RSI6<MA6,RSI6,MA6,3,0),coloryellow;
DRAWTEXT(CROSS(RSI6,MA6),RSI6,'B'),colorred;
DRAWTEXT(CROSS(MA6,RSI6),MA6,'S'),colorgreen;