Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 32)

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

2 stars

This Pine Script indicator calculates Z-Score based bands for grid trading using a user-selectable moving average. It computes the MA from chosen type, length and source then derives upper and lower bands offset by stddevs. Grid ranges are set by min and max w

Indicator v6 Support & resistanceMean reversion Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Z-Score [psyll]

HTF Candles & Pivots

by itmakesyousick
2 stars

The HTF Candles & Pivots indicator plots higher timeframe candles alongside traditional pivot points, support and resistance levels on the current price chart. It calculates open, high, low, and close values from a user-selected timeframe and displays them wit

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

The Moving Average Based Zig Zag indicator computes a smoothed price series with a volume-weighted Hull Moving Average applied to the chosen pivot source, either high-low or open-close. It detects pivot highs and lows on this moving average to construct a conn

Indicator v5 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of Moving Average Based Zig Zag
2 stars

This strategy detects large and smaller fractals on the price chart by comparing highs or lows across a configurable number of bars. It tracks recent fractal levels, draws optional retest lines, and marks a retest signal when price returns a set percentage of

Strategy v4 Support & resistanceBreakout
Updated 4 years ago · MIT GitHub repository of Fractals strategy remaster

The script plots the Volume Weighted Average Price on the price chart. It calculates VWAP using a specified source such as hlc3 and an anchor period like Session, Week, Month or Quarter. The main settings control whether to hide the VWAP on daily or weekly tim

Indicator v6 VolumeSupport & resistance
Updated 2 days ago · Custom licence GitHub repository of Volume Weighted Average Price
1 stars

An indicator that detects cup and handle patterns from pivots, with inputs for rim similarity, handle retracement range, an invalidation retrace level and a target set as a multiple of cup depth. A Bayesian probability update using a Bollinger squeeze as evide

Indicator v6 Support & resistanceBreakout
Updated 2 days ago · None stated GitHub repository of XRP Breakout Matrix Bayesian GC

SMC Context Overlay

by skipp-dev
1 stars

SMC Context Overlay ingests context data inputs to render Smart Money Concepts elements directly on the price chart. It visualizes market structure events such as Break of Structure (BOS), Change of Character (CHOCH), support and resistance levels, as well as

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

Limit Verification Probe R2

by GammaExpansion
1 stars

This strategy probes limit order verification across four modes in a cycling pattern. It opens positions using resting limits, marketable limits, stop-limits, or exit limits with an offset. The script runs cycles to verify order behavior and plots probe values

Strategy v6 Screeners & dashboardsSupport & resistance
Updated 7 days ago · MIT GitHub repository of Limit Verification Probe R2
1 stars

DEPV2 B1 Seviyeler calculates and plots key high-timeframe price levels across weekly, monthly, and yearly periods. For each period, it tracks the current open, high, and low, along with the previous period's high, low, and close values. The indicator uses cus

Indicator v6 Support & resistance
Updated 13 days ago · None stated GitHub repository of DEPV2 B1 Seviyeler (W/M/Y)

SR+Trend v12 (backup)

by MuhammadMuhamid
1 stars

A backup copy of a long-only crypto spot strategy built on multi-timeframe pivot support and resistance. It enters when price retests a support zone and holds, with an option to flip broken resistance into support. Further switches add moving average, SuperTre

Strategy v6 Support & resistanceTrend
Updated 13 days ago · None stated GitHub repository of SR+Trend v12 (backup)

TQE Trade Quality Engine

by AssetWhisper
1 stars

An overlay indicator that combines several statistical modules into a single trade planning panel. For a long or short direction, chosen automatically or manually, it proposes an ATR-based stop widened for tail risk, a target R multiple optimised for expectanc

Indicator v5 Volatility & bandsSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of TQE Trade Quality Engine

Bmoon System Signals

by morindok
1 stars

Bmoon System Signals is a fractal-based mirror indicator that overlays on the price chart. It calculates mirrored price levels using two user-defined mirror levels (P1 and P2) with options for logarithmic or arithmetic mirroring. The indicator detects multi-ba

Indicator v6 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Bmoon System Signals

MA Suite

by vedkanani123
1 stars

An overlay indicator built around one selectable moving average, with an optional extra smoothing step. It reads trend from price above or below the average or from a rising average, and marks support and resistance touches within a percentage tolerance, plus

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of MA Suite

Polish Setup Strategy

by GreyssonEnterprises
1 stars

A Pine v5 strategy that uses smoothed moving averages of 21, 50 and 200, W and M pattern recognition with an optional volume check, an RSI midline filter and a time-zone trading session. Targets use extension levels, risk per trade is a base percentage capped

Strategy v5 Moving averagesSessions & time
Updated 3 months ago · MIT GitHub repository of Polish Setup Strategy

Liquidity Heatmap

by VVASILEVSS
1 stars

A Pine v5 overlay that estimates liquidation price levels and draws them as horizontal lines on the price chart. When volume is above its 14-bar average, a bullish candle adds a long liquidation line below the low and a bearish candle adds a short line above t

Indicator v5 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Liquidity Heatmap
1 stars

This strategy executes trades based on Triangular Moving Average (TMA) crossings, Support and Resistance filters (such as Daily Pivots, Anchored VWAP, and 5-day moving averages), and volume or percentage gain criteria. Exits are driven by specific session time

Strategy v6 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of STT SR TMA Scale ExitOnly Plan

This overlay indicator maps crypto price action with a volume profile, anchored VWAP, and optional trend filters. It builds a lookback profile, value area, and acceptance tests around profile levels, and it can show right-side profile boxes. Anchored VWAP and

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v7.1 Conservative Clean
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-2
1 stars

This indicator calculates volume distribution across price slices over a lookback period and plots boxes on the price chart to represent high volume nodes. It measures volume in each slice and draws horizontal boxes whose width corresponds to volume intensity,

Indicator v6 VolumeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of High Volume Nodes (HVN)

QQQ Gamma (30DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for QQQ (the Nasdaq-100 ETF) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline fr

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

ES Professional Fade

by knectardev
1 stars

The ES Professional Fade strategy trades overnight price gaps during regular trading hours on intraday charts. It establishes an opening range and enters counter-trend positions when price fails near overnight extremes. Positions target the previous day's clos

Strategy v5 Mean reversionSessions & time
Updated 9 months ago · None stated GitHub repository of ES Professional Fade
1 stars

This indicator plots a custom MACD oscillator directly on the main price chart while incorporating multi-depth Zigzag pattern detection. It supports four MACD calculation modes—Traditional, AS Histogram, Leader, and Source—with customizable fast, slow, and sig

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 9 months ago · None stated GitHub repository of MACD-X Overlay More Than MACD

Three Bar Reversal Pattern

by feliperazeek
1 stars

This strategy detects three-bar reversal patterns in normal, enhanced or both forms, derives support and resistance from them as levels or zones, and trades the reversals on the price chart. An optional trend filter uses a moving average cloud, Supertrend or D

Strategy v5 Candlestick patternsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Three Bar Reversal Pattern
575 stars

This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner

Color Triangular Gradient

by ricardosantos79
261 stars

This script defines a helper function to generate colors via triangular interpolation using TradingView's color.from_gradient. The function blends between minimum, mid, and maximum color points based on an input value. It applies the function to the RSI indica

Indicator v5 Support & resistance
Updated 4 years ago · None stated GitHub repository of Color Triangular Gradient
106 stars

This strategy plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 3SmmaCrossUp + Fractal + RSI

Moon Dev GEX Walls & Trap

by moondevonyt
92 stars

This indicator estimates gamma exposure levels and intraday context for index instruments like SPY and ES. It calculates VWAP with standard deviation bands as a gamma flip proxy, highlighting market regimes through background colors. It plots prior day high, l

Indicator v5 Support & resistanceSessions & time
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Walls & Trap

Power Of Index

by iamc1oud
56 stars

This indicator maps Smart Money Concepts (SMC) features directly on the price chart. It detects and visualizes internal and swing market structure breaks (BOS and CHoCH), bullish and bearish order blocks, equal highs and lows, and strong or weak swing points.

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Power Of Index

NQ Stats - Initial Balance

by TamaraKGreen
46 stars

NQ Stats - Initial Balance calculates and displays the Initial Balance range, including the session high, low, and midpoint, for a customizable intraday time window. Once the defined calculation period ends, the indicator overlays a shaded box and a midpoint l

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of NQ Stats - Initial Balance

This overlay strategy is written for the SOLUSDT perpetual on the one-minute chart. It tracks confirmed pivot highs and lows as resistance and support circles, then marks strong buy or sell states when close crosses those levels. Long and short conditions comp

Strategy v5 Support & resistanceBreakout Repaints
Updated 2 years ago · None stated GitHub repository of SOLUSDTPERP 1m - Strategy Candle Bar

Auto Pitchfork

by TWODS-CAPITAL
37 stars

This indicator draws an automatic pitchfork on the price chart from successive pivot highs and lows. Depth sets how many bars are used to find those pivots. The type setting chooses Original, Schiff, Modified Schiff, or Inside geometry. It plots a median line

Indicator v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Auto Pitchfork

Trend Compass 1H

by chris-c-thomas
14 stars

Trend Compass 1H provides strategic trend assessment and higher-timeframe context for 1-hour price charts. It plots an exponential moving average ribbon along with key structural reference levels from higher timeframes, including 4-hour, daily, and weekly EMAs

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass 1H

This indicator plots a linear regression channel on the price chart. It fits a regression line to a chosen source over a lookback length, then draws the base line plus optional upper and lower deviation bands scaled by multipliers. Fibonacci ratios mark intern

Indicator v5 TrendSupport & resistance
Updated 4 months ago · None stated GitHub repository of Regression Trend with Fibonacci

An Ichimoku-based trading strategy that plots the complete Ichimoku Kinko Hyo system directly on the price chart. Long signals trigger when Tenkan-Sen is above Kijun-Sen and positioned above the current Kumo cloud, exiting when Tenkan-Sen falls below Kijun-Sen

Strategy v5 TrendSupport & resistance
Updated 1 year ago · MPL-2.0 GitHub repository of Ichimoku Kinko Hyo: Tenkan Kumo Strategy

This indicator draws a volume profile on the price chart for a user-chosen start-to-end window. It splits that window into three time segments and colors buy and sell volume separately for the left, middle, and right parts. Histogram rows stack volume by price

Indicator v5 VolumeSupport & resistance
Updated 3 years ago · MIT GitHub repository of Volume Profile Visible Range With Timely Segmented Coloring

TheStrat Suite

by 345-strategies
5 stars

TheStrat Suite is a multi-timeframe price-action indicator for TradingView that implements Rob Smith's TheStrat methodology using Pine Script v6. It detects patterns including inside bars, hammers, shooters, failed 2s and outside bars across six configurable t

Indicator v6 SMC / ICT / price actionCandlestick patterns Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStrat Suite

CB LinReg

by jerryinyang
5 stars

CB LinReg calculates linear regression channels across primary and multi-timeframe periods. It computes linear regression lines along with standard deviation channel bands to analyze price trends and potential reversal zones. Settings allow users to adjust pri

Indicator v4 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of CB LinReg

Smart Money Concepts

by Hugs-4-Bugs
4 stars

This indicator maps smart money structure on the price chart. It labels internal and swing breaks of structure and changes of character, and it can color candles by the detected trend. It draws internal and swing order blocks filtered by ATR or cumulative mean

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Smart Money Concepts

Swing Trade

by might-tree
4 stars

This strategy plots three swing lines on the price chart. A small swing marks the current high after one higher high, or the current low after one lower low. A medium swing requires two consecutive rising highs or falling lows, and a large swing requires three

Strategy v5 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Swing Trade
4 stars

This indicator calculates multi-timeframe metrics and presents them in an on-chart table panel. It inspects daily (1D) and weekly (1W) higher-timeframe data to analyze swings, support and resistance levels, RSI momentum, and relative volume conditions. The pan

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 4 years ago · None stated GitHub repository of SnagProfit Logic 1D 1W

Stella's Volume Profile

by stella-entry
3 stars

Stella's Volume Profile estimates volume distribution across price levels over a designated lookback period. It divides the high-low price range into discrete rows and accumulates volume to identify the Point of Control, representing the price level with the h

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · MIT GitHub repository of Stella's Volume Profile

HSN Algo

by IAMATOMIC001
3 stars

Calculates and plots Smart Money Concepts (SMC) features directly on the price chart, including supply and demand zones, internal and swing market structure breaks of structure, and order blocks. Supply and demand zones track price rejections using box drawing

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of HSN Algo

This indicator identifies and plots bullish and bearish order blocks directly on the price chart. It defines an order block when a directional candle is followed by consecutive rising or falling bars that meet a configurable minimum percentage price change thr

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Jawaun's Advanced Order Block Finder

Last Time at Price

by piecioshka
2 stars

Calculates and displays the last date and time the market traded at the current reference price level. On the most recent bar, the indicator searches backwards up to a configurable lookback limit for the nearest historical candle whose high-low range contained

Indicator v6 Support & resistance
Updated 12 days ago · MIT GitHub repository of Last Time at Price

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