Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 44)

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

This indicator plots several linear regression channels on the price chart. Each channel can be hidden or drawn as a channel, bands, or both, and its lookback is anchored to price, volume, oscillator extremes, calendar periods, sessions, or corporate events. P

Indicator v6 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Multi-Anchored Linear Regression Channels [TANHEF]
1 stars

This indicator draws geometric ruler lines on the price chart from a user-chosen base time. It stores confirmed pivot highs and lows using left and right bar counts, and can use highs, lows, or both. Settings set colors and width for upper-shadow, lower-shadow

Indicator v6 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Ruler V2 Morindok by BITMOON618

GitLemon Trailer

by GreyssonEnterprises
1 stars

An indicator that searches for W and M reversal shapes in price and optionally in OBV, Williams %R, MFI, RSI and directional movement, using one shared maximum width and offset. It can also test whether price sits within a Fibonacci retracement zone of the rec

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of GitLemon Trailer

Pivot Trend RMA

by Snappni
1 stars

This strategy calculates a 10-period rolling moving average (RMA) alongside short-term pivot highs and pivot lows to identify trend alignment. It plots the RMA line directly on the price chart. Long entries trigger when price crosses the RMA while the RMA is r

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Pivot Trend RMA

Trendlines - JD

by nvFede
1 stars

A Pine v4 overlay by Joris Duyck that draws trendlines through pivot points and extends them forward. Lines can start from wicks or candle bodies, run indefinitely or for a limited number of bars, and be coloured by direction or in monochrome. Trendline breaks

Indicator v4 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of Trendlines - JD
228 stars

This indicator maps market structure and supply and demand zones on the price chart. It marks validated and optional unvalidated swing highs and lows using a pivot length and extra confirmation bars. Consolidation and impulse moves are measured against ATR to

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Market Structure + Supply/Demand

Auto Pivot Trendlines

by dcaoyuan
55 stars

This indicator draws trendlines between confirmed swing points on the price chart. It finds pivot highs and pivot lows with a fixed ten-bar lookback on each side, then connects successive highs with red lines and successive lows with green lines. There are no

Indicator v5 Support & resistanceTrend
Updated 6 months ago · Apache-2.0 GitHub repository of Auto Pivot Trendlines
6 stars

This indicator maps multi-timeframe candle range patterns based on specific time-of-day sessions. It converts user-specified SAST starting hours into UTC to identify initial 4-hour range candles, plotting their high, low, and median levels across the chart. Th

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern - Enhanced

EzSMC

by TamTH-Dev
2 stars

EzSMC is an overlay indicator designed for Smart Money Concepts analysis. It identifies and plots bullish and bearish order blocks directly on the price chart, with optional multi-timeframe order block capabilities. Traders can categorize order blocks into int

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of EzSMC

Market Structure Physics Lab

by rosijay17-cmd
1 stars

An overlay indicator that marks confirmed swing pivots and builds ATR-width structure zones around them. It adds CUSUM change-point markers, relative volume, lower-timeframe delta pressure, compression and trend-efficiency readings, then labels how each zone t

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of Market Structure Physics Lab

Range Scalper

by knectardev
1 stars

Range Scalper is a price-chart overlay indicator. Archived notes describe an ATR-based dynamic range threshold meant to adapt range detection to volatility, plus breakout shape markers. The file is labeled simplified for the archive and shows no parsed inputs.

Indicator v5 ScalpingVolatility & bands
Updated 9 months ago · None stated GitHub repository of Range Scalper

v5 Combination by Yzz

by webcrack4
1 stars

This combination indicator plots a Volume Profile or Market Profile histogram directly on the main price chart alongside MACD calculations. It measures volume or time distribution across custom price rows, highlighting key market structure levels such as the P

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of v5 Combination by Yzz

Fancy Shapes

by everget
947 stars

This script plots multiple shapes using the plotshape function in Pine Script v4. It defines fixed y offsets at intervals of 20 and renders flags, squares, diamonds, triangles up, and circles in sizes from tiny to huge. All shapes appear at absolute locations

Indicator v4 Support & resistance
Updated 12 days ago · GPL-3.0 GitHub repository of Fancy Shapes
228 stars

This indicator plots market structure on the price chart by identifying swing highs and lows. It connects these points with lines to visualize trend direction and detect Break of Structure (BOS) when price breaks a prior swing in the current trend. Change of C

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Market Structure - BOS & CHoCH
106 stars

Calculates multi-period logarithmic regression trend channels and deviation bands across up to twenty selectable lookback lengths directly on the price chart. It evaluates channel slopes and Pearson's correlation coefficient to detect market trends and generat

Strategy v5 TrendSupport & resistance Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced Trend Detection Strategy

Channel

by dcaoyuan
55 stars

The Channel indicator identifies recent pivot highs and pivot lows using fixed left and right bar lengths. It connects the two most recent pivot highs and two most recent pivot lows with extended lines to project upper and lower boundaries directly on the pric

Indicator v5 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Channel

Daily close statistics

by TamaraKGreen
46 stars

This indicator plots the previous day's high, low and midpoint and the previous week's high, low and midpoint directly on the price chart. It also marks New York, London and Asia sessions, optionally filling each session range and showing that session's maximu

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Daily close statistics
7 stars

Aivance Opening Range & Vol Factor identifies the first candle of each new trading day, plotting its high, low, open, and close levels with colored boxes and lines directly on the chart. It calculates a Volume Factor percentage by comparing the opening bar vol

Indicator v6 Sessions & timeVolume
Updated 3 months ago · None stated GitHub repository of Aivance Opening Range & Vol Factor
3 stars

This indicator overlays a dynamic trend ribbon or cloud on the price chart to visualize market direction and strength. It generates long and short signals based on selected strategy modes such as Default, Scalping, Intraday or Swing, using adjustable period, s

Indicator v5 TrendSMC / ICT / price action Repaints
Updated 12 months ago · None stated GitHub repository of Money Moves [Premium Algo V2]

Ichimoku Kinko Hyo

by TamTH-Dev
2 stars

Plots the classic Ichimoku Kinko Hyo system directly on the price chart. It calculates the Tenkan-Sen, Kijun-Sen, Senkou Span A, Senkou Span B, and Chikou Span based on midpoints of highest highs and lowest lows over user-defined lookback periods. The Kumo clo

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Ichimoku Kinko Hyo

Options Max Pain Calculator [BackQuant] estimates options max pain theory levels, pin risk zones, and market maker gamma exposure directly on the price chart. It models strike prices, put/call volume ratios, implied volatility, and dealer hedging parameters to

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of Options Max Pain Calculator [BackQuant]

SMC Structure Context

by skipp-dev
1 stars

The SMC Structure Context indicator overlays visual elements on the price chart to represent the current market structure state. It displays a state label indicating bullish, bearish, or neutral conditions, along with markers for change of character (CHoCH) an

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

Symmetric Attraction

by morindok
1 stars

Symmetric Attraction is an indicator that plots mirrored candles on the price chart by reflecting OHLC data around a regression basis line. The basis is computed using linear regression on the selected source with an optional logarithmic transformation. It als

Indicator v6 Candlestick patternsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Symmetric Attraction
1 stars

A Pine Script v5 indicator in a separate pane that works with Hurst-style forward cycle projections known as future line of demand (FLD) lines. It offers seven FLD slots, each with an automatic or manual period and a bars-per-period multiplier, and a switch be

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Diamond Notation Pivots

Range Scalper

by knectardev
1 stars

Range Scalper marks support and resistance from the latest confirmed pivot low and pivot high. It treats price as range-bound when the distance between those levels, divided by the close, is at or below the range threshold. While that condition holds, it plots

Indicator v5 Support & resistanceBreakout
Updated 9 months ago · None stated GitHub repository of Range Scalper

This strategy overlays the price chart and looks for VWAP pullbacks. It goes long when a short SMA crosses above VWAP after RSI has been oversold within ten bars, and short on the opposite cross after RSI has been overbought. Optional Minervini-style moving-av

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced VWAP-Momentum Pullback Trend Qualifier
55 stars

This indicator plots support and resistance from confirmed pivot highs and lows on the price chart. It uses a fixed lookback of 20 bars on each side. A pivot high draws a solid red horizontal line that extends to the right, and a pivot low draws a dashed green

Indicator v5 Support & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Dynamic Pivot S/R Lines

Daily Segment Probabilities

by TamaraKGreen
46 stars

Daily Segment Probabilities is an overlay indicator that lays out twelve percentage bands around the previous day's high and low, from 100 percent below that range to 200 percent above it, in 25 percent steps. It draws previous-day high and low lines and segme

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 weeks ago · None stated GitHub repository of Daily Segment Probabilities
6 stars

This indicator maps session-based Candle Range Theory (CRT) cycles by identifying range formation, manipulation, and distribution phases directly on the price chart. It projects range boxes, supply and demand zones, midpoints, and manipulation trendlines accor

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of 3-Candle Time Pattern - Pro

OT Algo Toolkit

by IAMATOMIC001
3 stars

OT Algo Toolkit is a Smart Money Concepts market structure indicator that plots swing and internal structure transitions, including Break of Structure (BOS) and Change of Character (CHoCH) labels directly on the price chart. It highlights equal highs and lows,

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

Ichimoku Raiden

by TamTH-Dev
2 stars

This indicator plots dual Ichimoku Kumo clouds, designated as Lightning and Thunder, directly on the price chart. It calculates Donchian midpoints across two distinct parameter sets to generate fast and slow Senkou Span A and B boundary lines. The script fills

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Ichimoku Raiden

This chart overlay indicator identifies and plots Smart Money Concepts (SMC) elements based on the ICT 2022 trading model. It detects Fair Value Gaps (FVG), Market Structure Shifts (MSS), and key swing high and low levels using specialized external libraries.

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of 2022 Model ICT Entry Strategy TradingFinder

A Pine Script v5 indicator in a separate pane that applies Hurst-style bandpass filters to a chosen price source, such as the low, to mark cycle pivots from the 5 day to the 40 day range. Each cycle has its own bandwidth and period, and a bandpass offset, cycl

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Diamond Notation Pivots 5D to 40D

Range Scalper

by knectardev
1 stars

The Range Scalper indicator identifies support and resistance levels to help traders spot range-bound price action. It calculates pivot highs and pivot lows using a user-defined pivot length parameter. The resistance levels plot in red and support levels plot

Indicator v5 Support & resistanceScalping
Updated 9 months ago · None stated GitHub repository of Range Scalper
1 stars

Draws a linear regression line over the last chosen number of bars on the price chart, with upper and lower channel lines offset by a standard deviation multiple or by the largest deviation of highs and lows. Inputs set length, source, deviation multipliers, l

Indicator v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Linear Regression Channel
330 stars

This indicator monitors multiple cryptocurrency symbols for trading signals. It calculates and plots entry prices, take profit, and stop loss levels for each symbol including BTCUSDT, ETHUSDT, BNBUSDT and others. Price crossovers trigger buy, sell or close ale

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of Multi Alert Long/Short [Alorse]

Midnight VWAP

by TradersPost
228 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP
46 stars

This indicator plots expected volatility zones on the price chart. It requests the previous daily close of the chart symbol and a user-selected volatility index, then converts the index into log space. Two volatility measures build upper and lower bands at 0.2

Indicator v5 Volatility & bandsSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Expected Volatility (Log-Transformed)

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