Indicator · Pine Script v6 · Own pane

RSI Zones

by degenview

This indicator plots the Relative Strength Index on a separate pane using a purple line.

View on GitHub

GitHub stars3on the repository
Pine versionv6current
Lines of code18
Settings4inputs
LicenceGPL-3.0
Last update2 days ago28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

18 lines of Pine Script v6 from src/script_manager/demos/RSI Zones.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.

RSI Zones.pine
//@version=6
// Example script bundled with DegenView. Edit it freely.
// RSI in its own pane. The background tints while RSI is overbought or oversold.
indicator("RSI Zones", overlay = false)

length = input.int(14, "Length", minval = 2)
source = input.source(close, "Source")
overbought = input.int(70, "Overbought level", minval = 50, maxval = 100, group = "Zones")
oversold = input.int(30, "Oversold level", minval = 0, maxval = 50, group = "Zones")

value = ta.rsi(source, length)

plot(value, "RSI", color = color.purple, linewidth = 2)
hline(overbought, "Overbought", color = color.red)
hline(50, "Midline", color = color.gray)
hline(oversold, "Oversold", color = color.green)

bgcolor(value >= overbought ? color.new(color.red, 85) : value <= oversold ? color.new(color.green, 85) : na)

Overview

RSI Zones calculates RSI based on a user-defined length and source. Horizontal lines mark overbought at 70 in red, the midline at 50 in gray, and oversold at 30 in green. The background tints red when RSI exceeds the overbought level and green when below the oversold level. Inputs allow adjusting the length, source, and zone thresholds. It draws on the price chart with color-coded zones for momentum analysis.

Details

Published by

degenview on GitHub

Draws

Separate pane below the chart

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

bitcoinchartscryptopinestocktradingtradingview

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Lengthint14length
Sourcesourceclosesource
Overbought levelint70overbought
Oversold levelint30oversold
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

114 stars

This indicator combines a scaled Forecast Oscillator with a Point of Force state detector. The Forecast Oscillator calculates the percentage deviation of price from its linear regression curve and normalizes the output between 0 and 1, plotting a line in a sep

Indicator v4 Oscillators & momentumSupport & resistance Repaints

CCI DC

by be-thomas
65 stars

This indicator plots the Commodity Channel Index in a separate pane and surrounds it with a Donchian channel whose lookback length changes with volatility. It measures volatility as a ratio of short and long ATR values, then ranks that ratio and shortens or le

Indicator v5 Oscillators & momentumVolatility & bands
Updated 6 days ago · GPL-3.0 GitHub repository of CCI DC

WaveTrend 3D

by nersent
29 stars

WaveTrend 3D is a redesigned oscillator that implements the classic WaveTrend algorithm with kernel-based regression for trend reversal confirmation and multi-timeframe support. It calculates a smoothed oscillator line and displays a symmetrical three-dimensio

Indicator v5 Oscillators & momentumDivergence
Updated 11 months ago · Custom licence GitHub repository of WaveTrend 3D

Benso Pendulum

by benso87
24 stars

Benso Pendulum is an indicator that plots a customizable Relative Strength Index (RSI) oscillator in a separate pane on the price chart. It calculates the RSI using the specified source and period, applying dynamic colors that change based on overbought and ov

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · MPL-2.0 GitHub repository of Benso Pendulum
9 stars

This indicator plots currency strength values for EUR, USD, JPY, GBP, CHF, AUD, CAD, NZD and optionally XAU or XAG on a separate pane. It computes strength by comparing current pair closes to daily closes using broker-specific data from OANDA, FX or FOREXCOM.

Indicator v4 Oscillators & momentumSupport & resistance Repaints
Updated 5 years ago · None stated GitHub repository of 4th Dimension Currency Strength

More Oscillators & momentum scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers