Hi does anyone know how to add a watchlist column to ThinkorSwim that just show the current RSI value on a 5 min chart?
Code:
# RSI Watchlist Column
# Mobius
def c = if isNaN(close) then c[1] else close;
def NetChgAvg = Average(c - c[1], 14);
def TotChgAvg = Average(AbsValue(c - c[1]), 14);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
plot RSI = 50 * (ChgRatio + 1);