Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 47)

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

Williams Fractals

by morindok
1 stars

Williams Fractals identifies multi-bar pivot highs and pivot lows based on Bill Williams' classic fractal logic. It evaluates price action across a user-defined period to detect local high and low turning points, plotting visual markers directly above or below

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Williams Fractals

Lemon Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator that looks for W and M reversal shapes in price, OBV and Williams %R by default, with optional MFI, RSI and directional movement, all sharing one maximum width and offset setting. A Fibonacci retracement zone over a 200-bar lookback can be require

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Lemon Strategy Indicator
257 stars

This indicator analyzes short-term price action on index futures and options charts by applying Rational Quadratic kernel smoothing to detect sideways consolidation ranges and potential breakouts. It processes pivot highs and lows over customizable loopback pe

Indicator v5 Support & resistanceTrend Repaints
Updated 7 weeks ago · None stated GitHub repository of SPX 30M - Trading Chart

Market State Engine classifies the current market into nine states including balance, compression, bull and bear expansion, pullback, exhaustion, and transition. It computes orthogonal axes for structural regime, energy phase, value location relative to adapti

Indicator v6 TrendSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Market State Engine [WavesUnchained]

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts overlay indicator designed for session-based market structure analysis. It highlights the Asian range, London and New York killzones, and key daily and weekly price levels. The indicator evaluates higher timefr

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

SAIYAN OCC Strategy R5.41

by IAMATOMIC001
3 stars

SAIYAN OCC Strategy is a price-chart strategy that builds a short moving average of open and close prices using TEMA, Hull, or ALMA and colours bars by trend. It can take long, short, or both directions, optionally from Heikin Ashi closes or a multiplied alter

Strategy v5 TrendMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of SAIYAN OCC Strategy R5.41
2 stars

This overlay indicator marks ICT-style Unicorn setups on the price chart using fair value gaps and breaker blocks. Swing length and FVG sensitivity control how those zones are found, and an optional retracement can be required before a setup is confirmed. It c

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT Unicorn | Flux Charts

Poi-Scalp v2

by majixai
1 stars

A strategy that scores market conditions with many weighted components: head and shoulders and double top or bottom pivots, a regression channel with an R-squared filter, polynomial slope, a cosh-based term, skew, divergence, volume flow, VWAP and an ADX plus

Strategy v5 ScalpingSupport & resistance
Updated 2 days ago · None stated GitHub repository of Poi-Scalp v2

CHOCH + BOS

by skipp-dev
1 stars

Calculates market structure breaks by identifying Change-of-Character (ChoCH) and Break-of-Structure (BOS) levels on the price chart using swing high and swing low pivots. It features an integrated volume filter requiring breakout volume to exceed an SMA multi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of CHOCH + BOS

Opening High Low

by ivansoft
1 stars

Records the high and low of the candle that begins a chosen session window and plots them as circles on the price chart, holding them until the next session start. The session is an input, defaulting to a five-minute window starting at 10:30. It works on intra

Indicator v6 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Opening High Low

Archens Shares

by hasnocool
106 stars

Archens Shares is an intraday breakout strategy designed for session-based trading. It tracks the highest high and lowest low from a 30-minute timeframe during a specified session window, defaulting to 09:45 to 10:15. A long position is entered when the closin

Strategy v5 BreakoutSessions & time
Updated 2 years ago · GPL-3.0 GitHub repository of Archens Shares

MTF OHLC stats

by TamaraKGreen
46 stars

This indicator plots previous open, high, low and close levels from a selected timeframe on the price chart. It requests those values with a configurable bar offset and marks a new higher-timeframe session. Users can show only the latest levels, extend the lin

Indicator v5 Support & resistanceScreeners & dashboards Repaints
Updated 8 weeks ago · None stated GitHub repository of MTF OHLC stats

Calculates continuous structural market bias by detecting swing high and low pivots (higher highs, higher lows, lower highs, and lower lows) using configurable left and right bar lookbacks. It assigns weighted values to classified pivots within a rolling windo

Indicator v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Market Structure Advanced [WavesUnchained]

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts charting tool designed to identify session-based setups and market structure shifts. It determines directional bias using a higher-timeframe exponential moving average and highlights key trading windows includi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

Daily Levels

by g-moe
3 stars

Daily Levels plots horizontal price offset lines based on the current day's open and previous day's close. Users can define two custom price offsets to project key reference levels above opening and closing values. The indicator renders directly on the price c

Indicator v5 Support & resistanceSessions & time Repaints
Updated 5 months ago · None stated GitHub repository of Daily Levels

Setup-1

by IAMATOMIC001
3 stars

This indicator plots multiple technical analysis components directly on the price chart, including a Nadaraya-Watson envelope, pivot-based trendlines, and a kernel regression oscillator. It also renders visual overlay panels for the Relative Strength Index and

Indicator v5 TrendOscillators & momentum Repaints
Updated 12 months ago · None stated GitHub repository of Setup-1

CHOCH + BOS Strategy

by skipp-dev
1 stars

This strategy identifies market structure shifts, specifically Change of Character (ChoCH) and Break of Structure (BOS), on the main price chart. It triggers entries based on swing pivot breakouts with an optional volume filter and moving average confirmation.

Strategy v6 SMC / ICT / price actionTrend
Updated 4 days ago · None stated GitHub repository of CHOCH + BOS Strategy

combination by yzz

by webcrack4
1 stars

This overlay indicator combines a volume profile with multi-oscillator divergence detection on the price chart. It builds a histogram of recent volume across price rows, marks the point of control, and can show a rolling point of control. It also scans pivots

Indicator v4 VolumeDivergence Repaints
Updated 9 months ago · None stated GitHub repository of combination by yzz
46 stars

This overlay indicator marks swing highs and lows with Bill Williams fractals and draws them as offset labels and extended lines on the price chart. Fractal length can be 3, 5, 7, or 9 bars, and an optional filter reduces weaker fractal points. It also plots c

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of MTF Swing Highs and Lows with Key Levels

This indicator maps price location on the chart rather than generating trade signals. It plots Classic or Fibonacci pivot support and resistance, the central pivot range with a narrow, normal, or wide width regime versus ATR, previous high and low, and the cur

Indicator v6 Support & resistance
Updated 3 days ago · MIT GitHub repository of Market Structure Pivot Map [WavesUnchained]
6 stars

Apex Protocol Assistant is an intraday technical indicator that overlays smart money concepts and trading session levels directly on the price chart. It evaluates higher timeframe EMA trends, change of character shifts, and fair value gaps. The tool highlights

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant (Optimized)
4 stars

Visualizes custom trading sessions directly on the main price chart. Highlights active session bars with a light background color, plots intra-session high and low levels, and optionally places labels at session opening and closing bars. Built default for VİOP

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · MIT GitHub repository of Session Highlight [trugurpala]

Datsana V.1

by g-moe
3 stars

This indicator plots RSI divergence lines at resistance and support levels based on 14-period RSI crossing above 70 or below 30 within a search window of 141 bars. It displays dual EMA trend fill between periods 199 and 299, VWAP filter, TKPS tick pattern diam

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Datsana V.1
3 stars

This indicator overlays Smart Money Concepts (SMC) analysis directly onto the price chart. It detects and plots internal and swing market structures including Break of Structure (BOS) and Change of Character (CHoCH), highlights swing points and strong or weak

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of Smart Money Concepts [BY-AQEEL]

Liquidity Sweeps [UAlgo]

by alvinng214
2 stars

Calculates pivot highs and pivot lows over a customizable length to draw horizontal support and resistance lines on the price chart. When price spikes past a pivot level but closes back within the range, the indicator identifies a buy or sell liquidity sweep,

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Liquidity Sweeps [UAlgo]

VWMA 1hr

by avatar-lavventura
2 stars

This strategy overlays a 1-hour 24-period volume-weighted moving average (VWMA) and calculates multi-bar Williams Fractals on the price chart. It is restricted to a customizable backtest date window. The strategy calculates on every tick and allows extensive p

Strategy v4 Moving averagesSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of VWMA 1hr

Engulfing Candle Micro-Gaps

by Web3Degenerate
2 stars

The Engulfing Candle Micro-Gaps indicator identifies bullish and bearish engulfing candlestick patterns filtered by recent swing highs and swing lows. It introduces a configurable point allowance setting that accommodates minor price gaps between adjacent bars

Indicator v5 Candlestick patternsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Engulfing Candle Micro-Gaps
1 stars

Advanced Time Analyzer calculates time cycles based on a user-defined start and end timestamp. After measuring the bar count of the initial time window, the indicator projects future vertical time lines across the price chart using configurable Fibonacci ratio

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Advanced Time Analyzer

Risk Manager Template

by TradersPost
228 stars

This overlay indicator estimates position size from account equity, a per-trade risk percentage, and a chosen stop distance. Stops can use ATR, a percent of price, fixed points, or a swing high or low. It derives stop and optional take-profit prices from a ris

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 months ago · None stated GitHub repository of Risk Manager Template
46 stars

NQ Hourly Retracement Levels highlights NY, London, and Asia trading sessions directly on the price chart. It plots hourly open prices and midpoint retracement levels at the New York session open, filtering levels based on a configurable minimum hit rate thres

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of NQ Hourly Retracement Levels

The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Market Tradability Engine [WavesUnchained]
6 stars

This Pine Script v5 indicator is an SMC trading engine that plots order blocks, fair value gaps, break of structure markers, market structure shifts, and Fibonacci retracements on the price chart. It supports customizable higher and lower timeframes along with

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol The SMC Engine
3 stars

This indicator tracks the low of day and high of day during the specified RTH session hours in the New York timezone. It calculates the high at the current low of day (lod_h) and the low at the current high of day (hod_l). Horizontal lines are drawn at these l

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Day Trading Reversal System
3 stars

This Pine Script indicator plots Smart Money Concepts market structure directly on the price chart. It identifies swing highs and lows, internal market structures, Break of Structure events, Change of Character shifts, and EQH/EQL levels. Breaker blocs are hig

Indicator v5 SMC / ICT / price actionCandlestick patterns Repaints
Updated 12 months ago · None stated GitHub repository of SMC & Breaker Blocs [Krishna]

LiquidityFinderLibrary

by alvinng214
2 stars

This Pine Script library exports a liquidity line detection function designed for Smart Money Concepts analysis. It identifies static and dynamic pivot highs and lows over customizable lookback periods, normalizing price differences between consecutive swing p

Library v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of LiquidityFinderLibrary

VWMA 1hr + WF

by avatar-lavventura
2 stars

This script calculates a 1-hour 24-period Volume Weighted Moving Average (VWMA) and plots it directly on the price chart with customizable upper and lower percentage offset bands. It combines Williams Fractals for local swing highs and lows with a 14-period Re

Indicator v4 Moving averagesOscillators & momentum
Updated 7 months ago · None stated GitHub repository of VWMA 1hr + WF
2 stars

Calculates and projects Bitcoin price trajectory using a power law model displayed as a clock layout in a separate pane. It maps historical price movements, average power law curves, and Bitcoin halving cycles over time. Users can toggle spiral visualization m

Indicator v6 TrendSupport & resistance
Updated 8 months ago · None stated GitHub repository of Bitcoin Power Law Clock [LuxAlgo]

Fractal Engulfing Candles

by Web3Degenerate
2 stars

This indicator identifies bullish and bearish engulfing candlestick patterns filtered by fractal swing points and RSI momentum levels. It detects swing highs and lows over a configurable lookback period, requiring bullish signals to coincide with a swing low a

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Fractal Engulfing Candles
1 stars

A strategy that trades liquidity sweeps confirmed by order flow. It takes the highest high and lowest low of a prior window of 10, 20 or 50 bars, depending on a rigor setting. A bullish sweep is a low below the prior low that closes back above it with positive

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Footprint Liquidity Sweep

NQ Statistical Mapper

by TamaraKGreen
46 stars

NQ Statistical Mapper plots key trading sessions including New York, London, and Asia directly on the price chart. It visualizes session high and low ranges, displays configurable session and intraday levels, and presents session performance metrics in an on-s

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of NQ Statistical Mapper
6 stars

Apex Protocol v3.0 - The SMC Engine is an overlay indicator designed for Smart Money Concepts market structure analysis. It identifies and plots Break of Structure (BOS) and Market Structure Shift (MSS) markers, Fair Value Gaps (FVG), Order Blocks (OB), and se

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Apex Protocol v3.0 - The SMC Engine
2 stars

This indicator detects market structure breaks using a configurable ZigZag length to identify swing highs and lows. It marks bullish and bearish order blocks along with breaker blocks on the price chart. Breakouts are confirmed via a Fibonacci retracement fact

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Market Structure Break & Order Block

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