Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 41)

Open-source Pine scripts that draw levels: pivot points, automatic support and resistance, supply and demand zones, Fibonacci and previous highs and lows.

Pine scripts3,142
Code shown here1,440open licence
Updated in a year2,416
No repaint flag2,547

Support & resistance: Indicators, Strategies and Libraries

1 stars

An overlay indicator that detects pivot highs and lows on closing prices and draws a created line that extends to the right, plus a short confirmation line. Labels show the level, price and an Indian-time stamp, and each element has its own toggle. Break alert

Indicator v5 Support & resistanceBreakout
Updated 2 weeks ago · None stated GitHub repository of S (Or) R Breakout

Liquidity Zones

by morindok
1 stars

Builds a liquidity heat map on the price chart over the last 240 candles by default. The price range is split into rows and the history into time columns. Candle wicks, bodies and equal pivot highs and lows add weighted scores, and a candle body passing throug

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Liquidity Zones
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.2

Trendline Breakouts With Targets

by shubhamtaywade82
1 stars

Detects pivot highs and lows, draws sloping trendlines from them and marks breakouts on the price chart. After a breakout it shows take profit and stop loss visuals and a status table. Settings choose the pivot period, whether lines use wicks or candle bodies,

Indicator v6 Support & resistanceBreakout Archived
Updated 5 months ago · None stated GitHub repository of Trendline Breakouts With Targets
1 stars

Draws supply and demand zones as boxes on the price chart using several detection modes, including classic candle patterns judged by body percentage and an ATR-based mode. This variant uses looser body thresholds, allowing a base candle body up to the full can

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones 2026-2

Liquidation Heatmap

by ymlee1104
1 stars

This indicator draws a liquidation heatmap on the price chart. It estimates pocket intensity from volume, price range, or their product over a configurable lookback, then filters by minimum intensity and merges nearby labels. An optional ZigZag plots swings, w

Indicator v6 Support & resistanceVolume
Updated 7 months ago · None stated GitHub repository of Liquidation Heatmap

SPY Gamma (30DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of SPY Gamma (30DTE)

MTB_10

by JohnsonHsiao
1 stars

This indicator calculates multi-layered Bollinger Bands based on a simple moving average baseline and standard deviation offsets. It projects 15 upper bands and 15 lower bands spaced at 0.2 standard deviation increments, spanning from 0.2 up to 3.0 standard de

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of MTB_10

The indicator scores whether a counter-move against the dominant structure is maturing and whether price has started turning back. It plots a composite score in a separate pane from weighted context, correction maturity, and exhaustion, scaled by trigger and a

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Directional Probability Engine v2 [WavesUnchained]
6 stars

Wick Rejection S/R Strategy v3 identifies key support and resistance zones on the price chart using candle wick rejection percentages and liquidity sweeps. It evaluates market structure changes, zone retests, and sweeps to assign confidence scores to trading s

Strategy v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Wick Rejection S/R Strategy v3
5 stars

This research diagnostic indicator reconstructs fixed-range volume profiles on the main price chart using lower-timeframe bar data. It approximates TradingView native fixed-range volume profiles over a specified time range using configurable source timeframes

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Native-Like Bar Profile Diagnostic

Moving Centroid

by gorx1
5 stars

Calculates a density-weighted central price level over a user-defined lookback window and plots it directly on the main chart. For each bar in the lookback period, it computes how frequently historical high-low ranges overlap that bar's price, using this densi

Indicator v4 Moving averagesSupport & resistance
Updated 8 months ago · None stated GitHub repository of Moving Centroid

Diego's Strategy

by jerryinyang
5 stars

Diego's Strategy draws confirmed swing pivots on the price chart and connects them with dashed lines when the price move exceeds an ATR-based deviation threshold. It can plot Fibonacci retracement levels and use a chosen zone for entries, with separate Fibonac

Strategy v4 Support & resistanceTrend
Updated 2 years ago · None stated GitHub repository of Diego's Strategy
4 stars

This indicator detects swing highs and lows with symmetric pivot lengths and draws horizontal support and resistance lines on the price chart. New pivots that fall within a user-set percentage of ATR of an existing level are merged into one zone. Resistance us

Indicator v5 Support & resistance
Updated 11 months ago · Custom licence GitHub repository of Support & Resistance Zones [Lab]
3 stars

This indicator detects streaks of consecutive candles on a price chart and plots Fibonacci retracement levels based on their high-low range. Users set the streak length (default 3) to identify swing highs and lows. It calculates and displays customizable level

Indicator v5 Support & resistanceCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Consecutive Candle Levels

Mirpapa Lib Line

by alvinng214
2 stars

This library creates and tracks horizontal lines on the chart. It supports two breach modes: price and close. When a line is breached, it increments a break count up to a maximum value and can finalize the line with a close color. The data structure holds line

Library v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib Line

Alpy Kazan2

by avatar-lavventura
2 stars

This strategy detects momentum shifts using the WaveTrend oscillator where wt1 crosses above wt2 for long entries and below for shorts. Fractal patterns confirm reversals with upFractal and downFractal signals based on high and low price swings over multiple b

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Kazan2

This indicator plots a multi-timeframe ZigZag pattern alongside Fibonacci retracement levels directly on the price chart. It identifies swing highs and swing lows across a user-defined timeframe and period, storing recent swing coordinates in an array. From th

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag Multi Time Frame with Fibonacci Retracement
2 stars

This strategy identifies market direction by combining a TrendSignal breakout algorithm with a Zig Zag swing overlay. It calculates dynamic price bands over a period to determine trend flips, plotting triangle shapes directly on the price chart for buy and sel

Strategy v4 TrendSupport & resistance
Updated 4 years ago · MIT GitHub repository of Trendsignal + Zig Zag Strategy

Previous Day Levels

by jayadevrana
1 stars

The Previous Day Levels indicator plots yesterday's high and low as step lines on the price chart for any symbol and timeframe. It shades the daily trading range and draws triangular markers on breakout events when price crosses the high or low. Input settings

Indicator v6 Support & resistanceBreakout
Updated 4 days ago · MPL-2.0 GitHub repository of Previous Day Levels

Dual Thrust Breakout

by pineforge-4pass
1 stars

The Dual Thrust Breakout strategy calculates upper and lower price threshold channels based on an open-anchored range formula over a configurable lookback period. It determines the maximum value between highest high minus lowest close and highest close minus l

Strategy v6 BreakoutSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of Dual Thrust Breakout

A merged strategy that combines two entry engines on one chart. The anchor trail engine uses a dynamic equilibrium level called P0, built from a rolling volume and delta profile, and scores acceptance and rejection against structural levels such as POC and val

Strategy v6 VolumeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Dynamic P0 Delta + DBR Change-Point Merged Strategy

Mirror Oscillator

by morindok
1 stars

The Mirror Oscillator indicator computes a central mirror level as the average of the highest high and lowest low over 500 bars, along with recent mirror levels based on the n-period highest high and lowest low. It calculates percentage deviations of the close

Indicator v6 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator
1 stars

Marks the bar where a volume order block zone is first confirmed, which is when the moving average crossover completes, so the marker does not move to an earlier bar later. A sensitivity bank input selects the set of six sensitivity lengths, or custom values c

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Birth Bar Study v1.2 Tick

V12 Swing Sniper Pro

by kevinesk
1 stars

V12 Swing Sniper Pro is a swing trading indicator for Bursa Malaysia stocks. It layers macro and sector filters atop Minervini-style trend quality gates and RSI checks to validate bullish setups. The script fires buy signals when coiling, pullback proximity, b

Indicator v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of V12 Swing Sniper Pro
1 stars

A strategy version of a trendline breakout tool. It draws pivot-based trendlines on the price chart and trades breakouts, using an ATR-based stop loss by default and a take profit set as a multiple of the stop distance, 1.5 by default. Settings choose the pivo

Strategy v6 BreakoutSupport & resistance Archived
Updated 5 months ago · None stated GitHub repository of Trendline Breakouts With Targets Strategy

Scalper Pro 3 Min Gold

by Focal-QuantAI
1 stars

Scalper Pro 3 Min Gold is a price-chart indicator that marks breakout setups around recent pivot highs and lows. It signals a long when a bullish candle closes above the last pivot high while holding a higher low, and a short when a bearish candle closes below

Indicator v5 BreakoutSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Scalper Pro 3 Min Gold
1 stars

UnizonesAlgo identifies and plots higher-timeframe supply and demand zones on the main price chart using pivot highs and lows. It generates trade signals when price reaches a zone, demonstrates rejection, and receives confirmation from volume exceeding a movin

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 8 months ago · None stated GitHub repository of UnizonesAlgo (Universal Zones)

SPY Gamma (7DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from a

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of SPY Gamma (7DTE)

v5 combination by yzz

by webcrack4
1 stars

This indicator overlays a volume or market profile histogram on the price chart and also draws a MACD-style overlay. It builds rows from lower-timeframe bars over the visible range, an anchored start, or all history, then marks the point of control and optiona

Indicator v5 VolumeSupport & resistance Repaints
Updated 9 months ago · None stated GitHub repository of v5 combination by yzz
257 stars

This strategy overlays Fibonacci standard deviation bands based on volume-weighted moving averages (VWMA) alongside 10-period open moving averages and pivot high/low levels directly on the price chart. It defines percentage-based stop-loss and take-profit targ

Strategy v5 Volatility & bandsMoving averages Repaints
Updated 7 weeks ago · None stated GitHub repository of Futures - No Repain ES

This strategy implements a multi-stage trend following system inspired by John W. Seykota. It generates long and short entries when price breaks above or below Donchian channels of specified length. Each entry adds a unit sized to risk a fixed percentage of cu

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 29: Multi-Stage Scaling
9 stars

Edge Atlas draws a right-edge price-level atlas on the price chart. Modules produce day, week, and other period highs, lows, opens, and closes, plus pivot points, Fibonacci levels, support and resistance zones, session ranges, round numbers, and VWAP. A shared

Indicator v6 Support & resistanceSessions & time Repaints
Updated 3 days ago · MIT GitHub repository of Edge Atlas [WavesUnchained]
9 stars

Identifies support and resistance liquidity zones from pivot highs and lows and detects liquidity sweep events on the price chart. A sweep is registered when price wicks beyond a tracked zone but closes back inside it. Optional filters include an exponential m

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Liquidity Sweep Detector [DefinedEdge]

WR-SR + SMC Strategy

by alboogycOdR
6 stars

This overlay strategy looks for wick rejections near support and resistance levels and scores them with smart-money confluence. It can plot fair value gaps, order blocks, change-of-character and break-of-structure labels, higher-timeframe structure lines, and

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of WR-SR + SMC Strategy
5 stars

This diagnostic indicator reconstructs a native-style Fixed Range Volume Profile directly on the price chart using lower-timeframe bar data across a user-defined time range. It allocates bar volume across price rows, calculates the Value Area, and identifies v

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of VP RSD Native-Like Bar Profile Diagnostic

REG-TREND

by gocaman
3 stars

The REG-TREND indicator plots linear regression trend lines calculated from the selected source over a user-defined length. It determines channel boundaries and deviation to detect trend breaks, marking them with dotted lines in the chosen color. Fibonacci ret

Indicator v5 TrendSupport & resistance
Updated 2 days ago · None stated GitHub repository of REG-TREND

CPL

by g-moe
3 stars

Plots an external symbol's closing price as a horizontal dotted line extended to the right of the latest bar. By default, it requests the price of the ETHUSDTPERP contract using a configurable exchange prefix. It can also display a label showing the chart's ro

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of CPL

Mirpapa Lib Struct

by alvinng214
2 stars

This Pine Script v6 library provides custom exported data types and initialization functions for tracking Smart Money Concepts and ICT market structure shifts. It defines structures to manage states for Break of Structure, Change of Character, Market Structure

Library v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Mirpapa Lib Struct

Log-Normal Price Forecast

by regalouisei
2 stars

Log-Normal Price Forecast calculates historical log returns and volatility to project theoretical future price movements on the main chart overlay. Using a normal distribution inverse function, it computes statistical drift and standard deviation to plot dynam

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Log-Normal Price Forecast

ZigZag reSampled

by WISEPLAT
2 stars

ZigZag reSampled draws one purple swing line on the price chart. It tracks the highest high and lowest low over a depth window, then flips between an upward and a downward leg when a bar a set number of backsteps ago makes a new extreme. Depth controls that lo

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag reSampled
1 stars

This multi-model strategy combines kinematic price modeling, Bayesian inference forecasts, volume profile consolidation zones, and automated pattern recognition directly on the price chart. It evaluates market trajectory using weighted kinematic regression, un

Strategy v5 AI / machine learningSupport & resistance
Updated 2 days ago · None stated GitHub repository of JAT+BSM Pro v13 Extended
1 stars

A strategy that builds a structural delta volume profile with point of control, value area and high-delta liquidity zones, plus a rolling P0 equilibrium and an acceptance and rejection scoring dashboard. Entries come from the flip of an adaptive ATR band that

Strategy v6 VolumeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Dynamic P0 Delta Profile Strategy v1.0.4

SR Batch

by 7b809
1 stars

An overlay indicator that draws support and resistance boxes from pivot lows and highs, accepted only when a simple up and down volume delta passes a filter. Box height uses ATR scaled by a width input. It marks when a level holds or breaks, and builds strike

Indicator v5 Support & resistanceVolume
Updated 2 weeks ago · None stated GitHub repository of SR Batch

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers