LC:=REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK2;
MA6 :MA(RSI6,6),colorgreen;
IF(MA6>REF(MA6,1) OR RSI6>MA6,MA6,DRAWNULL),colorred,LINETHICK2;