Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 12)

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

Drawing Scaffold

by jpantsjoha
3 stars

Drawing Scaffold calculates the highest high and lowest low over a customizable lookback period. It plots these boundaries on the main price chart and dynamically renders extended support and resistance lines, a price label, and an optional visual range box on

Indicator v6 Support & resistanceScreeners & dashboards
Updated 4 weeks ago · Custom licence GitHub repository of Drawing Scaffold

AI Bot - SMC Advanced

by thanhcong1211
3 stars

This overlay indicator marks smart-money structure on the price chart. It stores recent confirmed swing highs and lows and labels the structure bullish, bearish, or ranging from higher highs and lows or lower highs and lows. It marks a bullish or bearish order

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of AI Bot - SMC Advanced
3 stars

Donchian Channel Breakout is a Pine Script v5 strategy drawn on the price chart. It enters long when close crosses above the previous upper Donchian band and short when close crosses below the previous lower band, reversing with the opposite signal. An ATR tra

Strategy v5 BreakoutVolatility & bands
Updated 7 months ago · MIT GitHub repository of Donchian Channel Breakout

The Judas Indicator

by regardhodler
3 stars

The Judas Indicator strategy calculates a multi-factor composite score combining Volume Profile High Volume Nodes, Cumulative Volume Delta (CVD), pivot proximity, volume absorption, order imbalance, and higher-timeframe trend EMAs. It triggers trade entries wh

Strategy v5 TrendVolume
Updated 8 months ago · None stated GitHub repository of The Judas Indicator

JINADA Up

by cathxrsys
3 stars

JINADA Up is an all-in-one chart overlay indicator that combines support and resistance zones, multiple moving averages, candlestick body and wick ratio analysis, and dynamic stop levels. It identifies support and resistance levels across user-defined lookback

Indicator v6 TrendMoving averages
Updated 9 months ago · GPL-3.0 GitHub repository of JINADA Up

Elliott Wave Crypto Analysis

by EngineeredSuccess
3 stars

The indicator draws Elliott Wave analysis on the price chart for cryptocurrency. It locates pivot highs and lows using a user-set length, counts waves one through five automatically, and allows a manual wave override. Optional Fibonacci retracement and extensi

Indicator v6 Support & resistanceTrend
Updated 1 year ago · Custom licence GitHub repository of Elliott Wave Crypto Analysis

BTMM Asian Range

by jcortes254
3 stars

This indicator tracks and visualizes session ranges based on the Beat The Market Maker (BTMM) trading methodology directly on the price chart. It defines and draws session boxes for Asian accumulation, London manipulation, and New York distribution phases. It

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Asian Range

FVG and MSB

by HelloMoto069
3 stars

This indicator identifies and plots Fair Value Gaps (FVG) and Market Structure Breaks (MSB) directly on the price chart. Fair Value Gaps are drawn using colored boxes that can be extended across bars and filtered with an automatic volatility threshold or set t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FVG and MSB

Cipher B

by diehardyearone
3 stars

Cipher B is a multi-indicator plotting WaveTrend oscillator lines and signals alongside Stochastic RSI, MFI area with color bars, and buy sell marks. It draws all elements in a separate pane. WaveTrend calculates using SMMA and EMA on source like ohlc4 with ad

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Cipher B

This strategy plots Fibonacci retracement levels from a rolling high-low range and trades long only on the price chart. It enters when price is above the first Fibonacci level, volume exceeds its moving average, and price is above a simple moving average. It c

Strategy v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Volume + Fibonacci + Trend + ATR Strategy with 1% TP

Unicorn Strategy

by oscar811
3 stars

This overlay strategy marks market-structure swings and breaker blocks on the price chart. It can limit a breaker to the candle body, use one or two candles in the same direction, and stop the block at the first break of its center line. Entries can be restric

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Unicorn Strategy

Bitcoin Difficulty (QUANDL:BCHAIN/DIFF)

by datacrypto-analytics
3 stars

This indicator plots Bitcoin mining difficulty from the Quandl BCHAIN/DIFF dataset. The script calculates the difficulty metric using the quandl function and displays it as a line plot in a separate pane. It provides historical data on mining difficulty levels

Indicator v4 Volatility & bandsSupport & resistance
Updated 3 years ago · Apache-2.0 GitHub repository of Bitcoin Difficulty (QUANDL:BCHAIN/DIFF)
3 stars

This indicator plots horizontal liquidity lines on the price chart at swing pivot highs and lows. It detects pivots by checking local maxima and minima in the high and low arrays. Lines are drawn at the pivot levels with customizable colors, styles, and a maxi

Indicator v5 Support & resistance
Updated 4 years ago · None stated GitHub repository of Liquidity by makuchaku & eFe
3 stars

This strategy detects pivot highs and pivot lows with a left-bar and right-bar window, then filters those swings into higher highs and lower lows. It also derives support and resistance from higher-high, higher-low, lower-low and lower-high points and draws on

Strategy v4 Support & resistanceTrend
Updated 5 years ago · None stated GitHub repository of Higher High Lower Low Strategy Bot

Trade History Labels

by kaiku0125
2 stars

Plots historical trade records as visual buy and sell labels directly on the price chart. It matches recorded trade dates and symbols against the active instrument, calculating cumulative volume-weighted average buy and sell prices with horizontal reference li

Indicator v6 Support & resistance
Updated 4 days ago · None stated GitHub repository of Trade History Labels

52-Week High

by vtnhqw
2 stars

The 52-Week High indicator plots the highest price over an adaptive lookback period of up to 252 trading bars on the price chart. It calculates the 52-week high using the highest high value and displays it as a line with optional label showing distance from th

Indicator v6 Support & resistanceTrend Repaints
Updated 12 days ago · None stated GitHub repository of 52-Week High

Equity Trading Strategy

by AmjadSaidam
2 stars

This indicator draws a daily-anchored volume-weighted average price on the price chart and marks the first long or short reclaim of that level. A long needs a bar below the average whose high reaches it, a later close above it, and confirmation after at least

Indicator v6 VolumeSupport & resistance Repaints
Updated 5 weeks ago · MIT GitHub repository of Equity Trading Strategy
2 stars

Swing Trade Analyzer - S&R Levels identifies key support and resistance levels directly on the price chart using pivot high and low points. It filters duplicate price levels and offers optional multi-timeframe confluence analysis against higher timeframes like

Indicator v6 Support & resistanceTrend
Updated 5 weeks ago · None stated GitHub repository of Swing Trade Analyzer - S&R Levels

Algo

by TamTH-Dev
2 stars

Algo is an indicator that identifies and plots dynamic support and resistance zones directly on the price chart using pivot highs and lows. It calculates zone thickness using an Average True Range (ATR) multiplier and supports pivot detection from standard pri

Indicator v6 Support & resistanceVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of Algo

This indicator plots gamma exposure levels, multi-timeframe breakout structure, and trading session ranges directly on the price chart. It parses input strings containing option metrics to display key levels such as Zero Gamma, Max Pain, Expected Move boundari

Indicator v6 Support & resistanceBreakout
Updated 6 weeks ago · MIT GitHub repository of GEX Levels + Breakout Structure + Session AVWAP — NQ/NDX/QQQ
2 stars

Anchored Volume Profile indicator builds a volume-by-price histogram over a lookback window by proportionally distributing each bar's volume across its high-low range. It plots horizontal boxes for volume, highlights the POC, and draws Value Area (VAH/VAL) rai

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Anchored Volume Profile [Vantrade]

Qtus SMC-Sniper AutoTrader v2 is an automated trading strategy plotted on the price chart that combines Smart Money Concepts (SMC), ICT frameworks, price action patterns, and technical indicators into a multi-factor scoring engine. It enters long or short posi

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper AutoTrader v2

API Integration Examples

by danielbodnar
2 stars

This indicator demonstrates Pine Script data requests and draws them on the price chart. It plots a four-hour simple moving average plus the daily high and low as step lines, and it plots twenty-bar relative performance versus SPY. It also requests QQQ, VIX, v

Indicator v6 Moving averagesSupport & resistance Repaints
Updated 2 months ago · MIT GitHub repository of API Integration Examples
2 stars

This indicator draws higher time frame sweeps on the price chart. It displays sweeps from multiple timeframes such as 15, 60, 240 minutes, 1 day, 1 week and 1 month. Users can enable or disable each timeframe, specify the number of sweeps to show, and map them

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of CandelaCharts - HTF Sweeps
2 stars

This indicator detects market structure points, Break of Structure (BOS), and Change of Character (CHOCH) for Smart Money Concepts (SMC) analysis. It calculates swing highs and lows based on a user-defined swing length, classifying them as higher highs, higher

Indicator v6 SMC / ICT / price actionSupport & resistance

Visualizes Wyckoff accumulation and distribution phases directly on the price chart. It uses an RSI-based sensitivity threshold to determine trend conditions and horizontal ranges, framing consolidation zones with colored boxes. The script also identifies stru

Indicator v5 SMC / ICT / price actionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Wyckoff Accumulation Distribution

StdDev Anchor AI

by teaceo-debug
2 stars

The StdDev Anchor AI indicator plots swing high and low points on the price chart using pivot functions. It detects displacement legs based on minimum range and confirmation ratio settings, then applies standard deviation logic to identify anchor levels. MTF c

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 4 months ago · None stated GitHub repository of StdDev Anchor AI

ORB Breakout Alert

by az9713
2 stars

The indicator identifies upside breakouts from the 30-minute US market opening range between 09:30 and 10:00 AM ET. It triggers a signal when price closes above the opening range high before 11:30 AM ET, provided bar volume exceeds a multiplier of the opening

Indicator v5 BreakoutSessions & time
Updated 5 months ago · None stated GitHub repository of ORB Breakout Alert
2 stars

Session Extreme Revisit identifies the highest supply candle and lowest demand candle formed during London and New York sessions and draws extended reaction zones on the price chart. It evaluates candidate candles using size, wick ratio, and displacement filte

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit — Pro
2 stars

This overlay indicator maps a US equity day-trading framework of levels, trend, and patience candles onto the price chart. It plots 8 and 21 SMAs, higher-timeframe 200 SMAs, VWAP, the last five days of premarket highs and lows, and the 9:30–9:45 opening range.

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · None stated GitHub repository of Day Trading Strategy v2
2 stars

Ghost Zone v9 plots chart overlay signals and key structural levels derived from reverse-engineered price action, volume spread analysis, and momentum filters. It identifies specific trading patterns including Low Volume Test (LVT), Signal Test (ST), Bull Trap

Indicator v6 VolumeCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 - GTI Signals v18a

ALGOX

by thino-dev
2 stars

ALGOX is a Pine Script v5 strategy that overlays SuperTrend, ATR bands, Heikin Ashi candles, EMA ribbons and an RSI table on the price chart. It generates long and short entries based on signal sensitivity settings with optional lower-timeframe or higher-timef

Strategy v5 TrendVolatility & bands Repaints
Updated 7 months ago · None stated GitHub repository of ALGOX

Liquidity Sweep Scalper v2

by godlesscherry
2 stars

Liquidity Sweep Scalper v2 is a scalping strategy that detects liquidity sweeps using Supertrend trend filters, Bollinger Bands for volatility, Williams Fractals for pivots, and MACD momentum. It enters on rejection candle breaks after sweeps and exits via sto

Strategy v6 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of Liquidity Sweep Scalper v2

DR/IDR

by avatar-lavventura
2 stars

This indicator plots Defining Range (DR) and Implied Defining Range (IDR) levels across Regular, After, and Overnight market sessions directly on the price chart. It visualizes high and low range boundaries, midline levels, opening lines, background boxes, and

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of DR/IDR

This indicator plugin for grid trading systems calculates dynamic upper, middle, and lower channel boundaries based on historical highest highs and lowest lows. Users can adjust the lookback period, toggle candle wicks, apply moving average smoothing, add pric

Indicator v6 Support & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot [Grid range plugin] HighLow [psyll]

Market Structure - Clean & Objective

by ifreddyman2014-tech
2 stars

The script identifies and plots market structure components directly on the price chart using confirmed pivot highs and lows. It classifies swing points into Higher Highs, Higher Lows, Lower Highs, and Lower Lows while detecting Break of Structure (BOS) and Ch

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Market Structure - Clean & Objective

The AI SuperTrend x Pivot Percentile strategy combines SuperTrend trend following with KNN-based AI predictions, Pivot Percentile levels, and ADX/DMI filtering. SuperTrend indicators run on multiple higher timeframes with configurable lengths and factors, whil

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of AI SuperTrend x Pivot Percentile - Strategy
2 stars

This indicator identifies and plots dynamic support and resistance levels on the price chart using pivot highs and pivot lows. It evaluates historical pivot clusters over a multi-bar lookback window to construct key horizontal levels, with options to render bu

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Support/Resistance Levels
2 stars

Multi-Indicator Trading System is a price chart overlay indicator that combines exponential moving averages, MACD, RSI, and multi-timeframe Ichimoku cloud analysis. It evaluates local timeframe indicators alongside higher timeframe trend filters to generate bu

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of Multi-Indicator Trading System

DrawLevels

by ashwagamma
2 stars

This indicator draws predefined support and resistance levels, price range boxes, and key value area markers directly on the price chart. It visualizes hardcoded horizontal price levels, support and resistance zones, and value area references such as prior day

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of DrawLevels

This indicator visualizes volume delta, total volume, or open interest delta directly on the price chart. By fetching one-minute intrabar data, it distributes buying and selling activity into price levels defined by percentages or tick sizes. It calculates del

Indicator v5 VolumeSupport & resistance
Updated 1 year ago · None stated GitHub repository of Volume Delta | OI Delta [Kioseff Trading]

This overlay indicator marks swing highs and lows, then draws supply and demand boxes around points of interest. It labels higher highs, lower highs, higher lows, and lower lows, and can show break-of-structure and point-of-interest labels plus an optional zig

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FluidTrades - SMC Lite + Moving Average Ribbon

Tik 2 JPY

by keiru517
2 stars

This indicator plots horizontal lines on the price chart at ratios ranging from 120 to 170 in steps of 10. It draws main red lines at each ratio and aqua and yellow subdivisions at quarter and half points. The lines extend rightward from past bar index minus 1

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Tik 2 JPY
2 stars

PriceCatch Intraday Range plots key daily price levels and projections on intraday price charts. It calculates daily open, high, low, and close values using higher-timeframe data requests, drawing reference lines for custom percentage change thresholds and dai

Indicator v6 Support & resistanceSessions & time
Updated 1 year ago · MPL-2.0 GitHub repository of PriceCatch Intraday Range

Custom Session VWAP

by ryangaraygay
2 stars

This indicator calculates and plots a Volume Weighted Average Price (VWAP) restricted to a user-defined trading session on the price chart. It uses the specified source (default hlc3) to compute the VWAP only while the market is in the custom session (default

Indicator v6 VolumeSupport & resistance
Updated 1 year ago · MIT GitHub repository of Custom Session VWAP

Whale Detection with VWAP

by scallywag41
2 stars

This indicator identifies large volume trades occurring near the Volume Weighted Average Price (VWAP). It calculates a cumulative VWAP and checks whether the bar's volume meets or exceeds a specified minimum block trade volume. Additionally, it verifies if the

Indicator v5 VolumeMoving averages
Updated 2 years ago · None stated GitHub repository of Whale Detection with VWAP

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