Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 28)

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

Intraday Gap Detector

by might-tree
4 stars

This indicator calculates the percentage price gap between the current bar open and the previous bar close on the price chart. When the absolute gap exceeds a hardcoded threshold of 0.2 percent within the past 30 days, it draws an extended horizontal line at t

Indicator v5 Support & resistanceBreakout
Updated 3 years ago · None stated GitHub repository of Intraday Gap Detector
3 stars

This indicator demonstrates debugging visualization patterns for Pine Script. It plots value tracking with mean, min, and max reference lines, condition markers using shapes and arrows, historical comparisons with standard deviation bands, multi-series overlay

Indicator v5 Moving averagesVolatility & bands
Updated 7 months ago · None stated GitHub repository of Debugging Visualization Patterns

2:1 Strategy with Signals

by IAMATOMIC001
3 stars

This indicator identifies key market structure and pivot points directly on the price chart. It calculates Higher Highs, Lower Highs, Higher Lows, and Lower Lows using configurable left and right pivot evaluation lengths. Users can toggle pivot labels, customi

Indicator v5 Support & resistanceSessions & time Repaints
Updated 12 months ago · None stated GitHub repository of 2:1 Strategy with Signals
2 stars

The Liquidity Sweep Hunter indicator identifies liquidity sweeps on swing highs and lows. It detects wick breaks or retests that sweep through swing levels using ATR-based wick filtering. Bullish and bearish sweeps are labeled and colored on the chart. Active

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Liquidity Hunter | AlphaScript
2 stars

IPO Day Anchored VWAP calculates a Volume Weighted Average Price anchored to the first available bar on a chart, representing an asset's initial public offering or historical debut. It plots the anchored VWAP line on the main price chart alongside an anchor la

Indicator v6 Moving averagesSupport & resistance
Updated 3 months ago · Apache-2.0 GitHub repository of IPO Day Anchored VWAP

Lakshmi Strategy v2

by voletiramu
2 stars

The Lakshmi Strategy v2 automatically computes daily price zones from previous candle bodies using body width and wick factors then overlays them on the chart. It generates long signals when VPA close positions confirm at zone levels with fallback stop losses

Strategy v6 TrendSupport & resistance
Updated 6 months ago · None stated GitHub repository of Lakshmi Strategy v2

This indicator calculates Murrey Math lines to establish upper and lower boundary levels for grid trading setups. Rendered in a separate chart pane along with custom candle displays, it generates range boundaries tailored for automated grid strategies. Traders

Indicator v6 Support & resistance Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Murrey Lines Grid Range Plugin

Market Width

by iceberg211
2 stars

This indicator plots the percentage of stocks in a selected index trading above their 20, 50, 100, 200, and selected other day moving averages. It automatically detects the main chart symbol and switches to the corresponding index ticker such as S&P or NDX, or

Indicator v4 Moving averagesSupport & resistance
Updated 1 year ago · None stated GitHub repository of Market Width

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator draws higher-timeframe candles on the price chart and overlays pivot levels. Users choose the timeframe, candle thickness, wick display, fill for negative candles, and whether history is shifted forward. Labels can show the timeframe, an average

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

Zigzag Lines

by WISEPLAT
2 stars

This indicator plots ZigZag lines over the price chart to help identify swing highs and lows based on localized extreme points. Users can select between bar closing prices or high/low extremes as the calculation source and adjust the detection period. Settings

Indicator v5 Support & resistance Repaints
Updated 3 years ago · None stated GitHub repository of Zigzag Lines

Custom Ichimoku Alerts [UT]

by theupslidedown
2 stars

This custom Ichimoku indicator plots Tenkan-Sen, Kijun-Sen, Chikou-Span, Senkou-Span A, Senkou-Span B and the cloud fill on the price chart. It generates bullish signals when Tenkan crosses Kijun upward, Chikou is positive, price is above the cloud, and option

Indicator v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of Custom Ichimoku Alerts [UT]

Order strgy SA SOT

by DaniilOkrug
2 stars

This strategy identifies SA signals for long entries and SOT signals for short entries. It places pending orders with stop loss and take profit. The take profit distance equals tp_count multiplied by the distance from entry to stop loss. The difference input s

Strategy v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 years ago · MIT GitHub repository of Order strgy SA SOT
1 stars

This indicator calculates standard pivot points based on selected type such as Traditional or Fibonacci and anchor timeframe. It plots horizontal lines on the price chart for key levels including P, S1, R1, S2, R2 and higher. Main settings allow choosing pivot

Indicator v6 Support & resistance Repaints
Updated 2 days ago · Custom licence GitHub repository of Pivot Points Standard

OI Bot Trades

by rellis3
1 stars

Draws trade zones from a text block pasted into a settings box, one box per zone, to the right of the last bar. Each zone shows an entry line coloured for buy or sell, a stop box, a take-profit box and a dashed second target, and zones can come from an options

Indicator v6 Support & resistance
Updated 2 days ago · None stated GitHub repository of OI Bot Trades

XAUUSD Hour Range Reference

by teshmi9z-beep
1 stars

An intraday indicator designed for gold that takes the high and low of one chosen hourly candle, set by an hour input, and extends them across the rest of the day as reference lines. A background tint and triangle markers show when price closes above the high

Indicator v5 Sessions & timeSupport & resistance
Updated 2 days ago · MIT GitHub repository of XAUUSD Hour Range Reference

TD Pro levels - QCOM

by mphinance
1 stars

A static snapshot overlay for one stock that draws fixed horizontal lines and last-bar labels at price levels typed into the code. The lines include several scored magnet levels, a gamma flip level, an entry zone, a stop level, two target levels and expected m

Indicator v6 Support & resistance
Updated 3 days ago · Custom licence GitHub repository of TD Pro levels - QCOM

Chandelier Exit

by pineforge-4pass
1 stars

This strategy calculates Chandelier Exit trailing bands using average true range (ATR) and highest high / lowest low lookback levels. It maintains a stateful direction variable that flips bullish when the close crosses above the short band level or bearish whe

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of Chandelier Exit
1 stars

A long-only crypto spot strategy that builds support and resistance zones from pivots on 5-minute, 15-minute, 1-hour and 4-hour charts and enters after price retests a support zone, within a set number of bars. Touch zones are sized by ATR or ticks, and a mini

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of SR Trend Final - Support Retest + MA R:R

Calculates support and resistance zones from confirmed swing pivot highs and lows, drawing them directly on the price chart. It counts how often price revisits these zones after confirmation and compares the touch frequency against evenly spaced round-number l

Indicator v6 Support & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Support & Resistance Touch Count
1 stars

Bmoon System Pivot Finder is an indicator that calculates mirrored pivot levels using P1 and P2 mirror levels with configurable multipliers and reference times. It plots lines on the price chart representing mirrored highs and lows based on open, high, low, an

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Pivot Finder

Volume & Key Levels

by MoDarK-MK
1 stars

This overlay indicator template plots previous-day and previous-week highs and lows and marks liquidity sweeps when price pierces a level on elevated volume and closes back inside. It builds a rolling volume profile with point of control and value area, plus a

Indicator v6 VolumeSupport & resistance
Updated 8 weeks ago · MPL-2.0 GitHub repository of Volume & Key Levels
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

TP 8 Lines

by XingHan98
1 stars

This TradingView indicator draws daily support and resistance lines for gold (XAU/USD) at 08:00 Singapore time on weekdays, based on the price action of the 5-minute candle closing at 08:00. It also plots three ATR-based take-profit levels per side, computed a

Indicator v5 Support & resistanceVolatility & bands
Updated 2 months ago · None stated GitHub repository of TP 8 Lines

An institutional decision engine based on Smart Money Concepts (SMC) that plots structure and zone reactions on the price chart. It automatically detects instrument profiles for Gold, FX, Indices, and Crypto to analyze order blocks, liquidity pools, sweeps, an

Indicator v6 SMC / ICT / price actionSupport & resistance

The Fractal Cone

by tthanhvu002sgu
1 stars

Projects an adaptive probability cone ahead of price on the chart. It measures kurtosis of price changes over a slow lookback to label the instrument growth-like or value-like, then chooses between fast and slow settings in parallel. A Hurst estimate from frac

Indicator v5 Volatility & bandsSupport & resistance
Updated 3 months ago · None stated GitHub repository of The Fractal Cone

Fractal Sweep v2

by abhinaynatraj
1 stars

A second version of the Fractal Sweep CISD indicator with more trade management options. Besides detecting a sweep, return and CISD, it lets the user pick the entry point (market or limit at cascade retracement levels), the target reference, and a take profit

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Fractal Sweep v2
1 stars

This price-chart strategy builds a prior-day floor pivot from yesterday’s high, low, and close, plus the related resistance and support levels. It looks for a break above that pivot when the prior close was within a set percentage below it, and can require pri

Strategy v6 Support & resistanceBreakout
Updated 4 months ago · None stated GitHub repository of Pivot Breakout (NON-REPAINT)
1 stars

This indicator maps Smart Money Concepts (SMC) elements directly onto the price chart. It identifies swing highs and swing lows to track market structure (HH, HL, LH, LL), Break of Structure (BoS), and Change of Character (CHoCH) using either pivot or session

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

This indicator assists intraday breakout execution on KLSE stocks. It plots VWAP, EMA 9, EMA 21 on the price chart along with an opening range from the first 30 minutes of the session and a buy zone band above the daily pivot price. Settings control the pivot

Indicator v5 Moving averagesSupport & resistance
Updated 4 months ago · None stated GitHub repository of KLSE Intraday Execution Helper

Deep Trades Whales v4

by shubhamtaywade82
1 stars

Deep Trades Whales v4 is an indicator that detects large institutional trades by analyzing volume spikes against historical percentiles and Z-scores. It identifies whale activity through iceberg absorption patterns that require proximity to prior swing highs o

Indicator v6 VolumeVolatility & bands Archived
Updated 5 months ago · None stated GitHub repository of Deep Trades Whales v4

Talons Liquidity Grab + BOS

by muammeryldrm42
1 stars

A strategy that combines a liquidity grab with a break of structure. It tracks the latest pivot high and low, then enters long when the previous bar swept below the swing low and closed back above it and the current close breaks the swing high. Shorts mirror t

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Talons Liquidity Grab + BOS
1 stars

This price-chart indicator builds a right-side volume profile and an anchored VWAP for crypto analysis. Lookback, row count, value-area percent, and acceptance bars shape the profile, while daily, weekly, or monthly anchors and a standard-deviation multiplier

Indicator v6 VolumeVolatility & bands
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v6 Stable Alert

PPP Levels

by onlyspx
1 stars

This indicator draws horizontal price levels from data the user pastes into two text boxes. The first takes a price and a description for key levels, with points of control shown in a different colour. The second takes a description with an ES level and an NQ

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of PPP Levels
1 stars

This Bitcoin trading strategy analyzes golden cycle phases using halving dates and custom lengths for pre- and post-halving rises and drops. It plots a rainbow ribbon, supply and demand zones, Ichimoku cloud, geometric mean indicator, and ZigZag lines on the p

Strategy v6 TrendSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle v5

MNQ Gamma (7DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for MNQ (Micro Nasdaq-100 futures, scaled from QQQ options) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2

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

An overlay indicator that projects standard deviation levels from interbank price delivery lookback ranges. Monthly, weekly, daily and intraday lookbacks can each be switched on and are applied according to the chart timeframe range set for them. The deviation

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of IPDA Standard Deviations
1 stars

Volume Profile Advanced calculates session-based volume distribution across customizable lookback periods on the main price chart. It determines key market profile metrics, including the Point of Control (POC), Value Area High (VAH), Value Area Low (VAL), and

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · MIT GitHub repository of Volume Profile Advanced

SFA_MSB_v1

by genesisgrubio39
1 stars

SFA_MSB_v1 is a logic-only Pine Script library providing structural flow analytics outputs. It calculates bullBreak and bearBreak booleans when swing highs or lows are crossed using specified break triggers, with optional ATR confirmation and regime detection.

Library v6 TrendSupport & resistance
Updated 10 months ago · None stated GitHub repository of SFA_MSB_v1
1 stars

This strategy records the high and low during a configurable opening session, defaulting to 09:30–10:00 exchange time, then locks the range when the session ends. It enters long when price closes above the range high and short when price closes below the range

Strategy v5 BreakoutSessions & time
Updated 11 months ago · None stated GitHub repository of Open Range Breakout Strategy
1 stars

A strategy file on the price chart that detects pivot highs and pivot lows over a settable fractal length, marks them with triangles and debug labels, and plots the highest and lowest prices over the same length as step lines. It also rounds highs and lows to

Strategy v6 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of PriceStep Pivot Strategy
1 stars

This indicator identifies support and resistance turning points on the price chart using higher-order momentum analysis. It calculates a double-smoothed exponential moving average, derives its first momentum, and detects zero-crossings of its second momentum t

Indicator v4 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance Levels v3

Hello World

by fiji-solutions
1 stars

This educational script calculates and plots 50-bar highest high and lowest low levels directly on the price chart. It highlights breakout conditions by coloring the chart background green when the closing price exceeds the previous 50-bar high, and red when t

Indicator v5 Support & resistanceBreakout
Updated 2 years ago · None stated GitHub repository of Hello World

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