ChrisMoody

CM_Ultimate RSI Multi Time Frame

Available Options on Inputs Tab!!!

RSI with ability to change first RSI to a different Time Frame.(Defaults To Current Chart Time Frame).

Ability To Turn On/Off Background Highlighting if First RSI is Above/Below 70 or 30 Lines.

Ability To Turn On/Off Background Highlighting When First RSI Crosses Above 30 Or Below 70.

Ability To Turn On/Off "B" Or "S" When First RSI Crosses Above 30 Or Below 70.

Ability To Turn On/Off Mid -Line Plot.

Option To Plot 2nd RSI to show different Time Frames on same chart!!!

Ability To Use Different Look Back Period If You Plot 2nd RSI .
Remove from Favorite Scripts Add to Favorite Scripts
//Created By ChrisMoody on 8/15/2014
///RSI with ability to change first RSI to a different Timeframe.
//option to Plot 2nd RSI to show different Timeframes on same chart

study(title="CM_Ultimate RSI MTF", shorttitle="CM_Ult_RSI_MTF", precision=0)
src = close
len = input(14, minval=1, title="Length")
upLine = input(70, minval=50, maxval=90, title="Upper Line Value?")
lowLine = input(30, minval=10, maxval=50, title="Lower Line Value?")
sml = input(true, title="Show Mid Line?")
sbh = input(true, title="Show Back Ground Highlights When RSI is Above/Below High/Low Lines?")
sch = input(true, title="Show Back Ground Highlights When RSI Cross?")
sl = input(true, title="Show 'B' and 'S' Letters When RSI Crosses High/Low Line?")
useCurrentRes = input(true, title="Use Current Chart Resolution?")
resCustom = input(title="Use Different Timeframe? Uncheck Box Above", type=resolution, defval="60")
ssRSI = input(false, title="Show 2nd RSI?")
resCustom2 = input(title="Use 2nd RSI? Check Box Above", type=resolution, defval="D")
useCurrentRes2 = input(false, title="Use 2nd RSI Plot On Samet Timeframe?")
len2 = input(14, minval=1, title="2nd RSI Length")

res = useCurrentRes ? period : resCustom
res2 = useCurrentRes2 ? period : resCustom2

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))
outRSI = security(tickerid, res, rsi)

up2 = rma(max(change(src), 0), len2)
down2 = rma(-min(change(src), 0), len2)
rsi2 = down2 == 0 ? 100 : up2 == 0 ? 0 : 100 - (100 / (1 + up2 / down2))
outRSI2 = security(tickerid, res2, rsi2)

aboveLine = outRSI > upLine ? 1 : 0
belowLine = outRSI < lowLine ? 1 : 0
crossUp = outRSI[1] <  lowLine and outRSI > lowLine ? 1 : 0
crossDn = outRSI[1] >  upLine and outRSI < upLine ? 1 : 0

bgcolor(sbh and aboveLine ? red : na, transp=70)
bgcolor(sbh and belowLine ? green : na, transp=70)
bgcolor(sch and crossUp ? lime : na, transp=40)
bgcolor(sch and crossDn ? red : na, transp=40)

plot(outRSI, title="RSI", style=line, linewidth=3, color=aqua)
plot(ssRSI and outRSI2 ? outRSI2 : na, title="2nd RSI - Different Time Frame?", style=linebr, linewidth=4, color=orange)
p1 = plot(upLine, title= "Upper Line", style=solid, linewidth=3, color=red)
p2 = plot(lowLine, title= "Lower Line", style=solid, linewidth=3, color=lime)
plot(sml and 50 ? 50 : na, title="Mid Line", style=linebr, linewidth=2, color=gray)
plotchar(sl and crossUp ? crossUp : na, title="Buy Signal", char='B', location=location.bottom, color=lime, transp=0, offset=0)
plotchar(sl and crossDn ? crossDn : na, title="Sell Signal", char='S', location=location.top, color=red, transp=0, offset=0)
fill(p1, p2, color=silver, transp=70)
Which software do you use to program all this? If there is any? :) Thanks for Great share Chris!
Reply
ChrisMoody PRO Mathias-HarmonicTrader-Sweden
2 years ago
No Software...I just code it until I get it right...
Reply
Omg, this looks like it takes a lot of time! :)
Reply
Nice work!!!
Reply
ChrisMoody PRO coondawg71
8 months ago
Thanks
Reply
cristian.d
2 years ago
This is gold, thanks
+1 Reply
ChrisMoody PRO cristian.d
8 months ago
Your too kind....Thanks
Reply
thomas.gigure
10 months ago
Hey Chris, I just wanted to give you a huge thank you for this. I'm a college student, and using my own settings for this indicator with two RSI time frames has made me A LOT of money. I'm on my way to becoming a day trader and it's all because of you're excellent coding.
Reply
ChrisMoody PRO thomas.gigure
8 months ago
Great..Thanks for the Kind Words
Reply
thomas.gigure ChrisMoody
7 months ago
One more thing, is there any way you could incorporate a monthly time frame on this as well. Not a huge deal because I can switch back and forth from the time frames but having it on this and the stochastic indicator would be helpful
Reply
mouhssine.aregu
8 months ago
thanks for sharing , but i got a problem i can't choose the time frame H4 from the selectbox ? any idea
Reply
ChrisMoody PRO mouhssine.aregu
8 months ago
Those are the default TradingView dropdown timeframes. The 4 Hour would have to be coded in. In my opinion the 4H should be one of TradingView's set Time Frame resolutions vs. the 3 hour etc. I would email support on this one.
Reply
ChrisMoody PRO mouhssine.aregu
8 months ago
The code gets exponentially longer if I have to code specific resolutions...I've done so on other indicators...but not this one.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out