PROTECTED SOURCE SCRIPT

Custom RSI Oscillator with Signals

89
//version=5
indicator("Custom RSI Oscillator", overlay=false)

// Inputs
length = input.int(14, "RSI Length")
overbought = input.int(70, "Overbought Level")
oversold = input.int(30, "Oversold Level")

// RSI Calculation
rsiValue = ta.rsi(close, length)

// Plot RSI
plot(rsiValue, color=color.blue, linewidth=2, title="RSI")

// Levels
hline(overbought, "Overbought", color=color.red)
hline(oversold, "Oversold", color=color.green)
hline(50, "Midline", color=color.gray)

// Background Highlights
bgcolor(rsiValue > overbought ? color.new(color.red, 85) : na)
bgcolor(rsiValue < oversold ? color.new(color.green, 85) : na)

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.