Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 50)

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

The script identifies time-filtered Candle Range Theory (CRT) patterns on higher-timeframe candles using New York session timing. It detects liquidity sweeps and range manipulation setups relative to specific H4 candles for user-selected models, such as 1AM, 5

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Complete CRT System (MTF v2)
2 stars

This Pine Script indicator detects Smart Money Concepts order blocks on the price chart using pivot highs and lows. It builds supply and demand zones based on configurable pivot periods and order block validity periods. The script offers refinement options to

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

Ichimoku Cloud

by Web3Degenerate
2 stars

This indicator calculates and overlays standard Ichimoku Cloud components on the price chart, including the Conversion Line, Base Line, Lagging Span, and Leading Spans A and B. It imports an external library to detect candlestick patterns like hammers and shoo

Indicator v5 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of Ichimoku Cloud
1 stars

A Pine Script v5 indicator in a separate pane, the fifth revision of a Hurst cycle trough marker, whose title spells trough as through. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and labels cycle lows with lines. Each cycl

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Through Marker V5

SlimTrades 2h

by tseitz
1 stars

SlimTrades 2h is an intraday strategy overlaying short-term high and low price channels alongside momentum measurements from MACD and RSI. It tracks local highs and lows over a user-defined lookback period, plotting them directly on the price chart. The script

Strategy v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of SlimTrades 2h

Traditional Pivot Points

by TradersPost
228 stars

Calculates and plots daily pivot levels directly on the price chart. It supports Traditional, Fibonacci, and Camarilla calculation formulas to generate a central pivot point along with three support levels and three resistance levels. The script pulls the prev

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Traditional Pivot Points

Session Opening Bar Range

by TamaraKGreen
46 stars

This indicator plots the opening range of selected trading sessions directly on the price chart. Users can choose preset market sessions like New York, London, or Asia, or configure custom time windows. It draws high, low, and midline boundaries for the first

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Session Opening Bar Range

Gold Breakout Trader

by eddiebelaval
7 stars

Plots timed breakout ranges directly on the price chart, designed for gold trading using dollar-based spacing. At scheduled trigger times or recurring two-hour intervals, it creates a central reference box flanked by upper and lower breakout stop lines, follow

Indicator v6 BreakoutSupport & resistance
Updated 3 months ago · None stated GitHub repository of Gold Breakout Trader

SW's Asia/London H/L's

by alvinng214
2 stars

This indicator draws high and low levels for the Asia, London, New York, and Sydney sessions on the price chart. Each session can be enabled separately, with its own line color, thickness, opacity, labels, and an optional vertical line at the session start. It

Indicator v5 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of SW's Asia/London H/L's

Fair Value Gaps by DGT

by regalouisei
2 stars

The indicator plots Fair Value Gaps zones on the price chart derived from selected timeframes. It detects imbalances between swing highs and lows then applies chosen fill methods including Wick Sweep and Body Beyond to mark filled gaps. Up to three instances s

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 8 months ago · None stated GitHub repository of Fair Value Gaps by DGT

An overlay indicator that tracks pivot, session, previous-day and flipped support and resistance levels and records how price reacts when it tests them. Each trial resolves into break, fade, fail or expire, and a Bayesian-style model sorted into twelve context

Indicator v6 Support & resistanceSessions & time Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Trading Coach - Hybrid S/R Reaction Probability
1 stars

Detects swing highs and swing lows from left and right bar counts and keeps the most recent ones, with their dates, in a table on the price chart. Settings choose the bar counts, how many swings to track, and the table position, size and text colours. Swings a

Indicator v5 Support & resistanceScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of Last n Swing High Low Table
1 stars

Plots the time weighted average price on the price chart: a running average of a chosen source, ohlc4 by default, that restarts whenever the selected anchor period begins, one day by default. Inputs set the anchor timeframe, source and an offset. Unlike VWAP,

Indicator v6 Support & resistanceMean reversion
Updated 1 year ago · None stated GitHub repository of Time Weighted Average Price

Trend Line Plot Indicator

by TradersPost
228 stars

The Trend Line Plot Indicator automatically identifies pivot highs and lows across price history and draws dynamic bullish and bearish trend lines directly on the price chart. Users can adjust the pivot lookback length, filter lines based on a minimum number o

Indicator v6 Support & resistanceTrend
Updated 3 months ago · None stated GitHub repository of Trend Line Plot Indicator

Session Statistical Levels

by TamaraKGreen
46 stars

This indicator overlays statistical price range levels across key trading sessions, including Asia, London, NY Morning, and NY Afternoon, as well as an optional custom session. It calculates and plots symmetric percentile range bands such as the median (P50),

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Statistical Levels

MTF Structure Bias classifies market structure across four timeframes by comparing rolling highest highs and lowest lows N bars ago. Each timeframe receives a bullish (+1), bearish (-1), or mixed (0) state based on whether highs and lows are rising or falling.

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 3 days ago · MIT GitHub repository of MTF Structure Bias [WavesUnchained]

Fair Value MS

by regalouisei
2 stars

Fair Value MS is an overlay indicator that highlights market structure, fair value gaps, and key areas of interest on the price chart. It identifies bullish and bearish structural shifts, projects extended interest zones towards current price action, and draws

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Fair Value MS

Trend Continuation Zones

by rosijay17-cmd
1 stars

An overlay indicator that signals trend-continuation breakouts only in the direction of a mandatory trend filter built from a long EMA and a confirmed higher-timeframe EMA stack. Recent swing highs and lows are stored as reference levels, and a breakout needs

Indicator v6 TrendBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Continuation Zones

Detects swing highs and swing lows from left and right bar counts and lists the most recent ones in a compact table on the price chart. Settings choose the bar counts, how many swings to store and display, how many days into the past and future the display cov

Indicator v5 Support & resistanceScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of Last n Swing High Low Table Compact
1 stars

An indicator that finds pivot highs and lows and groups nearby pivots into support and resistance channels drawn on the price chart. Settings cover pivot period, source, maximum channel width as a share of the recent range, minimum strength, number of channels

Indicator v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Support Resistance Levels

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)

Session Statistical Levels + Extension Gauge calculates and plots statistical price projections, maximum favorable/adverse excursion (MFE/MAE) percentiles, and standard deviation range bands based on historical distribution data from NQ futures. It anchors sta

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Session Statistical Levels + Extension Gauge
7 stars

This indicator detects consolidation zones, fair value gaps, and breakaway gaps on the price chart using Heikin-Ashi price calculations. It tracks overlapping candles to identify consolidation ranges and marks subsequent structural breakouts. Users can display

Indicator v6 SMC / ICT / price actionBreakout
Updated 3 months ago · None stated GitHub repository of HA Colidation Breakout Structure

Convergence Spirals

by morindok
1 stars

This indicator plots convergence spirals on the price chart using two user-defined points defined by time and price. It calculates spiral paths with options for symmetric spirals, extension, and mirroring of selected levels or endpoints. Inputs control divisor

Indicator v5 Support & resistanceDivergence
Updated 7 weeks ago · None stated GitHub repository of Convergence Spirals
1 stars

Detects swing highs and swing lows from left and right bar counts and lists the most recent ones in a table on the price chart. Settings choose the bar counts, how many swings to store and show, an option to trim future dates, and day ranges for the past and f

Indicator v5 Support & resistanceScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of Last n Swing High Low Table V2

Volume Profile - Session

by TradersPost
228 stars

Volume Profile - Session constructs volume distribution histograms across daily, weekly, or monthly periods directly on the price chart. It divides session price ranges into discrete price levels and calculates total volume per bin to identify the Point of Con

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Volume Profile - Session

This overlay indicator draws a volume profile for a chosen trading session directly on the price chart. It plots the point of control, value area high and low, an optional value area box, a live zone, and a session box with labels. Users select Tokyo, London,

Indicator v5 Sessions & timeVolume
Updated 8 weeks ago · None stated GitHub repository of Sessions & VP with prev session VP & daily/weekly opens

HB Directional Range

by eddiebelaval
7 stars

HB Directional Range calculates and plots consolidation range boxes directly on the price chart based on candle body behavior. It tracks high and low boundaries, extending the active range box as long as candle bodies remain within it. When a candle body break

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of HB Directional Range

CRT Mapper Complete

by alboogycOdR
6 stars

CRT Mapper Complete plots Candle Range Theory (CRT) structures, Turtle Soup patterns, and supply and demand zones directly on the main price chart. It identifies time-based session ranges, tracks market structure shifts, and generates entry signals using rejec

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete
2 stars

This indicator plots colored session boxes and horizontal lines on the price chart for Asia, London, New York AM, New York Lunch, and New York PM sessions. It draws high and low lines with an optional 50% midpoint line for each session. Users customize colors,

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of ICT Sessions One Setup for Life
1 stars

This indicator calculates TD Sequential setups by comparing the current close price to the close four bars ago. It increments or decrements a setup count and tracks direction to identify progression in trend. The setup count is plotted as a status line on the

Indicator v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of TD Sequential OnChart
1 stars

A long-focused strategy on the price chart for 5 minute data. It draws rolling highest and lowest levels over two lookbacks and uses RSI zones, with MACD and RSI history, to decide when to buy and when to close. Inputs set the RSI open and close zones, a minim

Strategy v4 Oscillators & momentumSupport & resistance
Updated 4 years ago · None stated GitHub repository of SlimTrades 5m Longs Only

VWAP - Basic

by TradersPost
228 stars

VWAP - Basic plots an anchored Volume Weighted Average Price directly on the main price chart alongside two standard deviation bands. It calculates typical price weighted by volume, resetting the cumulative calculations at user-selected session, weekly, or mon

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of VWAP - Basic
46 stars

This overlay indicator plots an average daily range and an optional median line from a chosen lookback, plus boxes and labels for four user-defined sessions defaulting to Asia, London, the New York open, and the New York initial balance. It can show a session

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Statistcal Daily Profile & Ranges
6 stars

This overlay indicator maps a timed CRT session range and draws a range box, supply and demand zones, a midpoint take-profit line, and optional entry labels. It tracks range, manipulation, and distribution states, and can filter signals with market structure,

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT Mapper Complete with TURTLES
2 stars

This indicator highlights ICT Silver Bullet trading sessions directly on the price chart. It identifies Fair Value Gaps (FVGs) and filters them based on trend direction and strictness rules, with options to extend unfilled zones. It also tracks swing highs and

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of ICT Silver Bullet [LuxAlgo]
2 stars

This indicator plots Fibonacci Time-Price Zones on the price chart. It draws horizontal and vertical Fibonacci levels from 0.236 to 1.236 using user-defined values, colors, and line thicknesses. Different zone types such as retracement and shapes including cir

Indicator v6 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Fibonacci Time-Price Zones

RSI Chart Signals

by Web3Degenerate
2 stars

This indicator plots a customized RSI line on the price chart along with buy and sell signals triggered by bullish and bearish engulfing candle patterns. It calculates RSI using a user-adjustable length and custom overbought and oversold thresholds. Signals oc

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of RSI Chart Signals

Cube

by morindok
1 stars

The Cube indicator draws a 3D cube projection on the price chart using two user-specified points defined by time and price inputs. It connects multiple polylines at calculated ratios of time and price deltas to form the cube's edges and faces. The main setting

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

Demand & Supply Zones Pro

by vedkanani123
1 stars

A price-chart indicator that finds supply and demand zones from leg-in, base and leg-out candle structures. Demand comes from rally-base-rally and drop-base-rally patterns, and supply from rally-base-drop and drop-base-drop, each switchable. Leg and base candl

Indicator v6 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of Demand & Supply Zones Pro

BZ-tracker

by Allen1212
303 stars

The BZ-tracker indicator marks ARK Invest buy and sell transactions on stock charts with labels. It plots green labels for purchases and red labels for sales, each annotated with a multiplier such as X1 or X2 to show the number of ARK ETFs trading the stock on

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of BZ-tracker
114 stars

This indicator combines a scaled Forecast Oscillator with a Point of Force state detector. The Forecast Oscillator calculates the percentage deviation of price from its linear regression curve and normalizes the output between 0 and 1, plotting a line in a sep

Indicator v4 Oscillators & momentumSupport & resistance Repaints

Time Based Ranges

by TamaraKGreen
46 stars

Time Based Ranges is an overlay indicator that marks session windows and price levels on the chart. It draws boxes for named time zones and optional inner intervals, plus open-price and midnight price lines. Users choose a timezone, toggle zone and interval di

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Time Based Ranges

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