1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
185 lines of Pine Script v4 from Auto_Support+Resistance_Levels.txt, published under Apache-2.0. Keep the author's credit and licence lines when you reuse it.
Users can base pivots on either price action lookback or RSI oscillator lookback when RSI mode is enabled. The script offers visual customization options, including customizable line widths, extension directions (left, right, or both), diagonal high/low lines, and toggles to display support or resistance levels independently. It also includes an integrated RSI overlay option with customizable overbought, oversold, and midline threshold levels.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Price Pivot Lookback
int
6
barsback
RSI Pivot Lookback
int
15
lookback
Level Extension
string
None
lineExtensionStr
Line Width
int
3
lineWidth
RSI Length
int
14
len1
RSI Source
source
close
src1
RSI Highline
int
70
rsiOver
RSI Midline
int
50
rsiMid
RSI Lowline
int
30
rsiUnder
RSI Mode
bool
false
rsiMode
High/Low Diag Line
bool
true
displayDiag
Display Support Levels
bool
true
displaySupport
Show all 13 settings
Setting
Type
Default
Variable
Display Resistance Levels
bool
true
displayResistance
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.
This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points
Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b
This indicator collection calculates and plots previous daily high and low price levels on the chart to identify potential supply and demand zones. It includes real-time intraday high and low calculations, RSI divergence detection across a customizable period
Self-Aware Trend System calculates volatility-adaptive ATR trailing bands using a Trend Quality Index engine that evaluates market efficiency, momentum persistence, and structural pivots. It plots adaptive trend bands and character-flip trend signals directly