Advertisement
Nick42_for_win

RSI

Mar 9th, 2022
2,848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. //@version=5
  2. indicator("RSI", overlay=false)
  3. len = input(7, "Length")
  4. src = input(close, "Source")
  5. rsi = ta.rsi(src, len)
  6. plot(rsi, "RSI", color.white)
  7. hline(70, "Upper Band", #CC4242, hline.style_solid)
  8. hline(25, "Lower Band", #3D8C40, hline.style_solid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement