Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 22)

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

Forever Model

by alboogycOdR
6 stars

The Forever Model indicator draws Fair Value Gap boxes directly on the price chart to highlight potential support and resistance zones. It plots confirmation lines that can extend to the current bar and optionally displays labels. A customizable dashboard appe

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Forever Model

Edge 71

by subos2008
6 stars

Edge 71 plots prior-window extremes on the price chart and marks breakout entries. It takes the highest high over a long lookback and the lowest low over a short lookback, both excluding the current bar. A green arrow appears when the bar high exceeds that pri

Indicator v5 BreakoutSupport & resistance Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 71

PineDraw

by 345-strategies
5 stars

PineDraw is a Pine Script v6 library that provides object primitives for drawing and updating price levels on the chart. It enables indicators and strategies to maintain lines, boxes, and labels in place by updating existing objects instead of deleting and rec

Library v6 Support & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of PineDraw
5 stars

RG Structure is a pivot-constrained break-and-retest strategy that calculates dynamic trendlines, market structure changes, and regime states on the price chart. It identifies support and resistance lines through pivot points and evaluates break-and-retest sig

Strategy v6 TrendSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of RG Structure Visual Edition

Moment-Based Adaptive Detection calculates higher-order statistical moments, including mean, deviation, skewness, kurtosis, and hyper-kurtosis, on price data to construct adaptive distribution bands on the main chart overlay. It computes a central basis line a

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Moment-Based Adaptive Detection
4 stars

This indicator identifies and plots support and resistance zones based on specific Gann cycle timing timestamps. It checks whether lower or higher timeframe bars correspond to pre-configured cycle times, creating zones defined by the bar high and low. When pri

Indicator v6 Support & resistanceBreakout
Updated 2 days ago · None stated GitHub repository of Gann Cycle Support/Resistance Zones
4 stars

This overlay indicator draws KOLA pivot support and resistance, order blocks, optional change-of-character and break-of-structure marks, SIDO swing chart patterns, and Fibonacci or OTE levels on the price chart. Touch counts use an ATR percentage zone. Spike s

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO — Full Integration
4 stars

This indicator plots volume-weighted support and resistance zones on the price chart. It finds swing pivots, clusters them by ATR distance, and keeps only zones that receive a minimum number of confirmed touches. Strength presets switch between local, swing, a

Indicator v6 Support & resistanceVolume
Updated 4 months ago · MIT GitHub repository of Support and Resistance Zones [FEELS]

Prop Firm ICT Sniper | Survival Mode

by thesenegalesehitch
4 stars

This strategy overlays the price chart and sizes cash positions from account equity using a selectable Phase 1 or Phase 2 risk percent. It tracks net profit by calendar day and blocks new risk once the phase daily-loss limit is reached. Swing sensitivity sets

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · Custom licence GitHub repository of Prop Firm ICT Sniper | Survival Mode

SMC Order Block + FVG

by LePotoRico2105
4 stars

SMC Order Block + FVG is an intraday strategy combining market structure breaks, order blocks, and fair value gaps. It identifies breaks of structure using pivot points, isolates order blocks following strong ATR-based impulses, and tracks fair value gaps. Lon

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · MIT GitHub repository of SMC Order Block + FVG

Interactive ATR Stop Loss

by ShabbirHasan1
4 stars

This indicator plots an interactive ATR-based trailing stop loss on the price chart. Traders click to set the starting point, with the stop loss trailing dynamically based on price action. It triggers on wick or close breaches of the ATR bands and displays fil

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of Interactive ATR Stop Loss

ZigZag OrderBlock Retracement

by ricksimpsontrading
3 stars

This indicator plots multi-length ZigZag swing structures, detected order blocks, and retracement levels directly on the price chart. It computes up to four separate ZigZag lengths to track price swings across multiple horizons with color coding for bullish, b

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 10 days ago · None stated GitHub repository of ZigZag OrderBlock Retracement
3 stars

This indicator calculates multi-source analysis signals based on The Trading Parrot methodology, combining SOPR proxy calculations, custom volume-weighted RSI, liquidity support and resistance levels, volume spike detection, and pattern recognition. It outputs

Indicator v6 Oscillators & momentumVolume
Updated 1 year ago · Custom licence GitHub repository of Trading Parrot Multi-Source Analysis

RTF Indicator

by blackcat1402
3 stars

The RTF Indicator plots Bollinger Band signals on the price chart for trading signals. It uses inputs for band length, stddev, pivot point, recent bars, loss tolerance, pause bar, and take profit to determine entry and exit points. The script manages trade cyc

Indicator v4 Volatility & bandsSupport & resistance
Updated 5 years ago · MIT GitHub repository of RTF Indicator
2 stars

Modern Ichimoku Cloud [GBB] is an advanced trend and momentum indicator that enhances classic Ichimoku Kinko Hyo with multi-layered structural analysis. It plots traditional Tenkan-sen, Kijun-sen, Senkou Spans, and Chikou Span on the price chart while offering

Indicator v6 TrendSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Modern Ichimoku Cloud [GBB]

Pivots MP

by midngtpickle
2 stars

Pivots MP draws Fibonacci or Camarilla pivot levels on the price chart. It plots the central pivot plus resistance and support pairs from R1/S1 through R5/S5 for a chosen period, from hourly through multi-year, and can keep earlier periods according to the loo

Indicator v6 Support & resistance Repaints
Updated 4 weeks ago · Custom licence GitHub repository of Pivots MP

Market Structure

by TamTH-Dev
2 stars

Market Structure identifies and visualizes key market structure developments directly on the price chart. It calculates swing highs and swing lows using pivot detection with a five-bar lookback alongside an Average True Range filter to track structure. The ind

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Market Structure
2 stars

Calculates entry signals, stop loss levels, and five take-profit targets based on a 7-factor dual scoring engine. The system evaluates short-term market bias using EMA 9 and 21 crossovers, VWAP, RSI, MACD, ADX, relative volume, and multi-timeframe 5-minute RSI

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Sniper Entry/Exit with SL&TP

Custom Oscillator

by danielbodnar
2 stars

This reference script provides practical Pine Script v6 code examples for creating custom indicators. It includes a smoothed Relative Strength Index oscillator plotted with overbought and oversold background zones, a multi-timeframe moving average overlay with

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of Custom Oscillator

ICT HTF MSS & Liquidity

by alvinng214
2 stars

This indicator detects market structure shifts and liquidity levels on a user-selected higher timeframe using ICT concepts. It plots open and claimed liquidity lines on the price chart along with break of structure (BOS) and fair value gap (FVG) zones to highl

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT HTF MSS & Liquidity

HVC Watcher

by major
2 stars

This indicator identifies High Volume Close (HVC) and Highest Volume Ever (HVE) events directly on the price chart. It calculates a volume simple moving average and detects bars where volume exceeds a configured multiple of that average. Detected bars can disp

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · Apache-2.0 GitHub repository of HVC Watcher

This indicator identifies swing highs and swing lows to detect institutional order blocks and breaker blocks, plotting them as colored boxes directly on the price chart. It provides optional alert triggers when new order blocks form. User settings allow toggli

Indicator v6 SMC / ICT / price actionSupport & resistance
2 stars

This indicator divides the lookback range between the highest and lowest close into ten equal price bins and plots each bin’s average close as a support or resistance level on the price chart. It counts bullish and bearish rejections of those levels over the s

Indicator v6 Support & resistance
Updated 8 months ago · None stated GitHub repository of BIN Based Support and Resistance [SS]

Swing Structure - Clean BOS

by ifreddyman2014-tech
2 stars

Swing Structure - Clean BOS identifies market structure by plotting swing high and low points, Break of Structure (BOS) lines, and Order Blocks directly on the price chart. It features an optional displacement filter requiring breakout candles to exceed an ave

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Swing Structure - Clean BOS

My Fib Pivots

by ashwagamma
2 stars

The My Fib Pivots indicator plots daily pivot points on the price chart along with Fibonacci retracement levels from 0.236 to 2.0. It displays the last period's pivot, latest classic pivot range (CPR), retired CPR, and rolling pivots. Users can toggle visibili

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of My Fib Pivots

Custom Session OHL

by ryangaraygay
2 stars

Custom Session OHL calculates and plots the open, high, and low price levels established during a user-specified time session. It tracks the session opening price along with the highest and lowest prices reached during that window, plotting them directly on th

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · MIT GitHub repository of Custom Session OHL

Breakout Indicator

by Web3Degenerate
2 stars

Breakout Indicator plots high and low threshold levels for a chosen timeframe, such as daily, directly on the price chart. When price closes above the high or below the low, the indicator displays a breakout shape and marks ATR-based stop loss and take profit

Indicator v5 BreakoutSupport & resistance
Updated 2 years ago · None stated GitHub repository of Breakout Indicator

Mc War v3

by tuanmcwar
2 stars

Mc War v3 is a price-chart indicator that finds swing highs and lows over a user-set lookback and draws upper and lower order-block zones as boxes. It limits how many bearish and bullish blocks stay visible and can use candle bodies instead of wicks for zone e

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Mc War v3
2 stars

Jens Rabe Academy - Indicator 1 combines multiple trend and market condition tools directly on the main price chart. It calculates exponential moving averages (10, 21) and simple moving averages (30, 40, 50, 150, 200), identifies distribution days (D-Days) bas

Indicator v5 Moving averagesTrend Repaints
Updated 2 years ago · MIT GitHub repository of Jens Rabe Academy - Indicator 1

HTF Candles & Pivots

by itmakesyousick
2 stars

This overlay indicator draws higher-timeframe candles as boxes on the price chart, with a selectable timeframe, candle thickness, wicks, history, vertical divisions, and optional fill for negative candles. It can plot pivot levels, including an optional centra

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

Multi ZigZag

by WISEPLAT
2 stars

This indicator calculates and plots up to four independent ZigZag lines on the price chart simultaneously using customizable length periods. It identifies high and low pivot points across multiple time horizons to display market structure and trend swings. Use

Indicator v5 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of Multi ZigZag

Level Search

by DaniilOkrug
2 stars

This Pine Script strategy identifies and plots horizontal support levels by searching for price clusters across historical price lows. It scans a configurable number of past bars to group nearby low prices within a user-defined tick deviation. When a price lev

Strategy v5 Support & resistance Repaints
Updated 4 years ago · MIT GitHub repository of Level Search

Ichimoku Cloud

by mydcc
1 stars

This indicator plots the standard Ichimoku Kinko Hyo components directly on the price chart. It calculates the Conversion Line, Base Line, Leading Span A, Leading Span B, and Lagging Span using Donchian midpoint logic over configurable periods. The script shad

Indicator v6 TrendMoving averages
Updated 2 days ago · Custom licence GitHub repository of Ichimoku Cloud

An indicator that finds swing structure with pivots, draws a Fibonacci cloud and levels, and runs an adaptive trailing line that changes with a trend, range or volatile regime from ADX and ATR. Signals come from a trailing flip or from a cross of the 0.5 level

Indicator v6 TrendSupport & resistance
1 stars

An overlay that sketches a same-day iron condor on the S&P 500 index or its ETF and mini equivalents, detecting which instrument is loaded. It tracks an opening observation window, then at a set build time projects short strikes a chosen percentage out of the

Indicator v5 Sessions & timeSupport & resistance
Updated 2 days ago · None stated GitHub repository of ZeroDTE Iron Condor v1

Stoch Price Envelope

by teshmi9z-beep
1 stars

An overlay that converts a long-period stochastic reading back into price levels. Using the highest high and lowest low over a lookback window of 200 bars by default, it plots a ceiling at the high stochastic level, a floor at the low level, a midpoint, and a

Indicator v5 Oscillators & momentumSupport & resistance
Updated 2 days ago · MIT GitHub repository of Stoch Price Envelope
1 stars

A separate-pane diagnostic that measures downside effort as the average of down-bar moves divided by ATR, drawn as inverted heat-coloured columns. It flags absorption and climax bars when price sits below a weekly midline built from an EMA and SMA and effort e

Indicator v6 Volatility & bandsVolume Repaints
Updated 3 days ago · None stated GitHub repository of V6.0-Down (Right Diagnostic)
1 stars

Correlation Matrix & Effective Bets is an indicator that computes pairwise correlations of log returns across six user-defined symbols over a configurable length and displays the results as a colored table in a separate pane. It also calculates an effective be

Indicator v6 Screeners & dashboardsSupport & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of Correlation Matrix & Effective Bets

Week 01

by moonyroy
1 stars

This overlay indicator draws line segments that follow swing highs and lows, building a zigzag-style map of price structure. It tracks a running high and low, starts a segment from the first bars, and extends or flips the current leg when price breaks only the

Indicator v6 Support & resistance
Updated 6 days ago · None stated GitHub repository of Week 01

My Notes

by cckmchiu-gapps
1 stars

The My Notes indicator displays selectable trading notes on the price chart. Users choose from multiple note sets via dropdown input, covering topics like technical points, trading strategies, market states, and Hong Kong stock analysis. Notes appear as text l

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 8 days ago · None stated GitHub repository of My Notes

Key Levels

by Just-beyond-z
1 stars

An overlay that draws reference levels from several timeframes. It can show previous high and low levels, session levels, opening prices, swing lines and fair value gaps for 30-minute, 2-hour, 4-hour and daily frames, each with its own color and a maximum coun

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 2 weeks ago · None stated GitHub repository of Key Levels

An overlay indicator limited to the one-minute chart that records the high and low of an opening range at a set market open time. It draws high, low and average lines plus dotted entry levels beyond the range, extending to the session end. A daily flag is kept

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of DAY-5MIN-L&H v6 Valid Trend Alert

Visible Average Price

by AkashSasikumar47
1 stars

Calculates and plots the average price of all bars currently visible on the chart window. It collects price source values between the leftmost and rightmost visible bars and displays a single horizontal line representing the arithmetic mean. The plotted level

Indicator v6 Support & resistance Repaints
Updated 2 weeks ago · MIT GitHub repository of Visible Average Price

Overnight Range Breakout

by JACKZHOU0521
1 stars

This script tracks high and low levels established during a defined overnight trading session in exchange time. Once the overnight session completes, the indicator plots frozen horizontal high and low boundary lines on the price chart. When price closes above

Indicator v6 Support & resistanceBreakout
Updated 5 weeks ago · None stated GitHub repository of Overnight Range Breakout

SMC Sessions

by mccallister-dev
1 stars

The SMC Sessions indicator plots higher-timeframe context labels, swing structure breaks, confirmed sweeps, order-block proxies and fair value gap zones directly on the price chart for forex SMC and ICT analysis. It draws HTF pullback-continuation and reversal

Indicator v6 SMC / ICT / price actionSessions & time Repaints
Updated 5 weeks ago · None stated GitHub repository of SMC Sessions

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