Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 25)

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

1 stars

Looks for a large, strong-bodied candle, measured against ATR with a body-to-range filter and a largest-in-lookback check, and treats it as an impulse. It then draws a ladder of range-extension levels from that candle's low and range width, with optional price

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of Impulse 4H Range Levels
1 stars

An overlay for the S&P 500 index that measures the opening range over an observation window, classifies the day as volatile or not by comparing that range with the daily ATR, and projects high and low boundaries for the session. Reversal signal triangles appea

Indicator v5 Sessions & timeMean reversion
Updated 2 days ago · None stated GitHub repository of ZeroDTE Range Predictor

SMC Breakout Overlay

by skipp-dev
1 stars

The SMC Breakout Overlay indicator draws breakout and breakdown boxes on the price chart using Smart Money Concepts structure detection. It triggers on BOS and CHoCH signals from a chosen structure source including library, engine BUS, or local pivots, and can

Indicator v6 SMC / ICT / price actionBreakout
Updated 4 days ago · None stated GitHub repository of SMC Breakout Overlay

Range Risk Lines v3

by jometa9
1 stars

A grid overlay that draws horizontal lines above and below the last price at a spacing set in points, with a configurable number of levels per side and an optional middle line. Each line is labelled with the lot size that would lose a chosen risk amount if pri

Indicator v5 Support & resistance
Updated 5 days ago · None stated GitHub repository of Range Risk Lines v3

Week 02

by moonyroy
1 stars

This indicator plots ZigZag lines on the price chart to map swing highs and lows. It detects break_high and break_low events to identify pivot points. The code supports a primary chart timeframe and optional second timeframe ZigZag with selectable modes such a

Indicator v6 TrendSupport & resistance
Updated 6 days ago · None stated GitHub repository of Week 02

I_extremes

by GammaExpansion
1 stars

I_extremes plots a collection of built-in extreme, pivot, ranking and statistical series in a separate pane. It draws 20-bar highest and lowest values, pivot highs and lows, value-when and bars-since results, and flags for close crossing a 20-period simple mov

Indicator v6 Support & resistanceMoving averages
Updated 7 days ago · MIT GitHub repository of I_extremes

MTF Confluence Spot Strategy

by MuhammadMuhamid
1 stars

A long-only spot strategy where each filter has its own timeframe and on/off switch, and a trade needs every enabled filter to pass. Gates include Supertrend, RSI and Volume Flow Indicator, with structure filters such as support zones, supply and demand, liqui

Strategy v6 SMC / ICT / price actionTrend
Updated 13 days ago · None stated GitHub repository of MTF Confluence Spot Strategy

Model X

by Just-beyond-z
1 stars

An overlay that draws 4-hour, 7-hour and daily candles next to the current chart and marks the closes of the second and third candles in a multi-candle framework, with an optional alert on the third. It can show previous day, week and month high and low levels

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Model X

Dhan+Webhook

by 7b809
1 stars

An overlay indicator that combines a Hull-style moving average, selectable as HMA, EHMA or THMA, with pivot-based support and resistance lines and optional labels. It builds alert messages in JSON for a broker webhook, including action, price, quantity, order

Indicator v5 Moving averagesSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Dhan+Webhook

ORB + Targets

by kasutu
1 stars

An opening range breakout indicator that records the high and low of a configurable session window (default 06:00 to 06:20 in a chosen timezone) and draws them on the price chart. After the window closes it marks a close beyond either edge, optionally requirin

Indicator v6 Sessions & timeBreakout
Updated 2 weeks ago · None stated GitHub repository of ORB + Targets

Previous-Day Levels

by JACKZHOU0521
1 stars

Previous-Day Levels plots the prior-day high, prior-day low, and an optional prior-day midpoint directly on the price chart. It evaluates price interactions with these benchmark levels to highlight breakouts and rejections upon bar close. Breakout signals trig

Indicator v6 Support & resistanceBreakout
Updated 5 weeks ago · None stated GitHub repository of Previous-Day Levels
1 stars

The BMoon System Order Block indicator projects price levels and reflection zones on the main chart using user-selected time and price anchor points. It features an optional Auto Fibonacci mode that computes price range boundaries, along with an Adaptive Smart

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of BMoon System Order Block
1 stars

This indicator measures how far the current low sits below the highest high of the last 252 bars, expressed in 50-period ATR units and plotted as a negative value capped at 12. It draws that distance in a separate pane and colors the line green, yellow, or red

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Webby's ATR Off 52-Week High

Predicted Gold Signals

by XingHan98
1 stars

An overlay indicator for a five-minute gold chart that stops with an error on any other timeframe. At 08:00 and 19:00 Singapore time on weekdays it draws a buy and a sell entry line from the prior close with fixed offsets, a fixed dollar stop, and three take p

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · None stated GitHub repository of Predicted Gold Signals
1 stars

This indicator calculates smart money concepts and market microstructure data to filter trades based on premium and discount zones, order blocks, liquidity cascades, and session phases. It draws rejection markers and market structure elements directly on the p

Indicator v6 SMC / ICT / price actionSupport & resistance

Fractal Sweep

by abhinaynatraj
1 stars

An indicator for futures that finds a sweep of a prior higher-timeframe candle's high or low, a return, and a change in state of delivery (CISD) confirmation, then draws the trade setup. It places entry, stop at the sweep extreme or CISD level and an R:R targe

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

MRM Scanner

by majohnst
1 stars

The MRM Scanner is a multi-symbol technical analysis tool that scans a user-defined watchlist of up to 20 stock symbols. It calculates a cloud from 144 and 169 EMAs along with Fibonacci retracement levels based on swing highs and lows over a configurable lookb

Indicator v6 Screeners & dashboardsMoving averages
Updated 4 months ago · None stated GitHub repository of MRM Scanner
1 stars

This indicator performs Smart Money Concepts market structure analysis directly on the main price chart. It detects structural swing points including Higher Highs, Higher Lows, Lower Lows, and Lower Highs, while identifying Break of Structure (BoS) and Change

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

TwoSweepsModel

by riegodavid-git
1 stars

An overlay indicator that looks for swing failure patterns, where price pokes beyond an earlier pivot and closes back, on the 30-minute and 1-hour timeframes, and combines them with fair value gap and inverse gap detection on the chart timeframe, intended for

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of TwoSweepsModel

NQ VIX IB Levels

by qmqvt44stq-del
1 stars

An indicator for the price chart that draws intraday price levels above and below the session by blending an initial balance extension with a volatility-index implied move, then adding a point offset. The volatility index is chosen automatically from the futur

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of NQ VIX IB Levels

MTF RSI Signals

by iyoshikawa
1 stars

This indicator plots multi-timeframe RSI signals on the price chart. It calculates a smoothed RSI using short and long periods with EMA smoothing, then applies a Stoch filter for direction changes. Signals trigger on crossovers and levels, combined with ADX tr

Indicator v5 Oscillators & momentumTrend Repaints
Updated 5 months ago · None stated GitHub repository of MTF RSI Signals

EMA + Trend + Liquidity

by kvmafthab-pixel
1 stars

This overlay plots a four-length exponential moving average ribbon and classifies trend on the price chart. It marks strong bullish when the 21-period average is above the 50 and 200 with a positive short slope, strong bearish when that stack is reversed, and

Indicator v5 TrendMoving averages
Updated 5 months ago · Custom licence GitHub repository of EMA + Trend + Liquidity
1 stars

This indicator provides a comprehensive toolkit for crypto chart analysis. It calculates and plots Volume Profile boxes with value area and acceptance bars, VWAP with standard deviation bands, multiple EMAs for trend filtering including HTF bias, lower timefra

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v4 Safe LTF

Eminiplayer Zones

by onlyspx
1 stars

This indicator turns pasted text lines of low price, high price and a zone label into horizontal zones on the price chart, for S&P 500 futures or index charts. For index symbols it subtracts a configurable futures-to-index spread from the zone prices. It can a

Indicator v5 Support & resistanceSessions & time
Updated 6 months ago · None stated GitHub repository of Eminiplayer Zones

AlgoBot VWAP Pullback Strategy

by ghostnathan30-ops
1 stars

A futures strategy for 15-minute charts that builds a daily-reset VWAP with standard deviation bands. It requires several consecutive bars on one side of VWAP, then a pullback to within a small percentage of it and a bar closing in the trend direction. Entries

Strategy v6 TrendSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot VWAP Pullback Strategy

Order Blocks Only

by cavaldos
1 stars

Draws internal and swing order blocks as shaded boxes on the price chart, a stripped-down version of a smart money concepts tool. Block size is filtered either by ATR or by cumulative mean range, and a block is mitigated when price crosses it by close or by hi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Order Blocks Only

This indicator plots intraday reversal signals and automatic stop loss levels tailored for the 5-minute chart. It identifies three-candle reversal patterns synchronized to 15-minute blocks, triggering buy signals when two consecutive green bars break above the

Indicator v6 Candlestick patternsBreakout
Updated 6 months ago · None stated GitHub repository of Intraday BUY/SELL & AUTO SL (5-min timeframe only) by chaitu50c

BTC ATH Golden Cycle

by ymlee1104
1 stars

BTC ATH Golden Cycle is a Bitcoin-focused strategy script that plots time-based halving cycles, supply and demand zones, a ZigZag indicator, a Rainbow ribbon, and an Ichimoku Cloud directly on the main price chart. The script models historical and projected BT

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

This intraday strategy identifies mean-reversion fade setups around the previous day's high and low (PDH/PDL). Operating within a configurable morning session window, it seeks rejection setups confirmed by volume spikes above an average threshold. Trades use s

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

ML KNN Predictor V2 Enhanced

by haydarkadioglu
1 stars

Calculates machine learning price predictions using a weighted K-Nearest Neighbors algorithm. It evaluates price position, trend, RSI, volatility, Fair Value Gaps, Support and Resistance levels, and volume to identify similar historical pattern matches. The in

Indicator v5 AI / machine learningSMC / ICT / price action
Updated 8 months ago · None stated GitHub repository of ML KNN Predictor V2 Enhanced
1 stars

A Pine v5 strategy that draws trendlines through confirmed swing highs and lows on the price chart. Swing pivots are confirmed after a set number of bars to the right, and a minimum slope angle removes flat lines. A trade mode setting chooses between breakout

Strategy v5 Support & resistanceBreakout
Updated 8 months ago · None stated GitHub repository of ATTraderAlgo Auto Trendline Trader

MNQ Gamma (1DTE)

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

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

ICT Premium/Discount

by Ahmed1926
1 stars

An overlay indicator that draws a premium and discount range on the chart, starting from a user-chosen date. It can show the range high and low with price text, a midline at the equilibrium level, optional 25 and 75 percent quartile lines, an optimal trade ent

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of ICT Premium/Discount

Draws dashed horizontal lines at the highs and lows of previous days, weeks and months on the price chart. Each period has its own colour and a lookback count for how many past periods to show. An optional gradient fades older levels, and projections extend pr

Indicator v5 Support & resistanceSessions & time Repaints
Updated 9 months ago · MPL-2.0 GitHub repository of Daily Weekly Monthly Highs & Lows

Volume Profile Plus

by webcrack4
1 stars

This indicator calculates and plots volume profile histograms, market profile distributions, and key value area levels directly on the main price chart. Users can switch between standard volume analysis and time price opportunity modes, select visible, anchore

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of Volume Profile Plus

Fib Harvester

by anil-sn
1 stars

A chart-overlay indicator that builds a volatility-based trend line from a smoothed price range and marks entries when the trend flips, plus reload entries after pullbacks. Each entry gets a stop sized from the distance to the trend line or an ATR multiple, an

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Fib Harvester

Stratégie Vumanchu-SMC

by matlaenousse
1 stars

Stratégie Vumanchu-SMC combines Smart Money Concepts with Vumanchu momentum signals to execute trades directly on the price chart. It detects market structure transitions such as breaks of structure and changes of character, while mapping order blocks and fair

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 10 months ago · None stated GitHub repository of Stratégie Vumanchu-SMC

The Aetherium Institutional Market Resonance Engine is an overlay indicator that combines coherence analysis, institutional liquidity scanning, and cycle resonance to identify market setups. It measures directional market alignment, calculates volume spike clu

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
1 stars

A strategy that trades with a short and a long EMA. A long entry needs price above the short EMA, which is above the long EMA, plus RSI below a level or price within a tolerance of a pivot low. Shorts mirror this in a downtrend near pivot highs. Each entry get

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

SMC Lite

by munlit
1 stars

A lightweight Pine v5 smart money overlay with Spanish labels. It draws swing highs and lows and can show a zig-zag line and price action labels. From those swings it marks supply and demand boxes, tags break of structure and points of interest, and keeps a ch

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

Daily OHLC

by JoeTonDev
1 stars

An overlay that draws the current day's open, high, low and close as lines or markers on any intraday chart by requesting daily data. The open line is green when price is above it and red when below, and an optional background tint and a small triangle marker

Indicator v5 Support & resistanceSessions & time Repaints
Updated 2 years ago · None stated GitHub repository of Daily OHLC

algo-trade-indian-commodity

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 start hour and minute inputs, with alerts when price crosses the high or low. It adds VWAP and a SuperTrend with adjustable ATR period, m

Strategy v5 Sessions & timeTrend
Updated 2 years ago · None stated GitHub repository of algo-trade-indian-commodity

ZigZag PA Strategy

by merdunal
1 stars

This strategy builds a zigzag from candle direction flips, optionally on an alternate timeframe (60 by default) or Heikin Ashi candles. From the last five zigzag points it measures XABCD ratios to flag harmonic patterns such as Bat, Butterfly and ABCD, and plo

Strategy v5 Support & resistanceBreakout Repaints
Updated 2 years ago · None stated GitHub repository of ZigZag PA Strategy
1 stars

This indicator plots a volume profile directly on the price chart. It calculates cumulative volume over a configurable lookback depth and displays it as horizontal bars. A point of control line marks the highest volume level and can be shown or hidden. Bullish

Indicator v5 VolumeSupport & resistance
Updated 3 years ago · MIT GitHub repository of Woverine - Volume Profile
257 stars

This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross

Strategy v5 TrendSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of 30s - ES 1m Strategy Candle Bar

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