indicator · own pane · open source

Relative Strength Index indicator

Relative Strength Index is a free open-source indicator. Relative Strength Index (RSI) is Wilder's classic 0-100 momentum oscillator: average gains… Deepwick Script runs a subset of Pine Script.

v1Updated 3 Oct 2026▲ 0 users
Running…
Loading chart…

What Relative Strength Index does

Relative Strength Index (RSI) is Wilder's classic 0-100 momentum oscillator: average gains over average losses.

  • Above 70 = overbought, below 30 = oversold (adjustable via the inputs).
  • Raise Length for fewer, higher-quality signals in choppy markets.
  • Watch divergences between RSI and price making for higher-probability turns.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("Relative Strength Index", overlay=false)
len = input.int(14, "Length", minval=2, maxval=200)
src = input.source(close, "Source")
ob = input.int(70, "Overbought", minval=50, maxval=95)
os = input.int(30, "Oversold", minval=5, maxval=50)
colorBg = input.color("color.purple", "Color  Bg")
colorNeutral = input.color("color.gray", "Color  Neutral")
rsi = ta.rsi(src, len)
hline(70, "Overbought", color=colorNeutral, linestyle=hline.style_dashed)
hline(30, "Oversold", color=colorNeutral, linestyle=hline.style_dashed)
hline(50, "Midline", color=colorNeutral, linestyle=hline.style_dotted)
p_RSI = plot(rsi, "RSI", color=colorBg, linewidth=2)
alertcondition(ta.crossunder(rsi, 30), "RSI oversold", "RSI crossed below oversold")
alertcondition(ta.crossover(rsi, 70), "RSI overbought", "RSI crossed above overbought")

Comments

No comments yet.

Sign in to comment.