Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 18)

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

SahanX v1

by sahansbandara
1 stars

An overlay indicator built on smart money concepts, with separate switches for market structure and volumetric order blocks. It draws swing structure, sweeps and bubbles, plus order block zones with buy and sell activity and optional breakers. Settings control

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of SahanX v1

OMEGA ULTIMATE V3

by princeleuel-code
1 stars

A larger all-in-one overlay combining smart money structure with order flow style tools. It draws a lookback volume profile with value area high, value area low and point of control, flags cumulative volume delta divergence, absorption candles and failed break

Indicator v5 SMC / ICT / price actionVolume
Updated 5 months ago · None stated GitHub repository of OMEGA ULTIMATE V3

This indicator draws horizontal lines and labels on the price chart for pre-market, prior-day, current-day, after-hours, prior-week and current-week highs, lows, opens and closes. Each level has its own switch, and a separate set of switches controls which pri

Indicator v6 Support & resistanceSessions & time Repaints
Updated 6 months ago · None stated GitHub repository of Price Levels Prior Current Day and Week
1 stars

This indicator plots bullish and bearish order-block boxes on the price chart. It marks the prior candle when the current bar engulfs it and volume exceeds a twenty-bar average times a multiplier, then stores the zone in a matrix. Volume threshold and box colo

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Order Blocks Matrix - Castle Trade

CHoCH Indicator

by cavaldos
1 stars

Marks change of character events on the price chart, using swing pivots found with a leg-detection routine. It tracks a swing structure level with a default length of 50 and a shorter internal level with a default length of 5. Each can be switched on or off an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of CHoCH Indicator
1 stars

This indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correction mode

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Elliott Wave Predictor 2026

Elliott Wave Advanced v3

by Focal-QuantAI
1 stars

An indicator on the price chart that labels Elliott Wave structures from swing points. Primary and optional sub-wave swings are detected with length and minimum percentage move settings, then labelled as impulse waves 1 to 5 and corrective A-B-C patterns, with

Indicator v6 Support & resistanceTrend
Updated 6 months ago · None stated GitHub repository of Elliott Wave Advanced v3
1 stars

This indicator calculates the percentile rank of the current daily close price compared to the prior windowDays daily closes for Bitcoin. It plots the resulting 0-100 value in a separate pane. Users adjust the window length with the windowDays input ranging fr

Indicator v6 Support & resistance
Updated 7 months ago · None stated GitHub repository of BTC Daily Percentile

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy overlays Bitcoin cycle timing, an all-time-high rise and drop model, and optional chart studies on the price chart. It sizes positions as a percentage of equity and allows up to five stacked entries in the same direction. Users can show an EMA ra

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

Supply & Demand Zones v6

by nexobanks-prep
1 stars

A Pine v6 rewrite of a supply and demand zone indicator, drawn on the price chart. It classifies candles as impulse or base using ATR multiples, then marks a zone when one or more base candles sit between two impulse candles. The direction of the two impulses

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

This strategy identifies Initial Balance periods on NQ and ES futures charts using user-defined start and end hours in Eastern Time. It classifies days as narrow or wide based on average range lookback and skips narrow or trending days per settings. Entries tr

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB Mean Reversion Fade

Fibonacci Pullback Strategy

by Basant1Saini
1 stars

Fibonacci Pullback Strategy is a trend-following system that identifies retracements within established trends. It calculates dynamic Fibonacci levels (38.2%, 50.0%, and 61.8%) based on recent swing highs and lows over a specified lookback period. Trades are f

Strategy v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Fibonacci Pullback Strategy

MES Gamma (30DTE)

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 thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot da

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

Draw on Liquidity

by Ahmed1926
1 stars

An overlay indicator that draws liquidity levels at pivot highs and lows, filtered by volume. A level appears when the pivot bar's volume exceeds a multiple of its moving average. High and low levels have separate colours, and a display mode shows either all h

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of Draw on Liquidity
1 stars

Institutional Order Flow is a price-chart overlay that marks order blocks, fair value gaps, liquidity sweeps, and market structure. Bullish and bearish order-block boxes require a strong candle, volume above a multiple of a 20-bar average, and a later rally or

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MIT GitHub repository of Institutional Order Flow
1 stars

Calculates trend channels based on a Simple Moving Average (SMA) and Average True Range (ATR) envelope. When price crosses outside the volatility envelope, the indicator identifies trend changes and draws dynamic mid, top, and bottom channel lines directly on

Indicator v5 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Future Trend Channel [ChartPrime]

Smart Money Concepts

by IamTamheedNazir
1 stars

The Smart Money Concepts indicator plots order blocks, fair value gaps, break of structure, and liquidity zones directly on the price chart. It identifies bullish order blocks as strong up-candles following down moves and bearish order blocks as strong down-ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · Custom licence GitHub repository of Smart Money Concepts

SFA Impulse Origin v1

by genesisgrubio39
1 stars

This library from the SFA framework detects structural flow points using break of structure (BOS) and change of character (CHOCH) events. It calculates impulse origins by comparing close prices against ATR-based high and low extremes, filtered by volume percen

Library v6 SMC / ICT / price actionTrend
Updated 10 months ago · None stated GitHub repository of SFA Impulse Origin v1

Risk Interval Derivatives

by tqfoster1035
1 stars

Risk Interval Derivatives is an overlay indicator for E-mini S&P 500 and Nasdaq 100 futures. It detects ES or NQ from the chart symbol, takes a fixed risk interval in points (or a manual override), and plots multiples of that interval above and below the previ

Indicator v6 Support & resistanceVolatility & bands
Updated 10 months ago · None stated GitHub repository of Risk Interval Derivatives
1 stars

Draws support and resistance boxes from pivot highs and lows on the price chart, with box height set as a multiple of ATR. It also marks price gaps above a minimum percentage, with an option to show filled ones, and draws stop loss and two take profit lines. T

Indicator v6 Support & resistanceVolatility & bands
Updated 11 months ago · Custom licence GitHub repository of Levels S/R Boxes + Gaps + SL/TP
1 stars

This indicator identifies high and low pivot points on the price chart using user-defined left and right bars around each bar. It connects pivot points with wave lines, plots PH and PL marks, and labels the latest P1 to P8 patterns. A table shows pivot details

Indicator v5 Support & resistanceTrend
Updated 11 months ago · MIT GitHub repository of Pivot Waves + 8-Pattern + CHoCH
1 stars

Draws a Fibonacci channel on a logarithmic price scale on the price chart. The user sets two high dates and one low date; the script reads monthly highs and lows around those dates, converts them to base-10 logarithms and derives a sloped channel from the two

Indicator v6 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Log Scale Fibonacci (LSF)
1 stars

This indicator plots envelope bands based on a moving average or exponential moving average of a chosen price source. It computes RSI with user-set length and source. Signals trigger on crossovers: buy when price crosses the lower envelope band while RSI falls

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of ENVELOPE - RSI - Buy Sell Signals
1 stars

A strategy that trades with two EMAs. A long entry needs price above the short EMA, which is above the long EMA, plus either RSI below a level or price within a tolerance of a recent pivot low. Shorts mirror this in a downtrend near pivot highs. Exits use ATR-

Strategy v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Optimized Trading Strategy

This strategy trades S50 TFEX USDTHB contracts on the price chart. It detects swing highs and swing lows with pivot points to generate long entries on swing highs and short entries on swing lows. The ATR indicator calculates dynamic stop-loss distances while t

Strategy v6 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Strategy With ATR and Stoploss
1 stars

This strategy compares current bar volume and price direction against the previous bar using a lookback period. It plots colored volume columns in a separate pane to visualize bullish or bearish volume trends and draws a liquidation level threshold line. Long

Strategy v5 VolumeSupport & resistance
Updated 1 year ago · MIT GitHub repository of BuySell Volume Strategy
1 stars

This overlay indicator finds pivot highs and lows from high/low or close/open prices and uses them to draw support and resistance channels and trend lines on the price chart. Minimum strength, maximum channel width, and a cap on how many S/R levels appear filt

Indicator v5 Support & resistanceMoving averages
Updated 1 year ago · None stated GitHub repository of AMD-strategy (All Fixes)

Support Resistance - Dynamic v2

by MuhammadHussain07
1 stars

Support Resistance - Dynamic v2 finds pivot highs and lows on the price chart and groups nearby pivots into support and resistance channels. Settings set the pivot period, whether highs and lows or open and close are used, how many pivots are stored, the maxim

Indicator v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Support Resistance - Dynamic v2
1 stars

A Pine v5 indicator, with Spanish labels, that draws liquidity voids, meaning fair value gaps, as boxes on the price chart. It can show gaps that have already been filled, add text labels, and switch between a historical mode and another mode. A bar count sets

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Liquidity Voids (FVG)

algo-trade-forex

by akash-yellgetti
1 stars

A strategy-type script that draws on the price chart and combines two ideas. Pivot-based support and resistance lines are plotted from left and right bar counts, with breakout labels when price crosses a level on rising volume, and alerts for broken support or

Strategy v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of algo-trade-forex

AmiComStrategy

by amico1234
1 stars

AmiComStrategy is an indicator that calculates correlations between securities using the Corell indicator over specified timeframes such as 5D. It filters trading opportunities based on session times like 1300-1700 and security up and down times such as 3H. Th

Indicator v4 Sessions & timeVolatility & bands
Updated 2 years ago · None stated GitHub repository of AmiComStrategy

Pivots HL

by btm2021
1 stars

A small indicator that finds confirmed pivot highs and pivot lows using a single length setting and labels each one as a higher high, lower high, higher low or lower low by comparing it with the previous pivot of the same kind. Labels are drawn on the price ch

Indicator v4 Support & resistance
Updated 2 years ago · None stated GitHub repository of Pivots HL
1 stars

A price-chart overlay that approximates a volume profile over a custom number of recent bars. On the last bar it finds the highest and lowest mid-price in the chosen range, divides that span into thirty price bands and counts how many bars fall into each. It t

Indicator v4 VolumeSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of Pseudo VPVR Custom Range

Slim Support

by tseitz
1 stars

A Pine v4 strategy that finds pivot highs and lows over a chosen period and groups them into support and resistance channels. Inputs set the pivot period, price source, maximum pivots stored, maximum channel width, number of levels shown, minimum strength and

Strategy v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of Slim Support

XXXNOK

by taco-c
1 stars

The XXXNOK indicator plots the exchange rate of a chosen currency (USD or EUR) to NOK sourced via OANDA. It presents the rate on the main price chart as a black line with a simple width. A single input setting allows selection between USD and EUR. The script u

Indicator v4 Support & resistance
Updated 5 years ago · MPL-2.0 GitHub repository of XXXNOK

This indicator calculates and plots logarithmic growth curves and intermediate Fibonacci levels directly on the main price chart to outline long-term channel boundaries for Bitcoin. It computes upper and lower growth curves based on historical time elapsed sin

Indicator v4 TrendSupport & resistance
Updated 6 years ago · GPL-3.0 GitHub repository of Bitcoin Logarithmic Growth Curves

ICT Liquidity Void Fill

by ArunKBhaskar
575 stars

This overlay indicator marks ICT liquidity void fills on the price chart and can show long and short signals. It places a Fibonacci level inside a displacement candle, defaulting to the midpoint, and draws lines in a chosen style. Optional filters limit the fi

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

This overlay indicator tracks sideways consolidations on the SPX price chart and flags breaks above or below that range. It builds a zigzag from the highest and lowest bars inside a loopback window, smooths nearby highs and lows with a rational quadratic kerne

Indicator v6 BreakoutSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of SPX 30M - Trading Chart
92 stars

This indicator plots horizontal liquidation heatlines for long and short positions directly on the price chart overlay. It highlights key price levels where positions face liquidation, color-coding lines and displaying descriptive tags for estimated sizes. The

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Liq Lines — SOL
56 stars

BigBeluga Smart Money Concepts identifies and overlays market structure and volumetric order blocks directly on the price chart. It analyzes market swings, trend sweeps, and mapping structure using customizable pivot lengths and calculation modes. The indicato

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of BigBeluga - Smart Money Concepts
46 stars

This overlay indicator draws a set of higher-timeframe candles on the price chart. The user sets the timeframe or lets it select automatically, plus candle count, size, offset, margin, and whether the candles are standard or Heikin Ashi. A table can show the a

Indicator v6 Support & resistanceCandlestick patterns Repaints
Updated 8 weeks ago · None stated GitHub repository of HTF Sweep Model with CISD Table

BTC Onchain Indicator

by readysetcryptocodes
43 stars

The indicator overlays Bitcoin pricing models built from daily on-chain series, including difficulty, supply, and market capitalization. It plots a difficulty ribbon from a power-law regression and several moving averages, a stock-to-flow price, a cumulative a

Indicator v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of BTC Onchain Indicator

Price and Longitude Angles

by blueprintresearch-dev
42 stars

Price and Longitude Angles maps planetary longitude to price and plots Gann fan lines from a selected high or low pivot on the price chart. It supports one or two planets, geocentric or heliocentric positions, and single, average, or synodic calculation modes.

Indicator v6 Support & resistanceScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Price and Longitude Angles
24 stars

This overlay indicator maps smart money structure on the price chart. It marks internal and swing break of structure and change of character, bullish and bearish order blocks, equal highs and lows, fair value gaps, premium and discount zones, and strong or wea

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

This indicator detects fair value gap patterns and candle breaks across multiple user-defined timeframes using historical security data requests. It monitors price interaction with specific candle levels and triggers alerts when a break occurs. The main inputs

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · Custom licence GitHub repository of Multi-TF FVG Kerze Break Alert

Bandz Po3 Profiler

by samuelharting
18 stars

Bandz Po3 Profiler draws an ICT-style power-of-three profile on the price chart. It plots higher-timeframe candles, C1 through C4 sequence boxes, T-Spot zones, CISD marks, fair value gaps, STDV projections, sweeps, midpoints, opens, and liquidity. It also mark

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Po3 Profiler

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