Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
- // © mborges018
- //@version=5
- indicator(title='RSI Line Fill', shorttitle='RSI Line Fill', overlay=false)
- inp = input(close)
- RSI = ta.rsi(inp, 14)
- RSIP = plot(RSI, 'RSI', color=color.new(color.black, 0), linewidth=2)
- OB = 70
- OBP = plot(RSI > OB ? OB : na, 'Overbought', display=display.none)
- hline(70, title='Overbought', color=color.black)
- fill(OBP, RSIP, color=color.new(color.lime, 0))
- OS = 30
- OSP = plot(RSI < OS ? OS : na, 'Oversold', display=display.none)
- hline(30, title='Oversold', color=color.black)
- fill(OSP, RSIP, color=color.new(color.red, 0))
- hline(50)
Advertisement
Comments
-
- hello,
- CAN YOU MAKE - PREDICTUM INDICATOR CODE....???
Add Comment
Please, Sign In to add comment
Advertisement