Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 55)

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

6 stars

Identifies ICT Silver Bullet setups by tracking fair value gaps and market structure shifts across specific London and New York trading sessions. Plots session windows, liquidity highs and lows, fair value gap boxes, and projected entry levels with dynamic or

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT Silver Bullet NuburoFX02

Volume Weighted Average Price (VWAP)

by mushroom-men-Trading
2 stars

This indicator calculates the Volume Weighted Average Price (VWAP) based on the provided source price series, typically hlc3, weighted by volume. The VWAP resets at the beginning of the specified session type, such as daily (1D), hourly (1H), or custom interva

Indicator v6 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of Volume Weighted Average Price (VWAP)
1 stars

A Fibonacci pullback strategy on the price chart. It finds the highest high and lowest low over a lookback, then draws long and short retracement levels at a chosen ratio from 0.236 to 0.786. A trade is only considered at one specific hour, in the direction of

Strategy v6 Support & resistanceTrend
Updated 2 months ago · None stated GitHub repository of TN Sovereign Fibonacci
1 stars

This indicator estimates a dominant cycle with the Goertzel algorithm, then scans a set number of past bars for similar patterns to project future prices and dates. A dashboard table on the price chart lists the results. Cycle length, forecast periods, lookbac

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Price and Date Forecast V2

Visual Trading Zones

by eddiebelaval
7 stars

Visual Trading Zones draws evenly spaced price zones on the chart from the highest and lowest prices over a configurable lookback. It spaces levels by a step in ticks or forex pips, optionally inserts sublevels, and can show filled zones, level lines, and pric

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Visual Trading Zones

This indicator overlays multiple technical analysis tools onto the main price chart to establish multi-filter trend confluence. It calculates dual anchored VWAPs, dual Supertrend indicators, moving averages, Kijun-sen Donchian midlines, and weekly pivot points

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud with Donchian Channels

Bull Vs. Bear Market Intraday Sessions partitions the trading day into multiple custom time intervals to analyze session-specific volume and market behavior. Plotted directly on the main price chart, the indicator tracks buying and selling dynamics across up t

Indicator v5 Sessions & timeVolume
Updated 8 months ago · None stated GitHub repository of Bull Vs. Bear Market Intraday Sessions [Kioseff Trading]
1 stars

Golden Ichimoku by BITMOON618 calculates and plots dynamic Ichimoku clouds directly on the price chart based on a user-selected time range between two timestamps. The script determines a custom bar length from the range and generates three scaled cloud structu

Indicator v5 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Golden Ichimoku by BITMOON618

Trade Permission Engine evaluates whether market structure currently permits long or short trades, alongside a decoupled Position Health score for managing existing positions. It analyzes alternating confirmed swing legs, Fibonacci retracement depths, time mat

Indicator v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Trade Permission Engine [WavesUnchained]

Golden Spiral

by morindok
1 stars

The Golden Spiral indicator calculates and draws logarithmic Fibonacci spiral projections in a separate pane. Centered at a user-defined bar timestamp, it plots forward and backward spiral curves using customizable turns, step resolution, and X/Y axis scaling.

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Golden Spiral

This overlay indicator detects a trading range from clustered pivots, falling back to the highest and lowest prices over a lookback, and scores it with eight weighted factors. The score moves the range through Inactive, Building, Confirmed, Mature, and Breakin

Indicator v6 Support & resistanceVolatility & bands
Updated 3 days ago · MIT GitHub repository of Trading Range State Machine [WavesUnchained]

Imagegpt Test 1

by g-moe
3 stars

Imagegpt Test 1 is a comprehensive chart overlay indicator that plots buy, sell, and reversal signals along with supply and demand zones. It calculates key levels using volume pivots and features integrated Bollinger Bands alongside entry, exit, stop-loss, and

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of Imagegpt Test 1

Golden Spiral

by morindok
1 stars

This overlay indicator draws golden and optional symmetric spirals between two user-selected time and price anchors on the price chart. It measures the selected range, counts green, red, and total candles, and sums their high-to-low heights, then uses the chos

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Golden Spiral
1 stars

The TN Sovereign Footprint POC v6 strategy calculates a simulated Point of Control by identifying the highest volume node in a lookback period using the average of high, low, and close prices. It plots on the price chart as an overlay and signals buy or sell e

Strategy v6 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of TN Sovereign Footprint POC v6

Breakeven Line Demo

by hasnocool
106 stars

The Breakeven Line Demo strategy is a Pine Script demonstration tool designed to visualize the average position price of stacked trades. It enters long positions after seven consecutive bearish candles and short positions after seven consecutive bullish candle

Strategy v5 Mean reversionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Breakeven Line Demo
6 stars

This indicator tracks a configurable ICT sequence on the price chart. It advances through optional stages: Asian range bias, manipulation, New York macro windows, liquidity sweep, market structure shift, CISD, fair value gap, and retracement into that gap. Pre

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT State Machine Sequential Entry
3 stars

Inner Outer Risk Zones plots horizontal price levels and risk boundary zones directly on the main price chart. The indicator allows traders to input manual target and support levels—including Outer Top, Inner Top, Inner Bottom, and Outer Bottom—along with risk

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Inner Outer Risk Zones

GOLDEN-PIVOT φ v2

by morindok
1 stars

GOLDEN-PIVOT φ v2 is a Pine Script strategy that plots on the price chart. It calculates a golden pivot region using Fibonacci retracement at 0.618 of a swing high-low range spanning 96 candles. The script applies a volume filter requiring current volume to ex

Strategy v5 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of GOLDEN-PIVOT φ v2
1 stars

A long-only strategy built on fair value gaps. A bullish gap is detected when a bar's low is above the high two bars back. Depending on the confirmation setting, it enters on the gap alone, on the gap plus a high-volume breakout candle used as a simple order b

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Sovereign FVG and OB
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. An algorithm mode setting switches between looser and strict engulfing definitions, and a threshold separates big from small candles. Other settings set the maximum number of engu

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V2
106 stars

Breakout Trend Follower is a price-chart strategy that enters long when price breaks a recent swing high. It places the stop at the recent swing low and trails that stop upward as higher lows form, exiting when a higher low is breached. A pivot lookback sets h

Strategy v5 BreakoutTrend Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Breakout Trend Follower

This indicator scans price action for symmetric, ascending, and descending triangle chart patterns using a sliding window of confirmed swing pivots. It fits upper and lower boundary trend lines across swing highs and lows, rating each pattern with a composite

Indicator v6 BreakoutSupport & resistance
Updated 3 days ago · MIT GitHub repository of Triangle Compression Scanner Pro [WavesUnchained]

Institutional CRT Engine

by alboogycOdR
6 stars

Calculates Candle Range Theory (CRT) ranges using specific one-hour or four-hour New York session candles. The indicator draws CRT range boxes directly on the price chart and plots entry signals based on Market Structure Shifts (MSS) with Fair Value Gaps (FVG)

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine

Inside Extended

by g-moe
3 stars

Inside Extended tracks inside bar patterns and projects their initial breakout ranges on the price chart. When a candle body falls completely within the high-low range of the prior candle, the indicator marks the inside bar in yellow and establishes the mother

Indicator v5 Candlestick patternsBreakout
Updated 5 months ago · None stated GitHub repository of Inside Extended

Cup & Handle Final

by regalouisei
2 stars

This overlay indicator searches price history for cup and handle shapes using left and right pivot lengths and a lookback of prior pivots. It draws the cup fill, border, and retrace on the price chart. Settings limit how steep the top line may be, how tall the

Indicator v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Cup & Handle Final

HTF Sessions

by morindok
1 stars

Splits the chart into periods of a chosen higher timeframe, daily by default, and draws on the price chart. At each new period it adds a vertical line, a box around the most volume-heavy stretch of recent candles, and an orange running average of closes since

Indicator v5 Sessions & timeVolume Repaints
Updated 7 weeks ago · None stated GitHub repository of HTF Sessions
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. Algorithm modes range from looser to strict engulfing, with a threshold separating big from small candles. Settings limit how many zones and how much history are kept, with a sepa

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V2

Fill Example

by be-thomas
65 stars

This Pine Script v4 indicator plots three series on a price chart: the sine of high prices, the cosine of low prices, and the sine of close prices. It uses the fill function to shade the area between the first and third plot in red and between the second and t

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Fill Example

Multi-Time Period Charts

by TWODS-CAPITAL
37 stars

This overlay indicator draws a box for each completed higher-timeframe period on the price chart. Box height follows High/Low Range, True Range, or Heikin Ashi Range, and the fill is growth or fall color according to that period’s open-to-close change. Auto ti

Indicator v5 Support & resistanceVolatility & bands
Updated 3 years ago · MIT GitHub repository of Multi-Time Period Charts
7 stars

This indicator calculates a Volume Weighted Average Price (VWAP) reset across selectable anchor periods, including daily sessions, weekly, monthly, yearly, YTD, half-year, or a custom manual date. It plots the main VWAP line on the price chart alongside option

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of VWAP Enhanced (Visual Feedback)

Institutional CRT Engine

by alboogycOdR
6 stars

Institutional CRT Engine identifies Candle Range Theory setups by monitoring session-based time models for liquidity sweeps, Market Structure Shifts, and Fair Value Gaps. It plots CRT range boxes and signal labels directly on the main chart. Key settings allow

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine

Hyper Fibo System

by morindok
1 stars

Hyper Fibo System is an overlay indicator that projects Fibonacci wave cycles and linear regression lines based on two user-selected chart anchor points. It calculates the slope, midpoint, and range between the anchors, allowing traders to apply cyclic Fibonac

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. Algorithm modes range from looser to strict engulfing, with a threshold separating big from small candles. Settings limit how many zones and how much history are kept, with a sepa

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V2

Typical Price (HLC3)

by mihakralj
47 stars

This indicator calculates the typical price by averaging the high, low, and close prices for each bar. It plots the HLC3 series on the price chart with a yellow line of width two. The calculation uses multiplication by 0.333333 for optimization instead of divi

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Typical Price (HLC3)

This overlay indicator detects tweezer tops and bottoms and kangaroo-tail pin bars, then draws supply and demand zones from those patterns. It scores each zone, decays freshness, merges overlapping zones, and can invalidate a zone after a close-through or afte

Indicator v6 Candlestick patternsSupport & resistance
Updated 3 days ago · MIT GitHub repository of Tweezer & Kangaroo Zones [WavesUnchained]

Institutional CRT Engine

by alboogycOdR
6 stars

This indicator plots an institutional candle-range-theory model on the price chart. It tracks a chosen one-hour or four-hour session candle, stores that candle’s high and low, and uses a state machine to mark the range. An optional higher-timeframe filter requ

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine
2 stars

Delta Volume Channels calculates volume-weighted delta channels and reference moving averages using lower timeframe intrabar volume data. It plots directly on the main price chart, displaying dynamic channel fills, reference lines, delta volume-weighted lines,

Indicator v5 VolumeVolatility & bands
Updated 8 months ago · None stated GitHub repository of Delta Volume Channels [LucF]

Hyper Fibo System

by morindok
1 stars

Hyper Fibo System plots dynamic price lines, Fibonacci waves, symmetry projections, and regression channels based on two user-selected anchor points. The script calculates slope, midpoints, and cross levels between anchor points to project Fibonacci wave cycle

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, with a zone invalidated after a set number of level breaches. Algorithm modes range from looser to strict engulfing, and a threshold separates big from small candles. Settings lim

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

Day ATR

by ivansoft
1 stars

Calculates daily median and 85th percentile ranges for high-to-open and open-to-low distances over a 30-day lookback period using higher timeframe daily data. At each new trading day, the script projects expected upper and lower volatility levels directly on t

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Day ATR
47 stars

The Ultimate Channel calculates an ultra-smoothed centerline alongside upper and lower volatility bands directly on the main price chart. It processes true range values through an advanced infinite impulse response smoothing filter to establish dynamic channel

Indicator v6 Volatility & bandsTrend
Updated 8 months ago · MIT GitHub repository of Ultimate Channel (UCHANNEL)
6 stars

Institutional CRT Engine Dual Mode implements Candle Range Theory across selectable 1-hour and 4-hour timeframes. It anchors to defined session opening hours across Asian, London, and New York market periods to establish range boundaries. The indicator evaluat

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine Dual Mode
1 stars

This indicator projects geometric cycles and Fibonacci-scaled waves anchored between two user-defined chart points. It calculates the slope, midpoint, and span between the selected points to generate an expanding sine wave modulated by powers of the golden rat

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System [Morindok]
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated and a tolerance margin allows small breaches. Algorithm modes range from looser to strict engulfing, with a threshold for big

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

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