High_Velocity
New member
This Question has been answered the New RSI-Heiken Ashi Indicator can be found: https://usethinkscript.com/threads/rsi-heiken-ashi-for-thinkorswim.7250/ This thread has been locked
Can somebody help me convert this indicator from Tradingview to Thinkorswim?
I am trying to display RSI Divergence as Heiken-Ashi Bars.....
https://www.tradingview.com/v/4VKd87zy/
https://www.tradingview.com/script/XjMpwsmg-RSI-Divergence-Candles-V0/
study(title="RSI_Hist")
useHL = input(title='Use high/low series for mapping the wicks?', type=bool, defval=false)
src = input(title='Source Series:', type=source, defval=close)
fast_length = input(title='Fast Length:', type=integer, defval=8)
slow_length = input(title='Slow Length:', type=integer, defval=55)
smooth = input(title='Smooth:', type=integer, defval=10)
overbought = input(title='Overbought Level:', type=float, defval=70)
oversold = input(title='Oversold Level:', type=float, defval=30)
fast_rsi = rsi(src, fast_length)
slow_rsi = rsi(src, slow_length)
smooth_fast_rsi = sma(fast_rsi, smooth)
smooth_slow_rsi = sma(slow_rsi, smooth)
rsi_high = useHL ? max(rsi(high, fast_length), rsi(high, slow_length)) : max(fast_rsi, slow_rsi)
rsi_low = useHL ? min(rsi(low, fast_length), rsi(low, slow_length)) : min(fast_rsi, slow_rsi)
//#ff59a3//#00f6e8
isBull=smooth_fast_rsi>=smooth_slow_rsi
isExp=abs(smooth_fast_rsi-smooth_slow_rsi)>=abs(smooth_fast_rsi[1]-smooth_slow_rsi[1])
plotcandle(smooth_slow_rsi, rsi_high, rsi_low, smooth_fast_rsi, title='rsi bars', color=isBull and isExp?#2aff00:isBull and not isExp?#ff59a3:not isBull and isExp?#ff0000:#00f6e8)
Last edited by a moderator: