Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. //@version=4
  2. //Created by 100kiwi, changed by gabi
  3. study("Multi Timeframe RSI", overlay=false)
  4.  
  5. // inputs
  6. h4 = input("240", title = "Timeframe", type = input.resolution)
  7. daily = input("D", title = "Timeframe", type = input.resolution)
  8. src = input(close, title = "Source", type = input.source)
  9. len = input(14, title = "Period", type = input.integer)
  10. shift = input(1, title = "Shift", type = input.integer)
  11.  
  12. h4rsi = security(syminfo.tickerid, h4, rsi(src, len))
  13. drsi = security(syminfo.tickerid, daily, rsi(src, len))
  14. alertcondition(h4rsi > drsi, title="sdsdsd", message="qqqqqq")
  15. plot(h4rsi, title = "RSI_4h", color = color.orange, transp = 0, linewidth = 1)
  16. plot(drsi, title = "RSI_daily", color = color.red, transp = 0, linewidth = 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement