Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 29)

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

algo-trade-v11

by akash-yellgetti
1 stars

A strategy-type script for the price chart that draws the high, low and midpoint of the first part of each session, set by end hour and minute inputs. It plots pivot-based support and resistance using fifteen left and right bars, labels breaks that coincide wi

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

Hotch Strat

by rajatjpatel
1 stars

A Pine v5 overlay that detects Williams-style fractals over an adjustable period and filters them by a recent RSI extreme. When a down fractal forms after RSI dipped into the 20s, 30s or 40s over the lookback, an up triangle of a matching shade is drawn below

Indicator v5 Oscillators & momentumSupport & resistance
Updated 4 years ago · None stated GitHub repository of Hotch Strat

Ichimoku Kumo

by hayashi19
1 stars

This indicator draws an Ichimoku Kinko Hyo set on the price chart, with conversion and base lines, leading spans A and B, a lagging line and a cloud filled lime or red depending on which span is higher. Candles are coloured green, red or white by their positio

Indicator v5 TrendSupport & resistance
Updated 4 years ago · None stated GitHub repository of Ichimoku Kumo
575 stars

This indicator detects equal highs and lows by comparing prices within user-defined left and right bars using a tolerance percentage. It plots horizontal lines on the price chart for equal highs in one color and lows in another. A screener allows input of mult

Indicator v5 Support & resistanceTrend
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Equal Highs and Lows with Screener
257 stars

This strategy overlays the price chart and builds Ichimoku-style Tenkan, Kijun, Chikou, and Senkou values from a ten-bar average of opens. It plots pivot highs and lows as resistance and support circles and reconstructs Heikin-Ashi-like prices from recent open

Strategy v5 TrendSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Dev - Futures No repaint
104 stars

The ABC and Parabolic SAR Strategy calculates ABC chart patterns using a ZigZag structure alongside Fibonacci retracement levels and a trend cloud formed by six moving averages. It visualizes trend direction and pattern signals directly on the main price chart

Strategy v4 TrendSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of ABC and Parabolic SAR Strategy

Fractals v2

by iamc1oud
56 stars

Fractals v2 identifies custom swing highs and swing lows across configurable left and right bar periods and visualizes them on the price chart. It plots extended swing lines, labels, boxes, and optional volume or open interest delta data for crypto futures. Tr

Indicator v5 Support & resistanceVolume Repaints
Updated 2 months ago · None stated GitHub repository of Fractals v2

Fvg Fibo

by Ahmed-GoCode
53 stars

This indicator overlays fair value gaps, market-structure breaks, and two Fibonacci levels on the price chart. It draws bullish, bearish, and mitigated gap zones and can shrink mitigated gaps. It marks break of structure and change of character lines, with an

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Fvg Fibo

MTF market analysis toolkit

by TamaraKGreen
46 stars

This indicator draws higher-timeframe candles on the price chart so traders can compare a larger timeframe with the current bars. It can show regular candles or Heikin Ashi, with optional automatic timeframe selection and a second level. A stats table and a ti

Indicator v6 Support & resistanceScreeners & dashboards Repaints
Updated 8 weeks ago · None stated GitHub repository of MTF market analysis toolkit
43 stars

This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-

Strategy v5 TrendBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOL 1m - Strategy Candle Bar

Path of the Planets

by blueprintresearch-dev
42 stars

Path of the Planets is an overlay indicator that calculates and plots planetary longitudes and declinations directly on the price chart using VSOP87, ELP2000-82, and Meeus astronomical algorithms. It supports both geocentric and heliocentric tracking for indiv

Indicator v6 Support & resistanceScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Path of the Planets
16 stars

Smart Money Concepts [LuxAlgo] X CDC overlay indicator visualizes market structure and smart money concepts directly on the price chart. It detects real-time internal and swing market structure events including Change of Character (CHoCH) and Break of Structur

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

SPY 0DTE Scalper - 1m

by chris-c-thomas
14 stars

This overlay indicator marks CALLS and PUTS labels on the price chart when a strict boolean gate of price structure, momentum, volatility, breadth, and candle confirmation all pass. It plots an EMA ribbon with cloud fill, session-anchored VWAP and standard-dev

Indicator v6 ScalpingMoving averages
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 1m

TTrades Daily Bias [TFO]

by dbruce1990
12 stars

This indicator determines daily and weekly bias using higher-timeframe structural levels and liquidity targets based on TTrades concepts. It plots period separators, tracks previous highs and lows, and changes level colors when liquidity is raided. An on-scree

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of TTrades Daily Bias [TFO]

Calculates a composite Trend Factor ranging from -100 to +100 alongside a confidence score from five weighted evidence blocks: linear regression slope, trend strength metrics (ADX, Efficiency Ratio, R-squared), swing market structure, volatility quality, and e

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Bayesian Trend Factor [WavesUnchained]

The Institutional Order Flow Strength Classifier identifies bullish and bearish order blocks triggered by market structure breaks confirmed through pivot highs and lows. It calculates a strength score for each order block based on price displacement and relati

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Institutional Order Flow Strength Classifier [LuxAlgo]

This strategy marks an n-bar pivot low and treats it as confirmed when the close crosses above that bar's high. On confirmation it stores a sell-to-close level at the pivot low, a standard-deviation trailing stop, a retrace level for adding size, and a rounded

Strategy v4 Support & resistanceVolatility & bands
Updated 4 years ago · None stated GitHub repository of PivotConfirm-with-SellToClose

LunarTick Levels

by lunarticktrading
7 stars

LunarTick Levels plots key daily reference levels and multi-timeframe simple moving averages directly on the price chart. It highlights key price points including the Opening Print, Previous Day High and Low, and Overnight High and Low. Additionally, it projec

Indicator v6 Support & resistanceMoving averages
Updated 2 weeks ago · None stated GitHub repository of LunarTick Levels

OTE (Optimal Trade Entry)

by muammeryldrm42
7 stars

This strategy draws optimal trade entry zones on the price chart from confirmed swing pivots. A later swing high after a swing low defines an up impulse, and the reverse defines a down impulse. It then marks the 0.62 to 0.79 Fibonacci retracement of that swing

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MIT GitHub repository of OTE (Optimal Trade Entry)
6 stars

This indicator creates a scanner dashboard on the price chart for 16 symbols including EURUSD, GBPUSD, XAUUSD, BTCUSD and others. It displays institutional bias using colored icons for bullish, bearish, neutral and wait signals. The dashboard supports three co

Indicator v6 Screeners & dashboardsSupport & resistance
Updated 7 months ago · None stated GitHub repository of Institutional Bias Scanner

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite classifies candles across six configurable timeframes using Rob Smith's TheStrat bar types. It plots inside bars, hammers, shooters, failed 2s and outside bars on the price chart, with magnitude and exhaustion targets, stop levels and full timef

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStrat Suite
4 stars

Ichimoku Cloud — Large Cap is a long-only trend-following strategy designed for large-cap stocks. It calculates standard Ichimoku components, including Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span. Trades enter on a bullish Tenkan/Kijun

Strategy v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud — Large Cap

Elliott Wave [LuxAlgo]

by YooooungLee
4 stars

This overlay indicator marks Elliott Wave structure on the price chart. Comments describe detection of impulse and corrective waves across three ZigZag lengths, Fibonacci retracement levels, and numbered wave labels. Users choose high and low sources, turn eac

Indicator v5 Support & resistance
Updated 10 months ago · Apache-2.0 GitHub repository of Elliott Wave [LuxAlgo]
3 stars

This indicator combines a Delta Money Flow Profile with Bjorgum price levels directly on the main price chart. It calculates buying and selling volume delta using either candle polarity or buying/selling pressure to display money flow profiles, normalized dist

Indicator v5 Support & resistanceVolume
Updated 12 months ago · None stated GitHub repository of DeltaProfile TimePrice Bjorgum Levels
3 stars

This indicator detects bearish M and bullish W chart formations on the price chart based on Steve Mauro's Beat The Market Maker (BTMM) methodology. It emphasizes second-leg entries confirmed by a clean close across the 13 EMA, volume filters, and minimum ATR p

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM M&W Pattern Detection
2 stars

This indicator maps the Asia, London, and New York sessions on the price chart. It draws each developing session range as a translucent box and places dashed liquidity rails at prior session highs and lows. Those rails remain until price sweeps them, then they

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Session Liquidity Map [Vantrade]
2 stars

This indicator tracks multi-timeframe market structure across up to four user-defined timeframes in a separate pane. It identifies structural changes through Break of Structure (BoS) and Change of Character (CHoCH) events derived from pivot highs and lows. Use

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Market Structure MTF Trend [Pt]

This indicator calculates predictive volatility boundaries and support/resistance range channels for grid trading configurations. It determines grid envelopes using an ATR-based step algorithm across a configurable length and multiplier factor, with customizab

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Predictive Ranges [psyll]

Daily Deviation

by Electrified-Trading
2 stars

This library calculates arrays of daily price deviations from the open to the high, low, and close over a user-specified number of days. It optionally filters outliers using a maximum deviation threshold. The fromOpen function returns a normalized value showin

Library v5 Volatility & bandsSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Daily Deviation

Day Trading Range

by Web3Degenerate
2 stars

This indicator plots daily trading range lines on the price chart using higher timeframe data. It detects new trading days and draws the open price line in white, upper and lower ATR bands in aqua based on the ATR length and multiplier, yesterday's high in red

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Day Trading Range

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator overlays high time frame candles and pivot points on the current price chart. It plots candles from selected higher timeframes using open-close, high-low or both display styles with optional wicks and bar colors. Pivot points follow traditional

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots
2 stars

This indicator calculates pivot highs and lows using a defined period to draw ZigZag lines directly on the price chart. It projects customizable Fibonacci retracement levels and ratio labels across identified pivot swings. It also displays real-time retracemen

Indicator v5 Support & resistance Repaints
Updated 3 years ago · None stated GitHub repository of ZigZag with Retracement Levels

SMC+OB+FVG_PH

by mydcc
1 stars

This indicator plots smart money concept structures directly on the price chart. It detects and visualizes market structure elements including change of character, break of structure, swing points, inducements, and liquidity sweeps. Additionally, it identifies

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · Custom licence GitHub repository of SMC+OB+FVG_PH

OI Profile

by rellis3
1 stars

Shows an options book as a picture on the price chart, from an export pasted into a settings box. It draws reaction levels and optional zones, an expected-move box, and a set of profile columns in the empty space right of the last bar: dealer gamma by strike,

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of OI Profile

SMC Context Bus

by skipp-dev
1 stars

This indicator builds a smart-money context frame in a separate pane by calling a private context engine. It exposes hidden numeric plots for schema version, readiness, bias, quality, market structure including break of structure and change of character, imbal

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of SMC Context Bus

SR+Trend v10

by MuhammadMuhamid
1 stars

A long-only crypto spot strategy that finds support and resistance from pivots on four timeframes (5 minutes to 4 hours) and enters on a retest of support within a set number of bars. It blocks entries where price pierced support and reclaimed it, can treat br

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of SR+Trend v10

Calculates retracement grid levels on the price chart using confirmed swing pivot highs and lows based on a user-defined pivot lookback. It allows traders to compare traditional Fibonacci levels against alternative ratio sets, such as thirds or an arbitrary 0.

Indicator v6 Support & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Swing Ratio Grid

CROSV

by kasutu
1 stars

A multi-layer chart overlay built around three EMAs of 20, 50 and 200 bars, with line colours that change by their relative order and a wide coloured zone around the 50 EMA. It adds automatic trend lines drawn from pivot points, with adjustable pivot period an

Indicator v5 Moving averagesTrend
Updated 2 weeks ago · None stated GitHub repository of CROSV
1 stars

An overlay indicator that tracks unswept pivot highs and lows as liquidity levels and detects sweeps, where a wick pierces a level and the bar closes back inside. Each sweep gets a 0 to 100 score from wick size, relative volume, close position and proximity to

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of LHS v2 Liquidity Sweep Score
1 stars

Detects volume order blocks, zones formed when a fast and slow exponential average cross and volume builds around the extreme price, and draws them on the price chart as support or resistance lines. Six sensitivity tiers each give Tier 3 buy and sell markers w

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym T3 x6 MutEx Lines v9.1

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