Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 54)

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 harmonic ratio levels from three user-selected points on the price chart. It reads the high, low and close at points A, B and C, then classifies the range and projects a last ratio chosen from 2.24, 2.618, 3.14 or 3.618. Labels can show AB

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of ABC 123 Harmonic Ratio Custom Range Interactive
1 stars

This indicator draws Fibonacci-based time projections as horizontal lines and price projections as vertical lines on the price chart. Users select a start time and candle, then set the number of bars for time steps and initial price gap. The script calculates

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Fibonacci Time & Price Projection

Gann Box 2024

by mikeyhu70
1 stars

This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Box 2024
13 stars

This strategy detects long and short signals from the Noro TrendRibbon ribbon side change. It draws a corridor from recent high and low prices on the chart. When price falls below the corridor on long signals it opens long positions sized to a percentage of co

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon J009
6 stars

Calculates and plots key high and low reference levels based on a selected candle timeframe (1-hour or 4-hour) starting at a specific New York session hour (1 AM, 5 AM, or 9 AM). The indicator tracks the high and low prices of the specified candle, resetting d

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Dual-Mode CRT Levels (NY Time)
3 stars

Hercules Strategy 1.7 is a price-chart strategy that gates trades with an engulfing-candle option, a lightning tick threshold, and a choice of long, short, or both directions. It can invert signals and stop the next trade from repeating the same side. Sydney,

Strategy v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of Hercules Strategy 1.7

Gann Box 2024 V2

by mikeyhu70
1 stars

This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Box 2024 V2

Median

by TWODS-CAPITAL
37 stars

The Median indicator calculates the median of a selected source series such as the high-low average over a user-defined length and plots it as a red line on the price chart. It draws an EMA of the median as a blue line and fills the space between them, changin

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · MIT GitHub repository of Median

This indicator plots a four-layer Smart Money Concepts framework directly on the price chart. It maps external and internal market structure points (HH, HL, LH, LL), projects structural expectation zones for upcoming swing levels, detects Break of Structure (B

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MIT GitHub repository of SMC Structure & Expectation [WavesUnchained]

This indicator segments recent price bars into defined groups and visual boxes to serve as a visual chart ruler. It includes automated trend detection with configurable angle thresholds to plot uptrend, downtrend, and range segments directly on the price chart

Indicator v6 TrendSupport & resistance
6 stars

Forex Majors 4H Rejection Scanner tracks seven customizable currency pairs on a four-hour timeframe and displays their bias in a table overlay on the main price chart. It checks the last two closed four-hour candles for high or low price rejections, labeling a

Indicator v5 Screeners & dashboardsSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Forex Majors 4H Rejection Scanner
3 stars

Hercules Strategy Rewrite is an automated backtesting strategy that generates entry signals using engulfing candlestick patterns, tick thresholds, and support or resistance level breakouts. It offers multi-layer filtering including moving average trend checks,

Strategy v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of Hercules Strategy Rewrite

All-Time High/Low

by regalouisei
2 stars

This indicator tracks the all-time high and all-time low of the current symbol from daily data. It draws optional green and red horizontal lines across the price chart and can show a table with each extreme’s date, days elapsed, price, percent distance from th

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of All-Time High/Low

Flat Multiplier

by morindok
1 stars

Flat Multiplier is a Fibonacci flat indicator that plots stepped price lines on the chart. It sets a range using start and end timestamps, then extends the price with time and height multipliers based on Fibonacci ratios to calculate new levels. The red line s

Indicator v5 Support & resistanceVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of Flat Multiplier

Gann Box 2024 V2

by mikeyhu70
1 stars

This indicator draws a Gann box on the price chart between the latest swing high and swing low found within a lookback window, with Fibonacci-style percentage levels, labels and optional grid lines. Gann fans, angles and curves can be turned on, and the box ca

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Box 2024 V2

This indicator plots a double-smoothed Supertrend baseline on the price chart, combining a Supertrend midline with WMA and EMA smoothing to show trend direction. Direction uses an ATR-scaled baseline slope with hysteresis, while percentile-ranked slope magnitu

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Smooth Trend Radar [WavesUnchained]

Gold Centered Key Zones

by alboogycOdR
6 stars

This indicator plots horizontal dotted lines at evenly spaced key prices and a translucent rectangle centered on each line. The user sets the first and last level, the spacing between them, and how far each zone extends above and below its line. Drawing runs o

Indicator v5 Support & resistance
Updated 7 months ago · None stated GitHub repository of Gold Centered Key Zones

Calculates and plots Anchored VWAP curves on the price chart based on specific user-selected event timestamps or standard periodic intervals such as daily, weekly, and monthly levels. It features customizable bands around the VWAP lines, configurable using per

Indicator v5 VolumeSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Anchored VWAP Pinch & Handoff, Intervals, and Signals
9 stars

Smooth Trend Radar Strategy calculates a double-smoothed Supertrend baseline using WMA and EMA to identify trend direction and sideway regimes. It plots baseline rejection signals on flips, trend slope filters, and statistical overextension highlights with can

Strategy v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Smooth Trend Radar Strategy

Fractal Mirror Levels

by morindok
1 stars

Fractal Mirror Levels identifies swing highs and swing lows using multi-bar fractal logic and projects mirrored horizontal support and resistance levels across the price chart. Users select two interactive points directly on the chart to establish a reference

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

This strategy identifies pivot-based Darvas Box levels on the price chart and trades re-entries following box sweeps. A long position arms when the price dips below the lower boundary and triggers when it closes back inside, provided the price is above a highe

Strategy v6 Support & resistanceBreakout
Updated 2 months ago · None stated GitHub repository of TN Sovereign Darvas Box v6

Key Levels

by mikeyhu70
1 stars

A Pine Script v5 indicator that draws support and resistance zones on the price chart from recent pivot highs and lows. Zone width is based on ATR times a multiplier, capped by a maximum percentage, and overlapping zones can be aligned and extended to the righ

Indicator v5 Support & resistanceVolatility & bands
Updated 6 months ago · None stated GitHub repository of Key Levels

Value

by ivansoft
1 stars

An indicator in a separate pane that works with traded value, volume times the mid price. It shows single bar values, levels derived from them, values from higher timeframes of one day and one week, cumulative volume over eight, twenty-four and forty-eight bar

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

[RS] Splinter Analysis

by ricardosantos79
261 stars

This indicator calculates rolling extreme price levels across a user-specified lookback length and plots them in a separate indicator pane. It includes custom loop functions to evaluate highest and lowest values alongside their corresponding bar indices, as we

Indicator v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of [RS] Splinter Analysis
3 stars

Calculates and plots key session reference levels directly on the price chart, specifically pre-market high and low alongside prior day high and low. Users can adjust how levels project across historical data, toggle line labels, customize spacing, and show pr

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Hooplah High Low + Table

S_pending_entries

by GammaExpansion
1 stars

S_pending_entries is a strategy that places different types of pending buy and sell orders including limit, stop, and stop-limit orders at specific phases in a 68-bar cycle. It calculates reference price levels around the current close and plots them along wit

Strategy v6 Support & resistanceSessions & time
Updated 7 days ago · MIT GitHub repository of S_pending_entries

Visible Fibonacci

by ivansoft
1 stars

An indicator that draws Fibonacci retracement levels on the price chart for the part of the chart currently in view. It can base the levels on the high and low of the visible range or on zig zag pivots found within it, with a pivot length setting and an option

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

[RS]Donchian Fans

by ricardosantos79
261 stars

This indicator plots Donchian Channel boundary lines along with dynamic fan projections directly on the price chart. It calculates the highest high, lowest low, and median price over a customizable lookback period. Whenever price establishes a new channel high

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of [RS]Donchian Fans
6 stars

This indicator tracks Opening Range Breakout (ORB) levels for selected sessions such as New York, London, or custom hours directly on the price chart. It detects market structure shifts (MSS), fair value gaps (FVG), and order blocks to signal potential trade e

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of ICT ORB Manual Trading Companion
3 stars

This indicator draws horizontal price bands and an anchor close line directly on the price chart. It projects two tiers of upper and lower boundary lines offset from the closing price by user-specified tick amounts. Each tier allows customization of tick dista

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

Average Lines

by regalouisei
2 stars

The Average Lines indicator calculates and plots average values of detected pivot highs and pivot lows directly on the price chart. It allows users to set left and right bar counts for pivot detection, choose which averages to display (pivot highs only, lows o

Indicator v5 Moving averagesSupport & resistance
Updated 8 months ago · None stated GitHub repository of Average Lines

Gann Octagon

by morindok
1 stars

Gann Octagon projects W.D. Gann geometric price spiral levels directly on the main chart starting from a user-selected anchor candle. The script calculates step sizes dynamically using candle height, adaptive ATR, or a user-defined manual value across up to fi

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

DE-tracker

by Allen1212
303 stars

This indicator plots labels on the TradingView price chart to mark ARK Invest's buy and sell trades for the DE stock. Buy transactions appear in green with X1 or X2 multipliers showing the number of ARK ETFs involved on the same day; sells appear in red. The m

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of DE-tracker

[RS]MTF Candle Sticks

by ricardosantos79
261 stars

This indicator overlays up to five higher-timeframe candlestick groups on the price chart. For each enabled timeframe it requests open, high, low, and close and can show up to five candles, offset by a spacing setting. The main inputs set the candle count, the

Indicator v4 Candlestick patternsSupport & resistance Repaints
Updated 4 years ago · None stated GitHub repository of [RS]MTF Candle Sticks
9 stars

This indicator quantifies the risk of a prevailing market structure break by combining trend context, structure, and momentum into a composite 0–100 risk score. It plots an RSI oscillator with momentum divergence lines in a separate pane while projecting key b

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MIT GitHub repository of Structure Break Risk

Trend Line Methods

by eddiebelaval
7 stars

Trend Line Methods draws optional trend geometry on the price chart. The pivot span method stores recent pivot highs and lows using left and right confirmation bars, a pivot count, and a lookback length, then plots a high trend line and a low trend line with a

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Trend Line Methods
3 stars

This indicator draws horizontal price levels and bands anchored to recent price points directly on the main chart. It calculates a central midline along with inner and outer symmetrical boundary lines offset by specified multiples of the instrument's minimum t

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

Average Volume Profile

by regalouisei
2 stars

This indicator draws an Average Volume Profile on the price chart. It calculates the profile based on average volume across the selected timeframe and sensitivity setting. The Point of Control appears in bright blue while the Value Area High and Low display in

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Average Volume Profile
1 stars

This indicator computes a confluence score from Gann angles and Fibonacci retracements anchored to a user base price, step size, swing low and high. It layers in RSI for oversold conditions and Bollinger Bands distance for additional context. The score increme

Indicator v5 Support & resistanceOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Gann Time Machine Signal Engine

Price Alert 2024 V3

by mikeyhu70
1 stars

An overlay that places up to ten percentage price levels above and below the last close, or the current open, and triggers alerts when price crosses them. Levels can be drawn as plots or price lines, colored by position relative to price, dimmed or hidden once

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Price Alert 2024 V3

This indicator identifies support and resistance levels on the price chart using an integrated detector engine. It combines pivot clusters, multiple price tests, supply and demand bases, order blocks, fair value gaps, and equal high or low liquidity. Detected

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Support & Resistance Zones [WavesUnchained]
3 stars

This indicator plots horizontal line bands on the price chart using lower timeframe data. It requests 1-minute high, low, and close values from security to calculate anchor points. Horizontal lines are drawn at specific levels with options for multiple lines i

Indicator v5 Support & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands
1 stars

The script detects pivot highs and lows on the price chart using user-defined left and right bars. It projects future price paths with the golden ratio and calculates intersection points between paths. These intersections are stored in an array for geometric b

Strategy v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Geometric Path Backtest with BG
1 stars

This indicator uses the Goertzel algorithm to find a dominant cycle, then projects it as a sine wave to estimate future prices and dates. It also scans past bars for a similar pattern of set length within a lookback window. Results appear in a dashboard table

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

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