Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 51)

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

Oscillator Divergence Zones calculates nine selectable momentum oscillators, including RSI, CCI, MFI, TSI, STC, and Ehlers filters, to detect regular and hidden divergences. It evaluates price and momentum pivots to spot structural divergence, applying optiona

Indicator v6 Oscillators & momentumSupport & resistance
Updated 3 days ago · MIT GitHub repository of Oscillator Divergence Zones [WavesUnchained]

IFA-VP Context

by eddiebelaval
7 stars

This indicator plots a fixed lookback Volume Profile alongside 20, 50, and 200 Simple Moving Averages directly on the price chart. It highlights trend changes via moving average crosses and marks Point of Control reactions, High Volume Nodes, and Value Area bo

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of IFA-VP Context
6 stars

This overlay indicator maps a timed session range in SAST, then marks supply and demand zones, a midpoint target, and a four-hour manipulation trendline. It tracks range, manipulation, and distribution states and can plot long or short entry signals when marke

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES

Fractals

by g-moe
3 stars

The Fractals indicator identifies potential reversal points on the price chart by detecting local swing highs and lows. It plots down fractal markers above the bar for swing highs and up fractal markers below the bar for swing lows. The Periods setting control

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Fractals
2 stars

The ICT Silver Bullet with Signals indicator identifies and highlights key Inner Circle Trader concepts directly on the main price chart. It marks designated Silver Bullet session time windows, detects higher-timeframe Fair Value Gaps (FVGs), and plots support

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT Silver Bullet with Signals

Trend Pivot Retracements

by rosijay17-cmd
1 stars

An overlay indicator that sets a trend direction from 50-bar highs and lows, flagging an uptrend on a new high and a downtrend on a new low. Within the trend it detects pivot lows or highs and measures the retracement from the recent extreme, drawing a dashed

Indicator v6 TrendSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Pivot Retracements
46 stars

This indicator draws configurable time-based sessions on the price chart. It plots session open lines, average high and low lines, and an expected range line. Optional high-low boxes and likely range boxes mark session ranges, with labels comparing average and

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Time based ranges with stats

This strategy calculates regular and hidden divergences across selectable momentum oscillators, including RSI, CCI, and MFI, and plots volatility-based divergence zones. It displays oscillator dynamics in a separate pane while projecting support and resistance

Strategy v6 DivergenceOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Oscillator Divergence Zones [WavesUnchained] — Strategy
6 stars

This overlay indicator maps a timed session range from a chosen SAST start hour and session length, then draws the range box, midpoint, supply and demand zones, and an optional four-hour manipulation trendline. It tracks range, manipulation, and distribution s

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES

TN Multi-Confluence

by raybird
1 stars

A Pine v6 strategy that trades smart money concepts on the price chart. It combines a higher-timeframe bias with an EMA, equal highs and lows liquidity, order blocks, fair value gaps and an optional displacement confirmation. Entries are limited to New York an

Strategy v6 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of TN Multi-Confluence
1 stars

This early indicator uses the Goertzel algorithm to estimate a dominant cycle from the chosen price source, then projects the cycle forward for a set number of periods. Projected prices and dates are shown in a dashboard table on the price chart. The cycle len

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

This indicator tracks and projects session-based price retracement levels directly onto the main price chart. Users can configure up to five distinct time sessions alongside specific evaluation windows to measure price retracement targets calculated from open

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Time Based Retracement - Stats
2 stars

This indicator identifies and visualizes swing liquidity levels directly on the main price chart. It detects pivot highs and lows, filtering them according to normalized volume strength relative to recent standard deviation. Active liquidity levels are drawn a

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Liquidity Zones [BigBeluga]

An overlay indicator that looks for the Wyckoff upthrust after distribution pattern. It requires a prior advance measured in ATR, detects a trading range with a minimum duration and boundary tests, and flags a terminal breakout attempt that fails back inside w

Indicator v6 BreakoutVolume
Updated 8 days ago · GPL-3.0 GitHub repository of Upthrust After Distribution + Entry Alerts

Cylinder

by morindok
1 stars

The Cylinder indicator projects a geometric 3D cylinder shape directly onto the price chart using Pine Script polylines. The user defines two anchor points on the chart via interactive price and time selection inputs. The script calculates relative time and pr

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

This indicator combines three dominant cycle lengths, pivot highs and lows, and candlestick pattern matching to project future turning prices and dates. Bollinger Band, Keltner Channel and volatility lengths are also available as inputs. Projected values appea

Indicator v5 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Price and Date Forecast V3
46 stars

This overlay indicator tracks up to four independent session levels on the price chart. For each level it records the high and low of a chosen range window, then draws an optional box for that range and a horizontal retracement line at a user-set percentage of

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Time-based Range Retracement - Stats

Pattern Recognition [WavesUnchained] automatically identifies chart patterns including ascending, descending, and symmetrical triangles, rising and falling wedges, and parallel channels. It validates formations through multi-point pivot analysis, volume spike

Indicator v6 BreakoutSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Pattern Recognition [WavesUnchained]

This indicator plots internal and external liquidity zones alongside market structure breaks directly on the price chart. It calculates short-term and long-term pivot points to identify internal and external liquidity levels, including equal highs and lows. Ma

Indicator v6 SMC / ICT / price actionSupport & resistance

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine plots time-based CRT models, session state ranges, and institutional market structure on the main price chart. It detects liquidity sweeps, order blocks, Fair Value Gaps, and volume profile imbalances across specified New York time sessions. T

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

FX Market Sessions highlights distinct trading sessions, such as London, New York, and previous day ranges, directly on the main chart using colored boxes and labels. It tracks session highs, lows, and pip spans, with configurable options for opening ranges, F

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of FX Market Sessions
2 stars

Clusters Volume Profile [LuxAlgo] applies K-Means clustering to historical price data using high-low averages and volumes to identify distinct price groups. It then computes volume profiles for each cluster with user-defined rows per cluster and maximum bar wi

Indicator v6 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of LuxAlgo - Clusters Volume Profile

Funded Range Gann Sniper

by vedkanani123
1 stars

A price-chart indicator that looks for fade setups after price raids the edge of a completed session or prior-day range and closes back inside. It requires the Gann half-range level to sit at least a set number of R away, sizes the stop beyond the raid using A

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Funded Range Gann Sniper
1 stars

This debug build combines three dominant cycle lengths, pivot highs and lows, and candlestick pattern matching to project future turning prices and dates. Bollinger Band, Keltner Channel and volatility lengths are also available as inputs. Projected values app

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

Visible Average Price

by ivansoft
1 stars

Calculates the average of a chosen price source across the candles currently visible on the chart and draws it as a grey line with a price label, shown for the last bar only. Source is the only input and defaults to close. The average changes as the user scrol

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Visible Average Price

Midpoint (MIDPOINT)

by mihakralj
47 stars

This indicator plots the midpoint between the highest and lowest values of a chosen source over a lookback window. It uses TradingView highest and lowest functions, then averages them with multiplication by one half. The source input selects the series, defaul

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Midpoint (MIDPOINT)

VP History Widget

by TamaraKGreen
46 stars

This indicator plots historical session volume profiles directly on the price chart as offset visual widgets. It aggregates volume or open interest across user-defined sessions such as daily, weekly, or monthly periods using lower-timeframe data. The script se

Indicator v5 VolumeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of VP History Widget

Pivot Momentum Structure plots a selectable oscillator in a separate pane and scores momentum against confirmed price pivots. It classifies higher highs, higher lows, lower highs and lower lows, then marks regular and hidden bullish or bearish divergences plus

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Pivot Momentum Structure [WavesUnchained]

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine is an overlay indicator that maps New York-timed CRT models, unmitigated order blocks, market structure, liquidity pools, and volume profile on the price chart. It can draw session boxes for Asia, London, London lunch, and New York and optiona

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

Gary - Levels

by g-moe
3 stars

Gary - Levels is a TradingView Pine Script v5 indicator that overlays multiple session-based VWAP calculations and high/low lines directly on the price chart. It plots an RTH VWAP line for the regular trading hours session (default 0930-1600 ET) and a full-ses

Indicator v5 Moving averagesSupport & resistance
Updated 5 months ago · None stated GitHub repository of Gary - Levels
2 stars

Order Blocks & Imbalance MTF detects bullish demand and bearish supply order blocks driven by Fair Value Gaps (FVG). The indicator calculates gap sizes using an ATR multiplier threshold across configurable timeframes via higher-timeframe data requests. When va

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

VP-Period

by rosijay17-cmd
1 stars

An overlay indicator that builds a volume profile over a set number of recent days and marks the volume point of control as a line, along with period high and low lines. It also draws support and resistance lines derived from profiles looking back a chosen num

Indicator v6 VolumeSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of VP-Period
1 stars

This indicator combines three dominant cycle lengths, pivot highs and lows, and candlestick pattern matching to project future turning prices and dates. Bollinger Band, Keltner Channel and volatility lengths are also available as inputs. Projected values appea

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

An overlay indicator combining confirmed pivot highs and lows, RSI and two simple moving averages. It draws green and red levels from the latest pivot, and marks long signals when the high crosses above the long moving average with the close above it, and shor

Indicator v4 Support & resistanceOscillators & momentum
261 stars

The Multiple Regression Polynomial Forecast indicator calculates linear and polynomial regression forecasts using array data sampled from price series. It plots projected regression channel lines directly on the price chart to visualize trend direction and pot

Indicator v5 TrendSupport & resistance
Updated 4 years ago · None stated GitHub repository of Multiple Regression Polynomial Forecast

Conditional Colors

by be-thomas
65 stars

This indicator identifies pivot high and low levels and plots them as horizontal lines on the main price chart. It calculates pivots using a configurable leg period and stores the most recent high and low pivot values. When a new pivot level is detected, the s

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

Weekly IB

by TamaraKGreen
46 stars

Weekly IB is an overlay indicator that tracks and visualizes the weekly initial balance levels on the main price chart. It features customizable day-of-week labels, daily session boundary highlights, configurable timezones, and optional Fibonacci retracement l

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Weekly IB

Ichimoku Cloud

by TWODS-CAPITAL
37 stars

This indicator plots the classic Ichimoku Cloud on the price chart. It calculates the conversion line and base line as midpoints of the highest and lowest prices over their lengths, then averages those lines for Leading Span A and uses a longer midpoint for Le

Indicator v5 TrendSupport & resistance
Updated 3 years ago · MIT GitHub repository of Ichimoku Cloud

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine draws an institutional candle-range state model on the price chart. It tracks New York session models, market structure, unmitigated order blocks, liquidity pools, and optional volume profile and multi-pair correlation. Change-in-state detecti

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

GROK PA Daily Levels

by vedkanani123
1 stars

An indicator for the price chart that draws a merged set of daily reference levels: previous day high, low, open and midpoint, a central pivot range, Camarilla levels, optional floor pivots, previous week extremes, range expansion targets beyond yesterday's ra

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of GROK PA Daily Levels

TN OR Magnet

by raybird
1 stars

An opening range strategy for the New York session that records the high and low of a short opening window, then trades retests of that range. Setup A follows drift from the range with a retest, and a conservative Setup B uses breakout plus retest. Filters ski

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of TN OR Magnet

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