Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=4
- //Created by 100kiwi, changed by gabi
- study("Multi Timeframe RSI", overlay=false)
- // inputs
- h4 = input("240", title = "Timeframe", type = input.resolution)
- daily = input("D", title = "Timeframe", type = input.resolution)
- src = input(close, title = "Source", type = input.source)
- len = input(14, title = "Period", type = input.integer)
- shift = input(1, title = "Shift", type = input.integer)
- h4rsi = security(syminfo.tickerid, h4, rsi(src, len))
- drsi = security(syminfo.tickerid, daily, rsi(src, len))
- alertcondition(h4rsi > drsi, title="sdsdsd", message="qqqqqq")
- plot(h4rsi, title = "RSI_4h", color = color.orange, transp = 0, linewidth = 1)
- plot(drsi, title = "RSI_daily", color = color.red, transp = 0, linewidth = 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement