Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 21)

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

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy plots a Bitcoin all-time-high cycle model on the price chart. It starts from a chosen date and can show an Ichimoku cloud, a fast and slow geometric mean, and supply and demand boxes. Drop percentage, rise percentage, and a weight set the cycle l

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle

Breaker Blocks

by nexobanks-prep
1 stars

A smart money indicator that finds swing highs and lows with a pivot length, detects a break of structure, and marks the last opposing candle before it as an order block. When price later closes through that block, the zone flips into a bullish or bearish brea

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Breaker Blocks

Gemini QUANTUM

by haydarkadioglu
1 stars

This overlay indicator plots a range-filter trend baseline on the price chart and marks BUY or SELL when the filter direction flips. It builds the filter from a smoothed average of source changes scaled by a multiplier, then trails price above or below that ra

Indicator v5 TrendSMC / ICT / price action Repaints
Updated 8 months ago · None stated GitHub repository of Gemini QUANTUM

MES Gamma (7DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for MES (Micro E-mini S&P 500 futures, scaled from SPY options) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dat

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

FVG + IFVG Gap (ULTRA)

by Ahmed1926
1 stars

An overlay indicator that detects fair value gaps, where one candle's low is above the high from two bars earlier or the reverse, and inverse fair value gaps. Each gap is drawn as a box with an optional 50 percent midline in a chosen style. Settings choose whe

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of FVG + IFVG Gap (ULTRA)
1 stars

Market Structure & S/R Zones plots swing pivot points, structural labels, and horizontal support and resistance zones directly on the price chart. Using configurable swing lengths, it identifies swing highs and lows to classify higher highs, higher lows, lower

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MIT GitHub repository of Market Structure & S/R Zones
1 stars

Ranges with Targets is an indicator that draws horizontal support and resistance lines on the price chart using ATR-based calculations. It detects buy and sell signals from crossovers of close price with the upper and lower range levels. A target multiplier se

Indicator v5 TrendSupport & resistance
Updated 9 months ago · None stated GitHub repository of Ranges with Targets [ChartPrime]

Support & Resistance Finder

by IamTamheedNazir
1 stars

Support & Resistance Finder is an indicator that automatically detects key support and resistance levels on the price chart. It identifies pivot highs and lows using customizable lookback periods and level strength parameters, then tracks and maintains the str

Indicator v5 Support & resistance
Updated 9 months ago · Custom licence GitHub repository of Support & Resistance Finder

SFA Price Gap Inefficiency v1

by genesisgrubio39
1 stars

The library detects price gap inefficiencies using structural flow analytics. It identifies new bullish and bearish gaps with their top and bottom levels, tracks mitigation status, and checks flow alignment between price and CVD trends. It applies regime detec

Library v6 SMC / ICT / price actionVolume
Updated 10 months ago · None stated GitHub repository of SFA Price Gap Inefficiency v1

Yellow Lines for RS

by tqfoster1035
1 stars

Yellow Lines for RS is an overlay indicator that draws horizontal price lines for E-mini S&P 500 and Nasdaq 100 futures. The price levels are typed in by the user in the settings, with three slots per instrument, plus a set of optional preset ES levels. It det

Indicator v6 Support & resistance
Updated 10 months ago · None stated GitHub repository of Yellow Lines for RS

Ogi's Levels

by ognenmitev
1 stars

A multi-part overlay that draws support and resistance boxes from pivot highs and lows, sized as a multiple of ATR, with stop loss and two take profit lines based on an ATR stop distance and risk-to-reward ratios. It adds a trend label from a 50 and 200 bar si

Indicator v6 Support & resistanceTrend
Updated 11 months ago · Custom licence GitHub repository of Ogi's Levels
1 stars

This indicator detects swing highs and lows using configurable pivot lookback periods and plots upper and lower trendlines directly on the price chart. Slope angles are dynamically calculated using ATR, standard deviation, or linear regression methods. Breakou

Indicator v5 TrendSupport & resistance Repaints
Updated 11 months ago · None stated GitHub repository of Trendlines with Breaks LuxAlgo
1 stars

Advanced Market Theory calculates Market Profile, TPO, and Hybrid profiles directly on the price chart. It identifies key structural levels including the Point of Control, Value Area High and Low boundaries, Initial Balance range projections, single prints, po

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · None stated GitHub repository of Advanced Market Theory
1 stars

An indicator on the price chart that finds pivot highs and lows with adjustable left and right bar counts, classifies each into numbered variants using the highs and lows of the neighbouring bars, and connects them as waves. It labels the latest eight pivots,

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · MIT GitHub repository of Pivot Waves 8-Pattern CHoCH

Pivot Points Standard

by yagyesh-bobde
1 stars

The Pivot Points Standard indicator calculates and plots support, resistance, and pivot levels directly on the price chart. It offers multiple calculation algorithms, including Traditional, Fibonacci, Woodie, Classic, Demark, and Camarilla. Users can select pi

Indicator v6 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Pivot Points Standard
1 stars

A pivot based strategy intended for the USDTHB futures on a 30-minute chart. It detects swing highs and swing lows using a long left bar count and a one bar right count, tracks the latest levels, and trades breakouts of them with a fixed contract count and a p

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of USDTHB TFEX Strategy
1 stars

This strategy builds Tenkan, Kijun and both Senkou span lines from adjustable periods. It goes long when price is above both cloud spans and Tenkan is above Kijun, and goes short in the mirror case. Each trade carries an ATR-based stop loss and take profit. Th

Strategy v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud Strategy

FGW | dobofulop

by Dfulop98
1 stars

This indicator draws a Fibonacci golden zone from the most recent swing high and swing low on the price chart. It measures that swing over a configurable bar range and places two Fibonacci ratios, defaulting to 0.5 and 0.618, as lines that outline a potential

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of FGW | dobofulop

BTC Bot

by zhuzp98
1 stars

A long-only strategy for Bitcoin-style charts that combines an RSI-based momentum signal with a trend filter using one or two simple moving averages. It buys when the smoothed RSI signal crosses above zero while price is in an uptrend, sizes positions from a s

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of BTC Bot
1 stars

A compact Pine v5 indicator that draws imbalance zones between candles on the price chart using lines. Two settings are available: a visualization range that sets how many recent imbalances stay on the chart, and a color. Labels are in Spanish and the header c

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Order Flow Imbalance

algo-trade-indian

by akash-yellgetti
1 stars

A strategy-type script for the price chart that marks the high, low and midpoint of the first part of each session, set by start hour and minute inputs, and alerts when price crosses above the high or below the low. It also plots VWAP and a 50-period EMA, pivo

Strategy v5 Sessions & timeSupport & resistance
Updated 2 years ago · None stated GitHub repository of algo-trade-indian
1 stars

Calculates and plots customizable Ichimoku Kinko Hyo components directly on the price chart. It provides options to display standard Ichimoku lines including Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span, as well as an overlay for the Ic

Indicator v5 TrendSupport & resistance
Updated 3 years ago · MIT GitHub repository of Woverine - Ichimou & Cloud

Combo2

by 0xfffangel
1 stars

A combined overlay that bundles several tools in one script. It draws three median-based high/low lines that flip between green and red as price crosses them, support and resistance levels from pivot bars with an optional higher timeframe, Fibonacci levels ove

Indicator v4 TrendSupport & resistance Repaints
Updated 4 years ago · None stated GitHub repository of Combo2
1 stars

An overlay indicator that finds swing pivots using a depth setting and a minimum percentage deviation, then draws a dashed line between the latest two swings and Fibonacci levels from that move. Levels from 0 to 1.618 are shown by default, with 2.618, 3.618 an

Indicator v4 Support & resistance Repaints
Updated 6 years ago · None stated GitHub repository of Auto Fib Retracement
575 stars

The ICT Liquidity Void Fill Scanner monitors up to 40 user-defined symbols for Fair Value Gap and Liquidity Void fill setups. It identifies large displacement candles matching specified ATR volatility and body percentage filters, tracking price retests against

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill Scanner
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
228 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

Candlestick Patterns

by harryguiacorn
220 stars

This indicator plots optional candlestick pattern signals on the price chart. It detects engulfing bars, inside bars, HOLP and LOHP, kicker patterns, body-mass extremes, higher highs and lower lows, ATR warnings, and four-bar fractals. Optional pivot marks use

Indicator v5 Candlestick patternsVolatility & bands
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns

This strategy plots the previous daily high and low on the price chart and calculates the Andean oscillator bull and bear components with an exponential moving average signal. It looks for a bull or bear cross of that signal, then confirms the setup against re

Strategy v5 Oscillators & momentumSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Daily High/Low and Andean Oscillator Strategy

Moon Dev Lunar Sniper

by moondevonyt
92 stars

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

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Lunar Sniper
46 stars

This indicator overlays higher-timeframe candles on the price chart and marks related liquidity levels. It draws a chosen number of HTF candles as regular candles or Heikin Ashi, with optional automatic timeframe selection and a two-level mode. It plots the hi

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of HTF Sweeps & Liquidity Levels w/CISD
41 stars

This indicator estimates higher-timeframe volume distributions using lower-timeframe candle data and overlays them directly on the price chart. It calculates and plots Point of Control, Value Area High and Low, volume profiles, volume-spike bubbles, density zo

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · None stated GitHub repository of HTF Volume Profile Density Zones
29 stars

Zen Bar Range Projections draws two independent higher-timeframe projections on the price chart. For each enabled timeframe it measures the average bar range over a chosen lookback, then places horizontal lines at 0.5, 1 and 2 times that range above and below

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Range Projections
24 stars

This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

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
18 stars

This overlay indicator plots key market structure reference levels, including New Week Opening Gaps (NWOG) and New Day Opening Gaps (NDOG), along with higher timeframe reference levels and Average Daily Range (ADR). It highlights Consequent Encroachment (50% m

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Reference Levels + Gaps + ADR

Alighten Pattern C

by alighten-dev
14 stars

Calculates and plots market structure pivots and Pattern C signal setups directly on the price chart. It constructs a visual ZigZag structure to track high and low pivot points, drawing level rays from confirmed origin pivots. The script scans stored pivot pai

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · None stated GitHub repository of Alighten Pattern C

Market Monitor - 1m

by chris-c-thomas
14 stars

Market Monitor - 1m is an overlay indicator designed for multi-chart monitoring and directional bias assessment. It plots a fast, mid, and slow EMA ribbon with a fill cloud, session VWAP with standard deviation bands, and previous day key levels. It evaluates

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · MIT GitHub repository of Market Monitor - 1m

MyTTFM - Clean

by dbruce1990
12 stars

MyTTFM - Clean draws a higher-timeframe candle overlay on the price chart and marks related ICT fractal structure. It plots configurable HTF candles, period separator lines, midpoint levels, a T-Spot box, and labels for recent C2 and C3 patterns plus swept lev

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of MyTTFM - Clean

BTE AO

by f-cksociety
11 stars

BTE AO is a Pine Script indicator based on the PineCoders Backtesting and Trading Engine framework. It simulates long and short trade entries, filters, stop losses, and take-profit targets directly on the price chart to evaluate trading strategies without nati

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of BTE AO

Chad's Swing Points marks swing highs and lows on the price chart. It detects equal highs and lows, three-bar minor swings, and five-bar major fractals similar to Williams fractals. Users choose whether each group shows every price label or only the latest one

Indicator v4 Support & resistance Repaints
Updated 5 years ago · GPL-3.0 GitHub repository of Chad's Swing Points (@tradeprophet)

TR IV Surface

by Enesp4rl4k
7 stars

This TradingView indicator draws an IV surface snapshot table on the price chart for VIOP options. It displays the ATM term structure with expiry, DTE, and ATM IV percent rows, plus 25-delta skew and term slope in vol points. The table updates statically on th

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 days ago · MIT GitHub repository of TR IV Surface

Intraday Levels

by lunarticktrading
7 stars

Intraday Levels plots prior period price levels and session ranges on the price chart. It can draw previous weekly and previous daily open, high, low, and close as separate lines, each with its own visibility and color. It also marks the Asia and London sessio

Indicator v6 Support & resistanceSessions & time
Updated 2 weeks ago · None stated GitHub repository of Intraday Levels

FVG Strategy

by muammeryldrm42
7 stars

Calculates three-bar Fair Value Gaps (FVG) and filters them using Average True Range. When price mitigates the FVG midpoint, the strategy enters a position in the direction of the gap, provided an optional EMA trend filter is satisfied. Exits are defined by an

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MIT GitHub repository of FVG Strategy

Candle Breaks 1v1 L+S

by chargersfan47
7 stars

This indicator detects 1v1 candle break patterns where the current candle breaks and closes beyond the open of the prior opposite-colored candle. It projects a 1.618 Fibonacci extension target based on the previous candle's range, calculating the expected perc

Indicator v5 BreakoutCandlestick patterns
Updated 5 months ago · None stated GitHub repository of Candle Breaks 1v1 L+S

FX Market Sessions

by itmakesyousick
7 stars

This indicator highlights up to three customizable market trading sessions, such as London, New York, and Tokyo, directly on the price chart using colored boxes and labels. Users can adjust time zones, session hours, colors, border styling, and fill transparen

Indicator v5 Sessions & timeSupport & resistance
Updated 3 years ago · None stated GitHub repository of FX Market Sessions

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