Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 52)

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

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 V5

Volume Value

by ivansoft
1 stars

An indicator in a separate pane built on traded value, volume times the mid price, taken from 30-second data and cumulated over one, three, five and ten minutes. For each window it computes a percentile level over a settable number of bars and checks the value

Indicator v6 VolumeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Volume Value

Malaysian SnR Kai[DoN]

by eddiebelaval
7 stars

Calculates and plots support and resistance levels using pivot high and pivot low structures based on Malaysian SnR concepts. It draws active support and resistance price zones, tracks role reversal lines when levels break, includes a simple moving average fil

Indicator v6 Support & resistanceMoving averages
Updated 3 months ago · None stated GitHub repository of Malaysian SnR Kai[DoN]

CRT State Engine

by alboogycOdR
6 stars

This overlay indicator tracks CRT models at 1:00, 5:00 and 9:00 and a session state machine covering CBDR, Asia, London, London lunch and the New York open. It analyzes draw-on-liquidity pivots, market structure, liquidity pools, volume profile and multi-pair

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

GARY - Patterns

by g-moe
3 stars

GARY - Patterns is a multi-horizon chart pattern detection indicator that identifies wedge and triangle patterns across short-term, medium-term, and long-term lookback periods. It evaluates swing high and low pivot points using customizable lookback spans and

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of GARY - Patterns

PF IES probe 06 - pivot sweep

by pineforge-4pass
1 stars

This Pine Script strategy detects pivot liquidity sweeps on the price chart. It identifies swing highs and lows using ta.pivothigh and ta.pivotlow with user-defined left and right bar counts. The script maintains state for the last confirmed pivot and flags a

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 06 - pivot sweep
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 V5.1

Volume Value V6

by ivansoft
1 stars

An indicator in a separate pane that analyses traded value, volume times the mid price, with percentile levels over a settable number of bars, including a 99th percentile, the maximum and a median-style level that can be ignored. It also tracks cumulative valu

Indicator v6 VolumeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Volume Value V6

PivotHighLow

by Alorse
330 stars

This indicator calculates pivot high and pivot low points on the price chart based on configurable left and right bar counts. Confirmed pivot highs and lows are plotted with negative bar offsets directly on the price chart using line and cross styles. Addition

Indicator v4 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · None stated GitHub repository of PivotHighLow
3 stars

This indicator calculates and plots previous higher-timeframe structural levels directly onto the main price chart. It retrieves the prior high, low, and close levels for daily, weekly, and monthly periods using dashed horizontal reference lines and labels ext

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of GARY - Prior Levels

Session Liquidity

by rosijay17-cmd
1 stars

An overlay indicator that draws horizontal lines at the high and low of up to three user-defined daily time spans, such as Asia, London and New York. Each session has its own time range, day-start timezone, line colour, style, width and optional text label, an

Indicator v5 Sessions & timeSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of Session Liquidity

Dragon Strength Pro

by morindok
1 stars

Dragon Strength Pro is an overlay indicator that stores recent pivot highs and pivot lows confirmed by left and right bar lengths, keeping up to fifty of each. It averages the slope from those pivots to the current close and scores upward impact from lows and

Indicator v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Dragon Strength Pro

Supply and Demand MTF

by mikeyhu70
1 stars

Finds supply and demand zones from strong momentum candles and draws them as boxes on the price chart, with an option to pull zones from additional timeframes. Settings control momentum body multiple, momentum count and span, how far back zones are searched, w

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand MTF

This indicator detects and draws the first Fair Value Gap (FVG) that forms in each hourly session based on a selected lower timeframe, with specialized handling for Regular Trading Hours (RTH) confluence windows. It draws FVG range boxes, midpoint lines, hourl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine is an overlay indicator that maps New York time-based CRT models at 9PM, 1AM, 5AM, and 9AM. It tracks market structure, liquidity sweeps, change-in-state delivery, and unmitigated order blocks that stay drawn until mitigated. Optional modules

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

This indicator identifies and plots bullish and bearish Fair Value Gaps (FVGs) directly on the price chart using box drawings. It detects three-bar price imbalances, adjusting sensitivity via user settings. The script can dynamically minimize box boundaries as

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of GARY Fair-Value GAPS

MTF Order Block Finder

by alvinng214
2 stars

MTF Order Block Finder is a price-chart indicator that marks institutional order blocks from a selected higher timeframe. A bullish block is the last down candle before a run of up candles, and a bearish block is the last up candle before a run of down candles

Indicator v4 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of MTF Order Block Finder

Reverse Wave Trend %J

by mushroom-men-Trading
2 stars

Calculates the Wave Trend %J oscillator and works backwards through its equations to project the required price levels needed to reach target oscillator values. It approximates the Channel Index required for specified overbought or oversold conditions and proj

Indicator v6 Oscillators & momentumSupport & resistance
Updated 9 months ago · None stated GitHub repository of Reverse Wave Trend %J

PSMC - Bitcoin Gaps

by Web3Degenerate
2 stars

This overlay indicator reads daily open, high, low, and close from a reference symbol that defaults to BTC1!. It measures the percentage gap between the daily open and the previous daily close. A gap at or beyond the minimum percentage stores a bullish level a

Indicator v4 Support & resistance
Updated 2 years ago · None stated GitHub repository of PSMC - Bitcoin Gaps

Supply and Demand MTF

by mikeyhu70
1 stars

Finds supply and demand zones from strong momentum candles and draws them as boxes on the price chart, with an option to pull zones from additional timeframes. Settings control momentum body multiple, momentum count and span, how far back zones are searched, w

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Supply and Demand MTF

Zig Zag

by ivansoft
1 stars

Draws a zig zag line on the price chart connecting swing pivots using an imported Zig Zag library. A new reversal is accepted when price moves by a set percentage, 5 by default, and pivots use a leg count of 10. Labels can show the reversal price, cumulative v

Indicator v6 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Zig Zag
947 stars

The script calculates and plots the year-to-date percentage return based on the difference between the current close and the year's open. This plot appears in a separate pane with a black line, colored green for positive returns and red for negative ones. Hori

Indicator v4 Support & resistance
Updated 12 days ago · GPL-3.0 GitHub repository of Year-to-Date (YTD) % Return
106 stars

BEAM DCA Strategy Monthly calculates long-term risk bands around a moving average baseline to implement a monthly dollar-cost averaging strategy. It normalizes asset risk between 0 and 1, placing buy orders when risk falls below 0.5 on a specific day of the mo

Strategy v5 Moving averagesSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of BEAM DCA Strategy Monthly

Relative Leg Efficiency (RLE) measures price efficiency across pivot-to-pivot movement legs. Plotted in a separate pane with chart pivot overlays, it calculates path distance, execution duration, and counter-pressure to produce efficiency scores. Traders can a

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Relative Leg Efficiency (RLE) - Panel + Chart [WavesUnchained]

NQ 9:45-10:15 ICT Strategy

by eddiebelaval
7 stars

This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of NQ 9:45-10:15 ICT Strategy

CRT State Engine

by alboogycOdR
6 stars

Implements an institutional Candle Range Theory (CRT) framework aligned to New York market time windows at 1 AM, 5 AM, and 9 AM. It calculates Draw on Liquidity (DOL) levels using pivot points, manages session state machine boxes, and generates entry signals w

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

GG - Levels

by g-moe
3 stars

This indicator tracks and visualizes key intraday session levels directly on the price chart. It calculates open, high, low, and close values for Regular Trading Hours (RTH), the Overnight Session (ON), and the Initial Balance (IB) period. It draws horizontal

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of GG - Levels
1 stars

This strategy evaluates market structure, volume spikes, and smart money concepts such as order blocks and fair value gaps to score trade entries. It triggers orders when signals meet a minimum confidence threshold and comply with session killzones. Positions

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN PropFirm Ultra [TeleNexus]
65 stars

This indicator walks a user-set lookback and compares the current true range with each earlier true range. It adds the sign of each difference into a running balance, plots that balance in a separate pane, and draws a zero line. For every step it also draws a

Indicator v4 Volatility & bandsSupport & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Debugging from inside for loops

This indicator scores each pivot-to-pivot price leg from 0 to 100 and draws the result on the price chart. It combines path efficiency, time efficiency, and counter-pressure, then colors completed leg lines and optional labels. A live score updates on the unfi

Indicator v6 Support & resistanceTrend
Updated 3 days ago · MIT GitHub repository of Relative Leg Efficiency [WavesUnchained]
3 stars

The Grid Bot Simulator strategy models automated grid trading directly on the price chart. It divides a user-specified price channel between upper and lower bounds into equal grid intervals. Depending on the chosen market direction filter, the strategy execute

Strategy v5 Support & resistanceMoving averages
Updated 5 months ago · None stated GitHub repository of Grid Bot Simulator

Day High Low Test

by ivansoft
1 stars

Experimental overlay that marks the day's high and low and the session open on the price chart, with lines, labels and background shading. It includes special handling for Moscow Exchange futures sessions (main and evening) and uses lower-timeframe requests to

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Day High Low Test
947 stars

Moving Average Channel plots separate simple moving averages for upper and lower bands on the price chart. It fills the space between bands with semi-transparent color and colors bars green above the upper band, red below the lower band, or gray in between. Us

Indicator v4 Moving averagesSupport & resistance
Updated 12 days ago · GPL-3.0 GitHub repository of Moving Average Channel

MTF Swing Highs and Lows

by TamaraKGreen
46 stars

This indicator plots multi-timeframe swing highs and lows on the price chart. It finds pivots with Bill Williams fractals or, when the filter is on, a stricter regular fractal, then stores the latest high and low. Users can show daily, four-hour, one-hour, 30-

Indicator v5 Support & resistance
Updated 8 weeks ago · None stated GitHub repository of MTF Swing Highs and Lows
114 stars

This indicator overlays two Hull Moving Average variations smoothed with an optional Kalman filter directly on the price chart. It fills the space between the two curves with dynamic trend colors and generates buy and sell signal labels when the curves cross.

Indicator v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of HMA-Kahlman Trend & Trendlines

Parabolic SAR

by mihakralj
47 stars

This indicator calculates J. Welles Wilder's classic Parabolic Stop and Reverse (PSAR) trailing stop levels to highlight trend direction and potential market reversals. It updates an acceleration factor whenever price makes new extreme highs or lows, bound by

Indicator v6 TrendSupport & resistance
Updated 8 months ago · MIT GitHub repository of Parabolic SAR

Session highs, lows & opens

by TamaraKGreen
46 stars

This indicator tracks and plots high, low, and opening levels for major trading sessions directly on the price chart. It calculates price boundaries across defined periods including London, New York, Asia, and New York afternoon sessions. The tool does not gen

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session highs, lows & opens

This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt

Strategy v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Reversal Engine Score [WavesUnchained] Strategy
7 stars

Range Oscillator (Zeiierman) plots a range-based oscillator in a separate pane. It qualifies a range box from a minimum number of bars and sizes that box vertically with an ATR width multiplier. A heatmap splits the recent high-low span into horizontal levels

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 months ago · None stated GitHub repository of Range Oscillator (Zeiierman)

CRT State Engine Complete

by alboogycOdR
6 stars

This indicator overlays an institutional Candle Range Theory (CRT) framework directly on the price chart. It analyzes session states across New York time models (1 AM, 5 AM, and 9 AM), detects market structure breaks, identifies order blocks, and tracks liquid

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

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