glaz

RSI Float levels

FX:EURUSD   Euro / U.S. Dollar
224
Float levels for rsi,updated version below just with more options
A way to get this indicator is to copy paste the source code below to your srcipt editor and save.

//By Glaz
study("RSI Float")
RsiPeriod = 14
RsiPrice = close
MinMaxPeriod =input(200)
LevelUp = input(76.4)
LevelMiUp = input(55.0)
LevelMiDown = input(45.0)
LevelDown = input(23.6)
src=close,len=input(14)
RSI(src,len)=>
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))
RSI

rsi1 = RSI(src,len)
rsiMin = lowest(rsi1,MinMaxPeriod)
rsiMax = highest(rsi1,MinMaxPeriod)
range = rsiMax-rsiMin
rsiLDn = rsiMin+range*LevelDown/100.0
rsiLMi = rsiMin+range*0.5
rsiLMu = rsiMin+range*LevelMiUp/100.0
rsiLMd = rsiMin+range*LevelMiDown/100.0
rsiLUp = rsiMin+range*LevelUp/100.0

plot(rsiLDn,color=white)
plot(rsiLMi,color=yellow)
plot(rsiLMu,color=yellow)
plot(rsiLMd,color=yellow)
plot(rsiLUp,color=white)
plot(rsi1,color=purple)
//http://www.forex-tsd.com/indicators-expert-systems-tools/14880-rsi-indicator-71.html
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.