Search
Products
Community
Markets
News
Brokers
More
EN
Get started
Community
/
Ideas
/
RSI Candles
Euro / U.S. Dollar
RSI Candles
By glaz
Wizard
Follow
Follow
Feb 11, 2014
1
3
5
5
5
Feb 11, 2014
Can be used as a 50 level cross by rsi or as overbought/oversold by setting the levels accordingly eg 70/30
// With levels, candle border must be removed for better view
// RSI Chart Bars By Glaz.
study(title="RSI Chart Bars",overlay = true, shorttitle="RSI Bars")
src = close, len = input(14, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
//coloring method below
src1 = close, len1 = input(70, minval=1, title="UpLevel")
src2 = close, len2 = input(30, minval=1, title="DownLevel")
isup() => rsi > len1
isdown() => rsi < len2
barcolor(isup() ? green : isdown() ? red : na )
glaz
Wizard
Follow
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the
Terms of Use
.