Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 56)

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

Gaps

by ivansoft
1 stars

An indicator on the price chart that finds price gaps between bars and draws a box over each one, green for up gaps and red for down gaps. A gap must exceed a minimum size set as a percentage of the recent average bar range. Each box extends to the right until

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Gaps

This indicator detects market accumulation phases and bottom formations over time rather than generating single-point buy signals. It evaluates five scoring components: trend loss, range formation, volatility compression, liquidity behavior, and early bullish

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Vein: Accumulation Phase 4H [WavesUnchained]
6 stars

This indicator plots Candle Range Theory setups on the price chart. It marks session-based CRT ranges for one-hour or four-hour models and labels buy and sell signals after a liquidity sweep. Entry logic either waits for a market structure shift plus a fair va

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine Dual Mode
2 stars

The Detrended Rhythm Oscillator combines a Detrended Price Oscillator with ZigZag pivot logic to measure market cycle lengths and dominant swing rhythms. It plots detrended oscillations in a separate pane along with dynamic distance labels between swing highs

Indicator v5 Oscillators & momentumSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Detrended Rhythm Oscillator
1 stars

This indicator calculates a Fibonacci-scaled sinusoidal wave cycle derived from two user-selected chart reference points. Plotted directly on the main price chart, it projects an extended trendline alongside moving averages adjusted by normal and inverse slope

Indicator v5 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System {Morindok}
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. A lookback setting decides when a zone is invalidated and a tolerance margin allows small breaches. Algorithm modes range from loose

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

HighLow

by ivansoft
1 stars

Experimental overlay that tracks the high, low and open of different periods, such as session, day and week, using varip variables and chart points, and draws dotted lines and labels at the periods' extremes. Colour, text size, line width and line style are ad

Indicator v5 Support & resistanceSessions & time Repaints
Updated 1 year ago · None stated GitHub repository of HighLow

Vein Execution 15m is an execution and timing overlay designed to complement higher-timeframe context. It monitors lower-timeframe micro structure shifts, liquidity sweeps, rejection candles, engulfing patterns, and follow-through momentum. The script calculat

Indicator v6 TrendSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Vein: Execution 15m [WavesUnchained]
6 stars

Institutional CRT Engine v5.0 identifies institutional trading setups using Candle Range Theory (CRT) across user-selected session anchor bars in Asia, London, and New York. It plots session range boxes directly on the price chart and monitors for liquidity sw

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine v5.0
1 stars

A strategy that trades liquidity sweeps on the price chart. A bullish sweep is a low below the lowest low of the prior 20 bars that closes back above it with a lower wick longer than a set multiple of the body; a bearish sweep mirrors this at the highs. A volu

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Sovereign Liquidity Hunt
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

HighLow

by ivansoft
1 stars

An indicator on the price chart that tracks the high, low, open and close of calendar periods, with session, day, week, month and year contexts, and keeps a short history of recent periods. It handles Moscow Exchange futures sessions with their main and evenin

Indicator v5 Support & resistanceSessions & time
Updated 1 year ago · None stated GitHub repository of HighLow

EXPC-tracker

by Allen1212
303 stars

This Pine Script indicator plots labels on the price chart to mark ARK Invest ETF buy and sell events for a selected stock. The main input setting is ETF type selection, defaulting to ALL or specific ETFs such as ARKQ. Labels appear below the chart price for e

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of EXPC-tracker

MA & BB Levels [ST]

by eddiebelaval
7 stars

This indicator draws horizontal daily and weekly levels on the price chart from two exponential moving averages and a Bollinger-style envelope. It calculates EMA 9, EMA 20, and an EMA-based band with a configurable standard-deviation width, then requests those

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of MA & BB Levels [ST]

Key Levels Pro

by alboogycOdR
6 stars

The script plots horizontal lines on the price chart for key trading levels, including previous day high and low, daily session ranges split into Asia and London, and gaps labeled NDOG daily, NWOG weekly, and NMOG monthly. It optionally shows wick rejection sy

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of Key Levels Pro
2 stars

Divergence-Support/Resistence combines dual Zigzag pivot detection with momentum oscillators to identify divergence patterns and plot support and resistance levels directly on the price chart. Users can select from various built-in oscillators, such as RSI, CC

Indicator v5 DivergenceSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Divergence-Support/Resistence
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

My Script

by ricardosantos79
261 stars

This indicator uses array operations to track recent high and low values. It defines helper functions to insert values into a fixed-size array. On each bar it calculates the 10-bar highest high and lowest low, then checks for the formation of a new high or low

Indicator v4 Support & resistanceMean reversion
Updated 4 years ago · None stated GitHub repository of My Script

Vein: Pullback identifies temporary counter-trend retracements and signals when they end versus when structure breaks. It calculates a multi-layer confluence score from 0 to 10 based on trend quality, move weakness, structure preservation, and Fibonacci retrac

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Pullback [WavesUnchained]
7 stars

Session Dominance Profile [Pointalgo] is an overlay indicator that calculates a volume profile broken down by global trading sessions over a specified lookback period. It divides the historical high-low range into price bins and categorizes volume into Asian,

Indicator v5 VolumeSessions & time
Updated 3 months ago · None stated GitHub repository of Session Dominance Profile [Pointalgo]

Key Trading Levels Pro

by alboogycOdR
6 stars

Key Trading Levels Pro plots previous-day high and low, Asia and London session ranges, and new daily, weekly, and monthly opening gaps on the price chart. It can mark candles whose wicks touch a level while the body closes on the other side. Users toggle each

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of Key Trading Levels Pro
1 stars

PF probe 53 - stop touch boundary is a strategy that draws on the price chart. It checks for specific UTC hours (2:15 for long, 14:15 for short) and enters a long position when no position exists by placing a stop order one tick beyond the previous bar's high.

Strategy v6 Sessions & timeSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 53 - stop touch boundary
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance ma

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

libhl

by ivansoft
1 stars

A Pine Script v5 library that records the open, high, low and close points of successive periods and keeps the latest few in an array. It exports types for period contexts and alignment, a helper that detects when a period such as a week or month changes relat

Library v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of libhl
9 stars

The script calculates a two-layer reversal scoring system designed to identify potential market turning points. Layer A evaluates momentum, overextension, volume, and candle metrics to establish a setup score, while Layer B confirms structural events such as m

Indicator v6 Oscillators & momentumSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Vein: Reversal Score 4H

TN Sovereign Market Structure v6 is an overlay strategy that identifies market structure breaks and trends using pivot points, a 50-period Exponential Moving Average (EMA), and the Ichimoku Cloud. It detects Break of Structure (BOS) signals when price closes p

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of TN Sovereign Market Structure v6
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance margin. A long term mode keeps more zones. Algori

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4
1 stars

An indicator that draws a box on the price chart for each higher timeframe period, showing that period's range as one candle-like block. The timeframe is chosen automatically from the chart timeframe or set by hand. Box height can be based on the high-low rang

Indicator v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Multi-Time Period Charts

FB Tracker

by Allen1212
303 stars

This indicator plots ARK Invest buy and sell trade labels directly on the price chart for Facebook stock. Labels show buy quantities with green "Buy Xn" text and sell quantities with red "Sell Xn" text at exact bar times. The etf_type input changes the ETF fil

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of FB Tracker

This boilerplate strategy script acts as a customizable template for generating buy and sell signals based on price or source crossovers relative to defined fixed values. Users can select an input source, set threshold values, and specify whether to trigger en

Strategy v5 Support & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Signal Template/Boilerplate Strategy [ExoMaven]
99 stars

Ehlers Ultimate Channel calculates volatility bands around an adaptive smoothed centerline based on John Ehlers' smoothing algorithm. It applies a specialized infinite impulse response filter to both price and True Range, constructing an upper, middle, and low

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Ultimate Channel (UCHANNEL)

This indicator draws support and resistance zones on the price chart from reversal bars that later reach ATR-based targets. Weak and strong labels depend on travel distance, adverse move, and how quickly the target is hit. Nearby same-direction zones merge, a

Indicator v6 Support & resistanceOscillators & momentum Repaints
Updated 3 days ago · MIT GitHub repository of Vein: Reversal Zones [WavesUnchained]

Vdubus Pattern Gen V2

by eddiebelaval
7 stars

Vdubus Pattern Gen V2 is a TradingView indicator that identifies and plots chart patterns, harmonic shapes, and structural reversals based on multi-scale ZigZag structures and smoothed momentum physics. It draws fast entry structures, slow macro context struct

Indicator v5 TrendSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Vdubus Pattern Gen V2
6 stars

This indicator plots Malaysian-style support and resistance on the price chart. It marks A levels from pivot highs and V levels from pivot lows, using a user-set lookback, and can also mark gap levels. Fresh and previously touched levels can be shown or hidden

Indicator v5 Support & resistance
Updated 7 months ago · None stated GitHub repository of Malaysian SnR [by DanielM]
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, split into two zone types: one where price breaks the zone high or low, and one where only the open is broken. Each type has its own maximum count, and a tolerance margin allows s

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

Varip Period Tracker

by ivansoft
1 stars

Experimental overlay that tracks high and low points for several period types such as session, five and ten minutes, day, week, month and year using varip objects. It draws dashed lines for the current period extremes and writes debugging labels with times on

Indicator v5 Support & resistanceSessions & time Repaints
Updated 1 year ago · None stated GitHub repository of Varip Period Tracker
114 stars

This indicator overlays a Renko-style brick channel on the price chart. It sets brick size as a fraction of the previous close, choosing that fraction from the chart timeframe, then steps two brick levels when price moves beyond that size. It colors the fill g

Indicator v4 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of ZigZag via Renko Emulator

Pivot Extension Strategy

by TWODS-CAPITAL
37 stars

The Pivot Extension Strategy identifies local high and low pivot points based on user-defined left and right bar counts. It enters a long position when a pivot low is detected and enters a short position when a pivot high is confirmed. The strategy toggles bet

Strategy v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Pivot Extension Strategy
7 stars

This indicator identifies and projects Wyckoff schematic structures directly on the main price chart. It automatically detects price action phases (Phases A through E), key events, support and resistance levels, and volume spikes. The script features customiza

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Wyckoff Schematic by Kingshuk Ghosh
6 stars

This indicator identifies support and resistance levels using the Malaysian Support and Resistance technique based on pivot high (A) and pivot low (V) close prices. It plots support, resistance, and price gap lines directly on the main chart pane. Traders can

Indicator v5 Support & resistance
Updated 7 months ago · None stated GitHub repository of Malaysian SnR OPTIMIZED by KF
3 stars

The Krypton Indicator overlays trend analysis, buy and sell zones, and sentiment tracking directly onto the price chart. It calculates a dual moving average trend filter, renders supply and demand zones, and plots a sentiment line to identify market momentum.

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Krypton Indicator
1 stars

The Interactive Three Points Curve is an overlay indicator that fits a quadratic curve through three user-selected chart points. Point 2 acts as the apex, while Points 1 and 3 serve as boundary anchors. Outside these anchors, the script extends linearly based

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Interactive Three Points Curve
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, split into two zone types: one where price breaks the zone high or low, and one where only the open is broken. Each type has its own maximum count, and a tolerance margin allows s

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4
106 stars

This strategy executes high-pyramiding trades using a combination of dynamic support and resistance breakout channels, the Supertrend indicator, and an array of predefined price levels. It tracks recent 100-bar extremes to permit buys on breakouts and manages

Strategy v5 TrendSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Test for More Freq

Last Bar Close 2

by be-thomas
65 stars

Displays a text label showing the close price of the most recent bar directly on the price chart. The label updates on each bar, deleting the previous label so that only the latest bar displays its closing price. The label color changes dynamically based on wh

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Last Bar Close 2

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