Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 57)

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

Pivot Points High Low

by TWODS-CAPITAL
37 stars

Pivot Points High Low calculates and plots swing highs and swing lows directly on the price chart. It uses left and right bar offset lengths to confirm local price extremes using built-in pivot functions. When a pivot high or low is detected, a text label disp

Indicator v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Pivot Points High Low

Vein Structure & Zones 4H combines market structure event detection with automated support and resistance zone mapping directly on the price chart. It calculates micro and major swing pivots, break of structure (BOS), equal highs and lows, and Wyckoff heuristi

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Vein: Structure & Zones 4H [WavesUnchained]
7 stars

This script combines Smart Money Concepts including Break of Structure, Optimal Trade Entry Fibonacci levels, Fair Value Gaps, and Order Blocks to identify setup entries on the price chart. It tracks 15-minute higher timeframe structure, restricts trades to th

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of 15m BOS + OTE + FVG + OB (Prop Firm)

MSG Enhanced LEGO System

by alboogycOdR
6 stars

The MSG Enhanced LEGO System plots customizable time-based market structure gap ranges and trading sessions as colored boxes on the price chart. Users can configure independent session intervals, such as New York, London, and Asia, along with options to displa

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System
1 stars

An overlay indicator that tracks swing highs and lows with pivots on the chart timeframe and on a one-hour context, which it reads from a Heikin Ashi version of the symbol. It labels the trend direction on each, reports when the two agree as bullish or bearish

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Tn Sovereign MTF Swing
106 stars

This Pine Script strategy computes buying selling volume (BV/SV) and normalized pressure volumes (BPN/SPN) in a custom timeframe. It plots a column chart of the combined metric minus in a separate pane and draws Bollinger Bands on the source for volatility ana

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Buying Selling Volume Strategy

Last Bar Close 3

by be-thomas
65 stars

This indicator plots the last bar close price in a label drawn on the price chart. The label text shows the close value and is colored green if close is greater than or equal to open, otherwise red. The label updates every bar with the current close price and

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Last Bar Close 3

Pivot Points Standard

by TWODS-CAPITAL
37 stars

This indicator draws a central pivot and up to five support and resistance levels on the price chart. It offers Traditional, Fibonacci, Woodie, Classic, DM, and Camarilla calculation types. The user selects a pivot timeframe from automatic through multi-year p

Indicator v5 Support & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Pivot Points Standard

MSG Enhanced LEGO System

by alboogycOdR
6 stars

MSG Enhanced LEGO System is a session mapping indicator that overlays configurable time ranges and market sessions directly on the price chart. It tracks independent session ranges, including major trading periods such as New York, London, and Asia. The indica

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System

Level Theory

by g-moe
3 stars

This indicator draws extended horizontal lines on the price chart based on psychological rounding levels. It plots whole-number, half, and quarter increments of a configurable rounding value above and below a baseline price. Lines extend across the chart for s

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Level Theory

This indicator tilts a simple moving average by the slope between two user-chosen price and time points and plots that average, its inverse, and a horizontal midpoint. It also mirrors the average around the midpoint and draws reconstructed candles reflected th

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Interactive Two Points MA Symmetry

CC-Trend strategy 2

by hasnocool
106 stars

This strategy draws exponential moving averages and automatic Fibonacci retracement levels on the price chart. It opens a short when the previous close is below the upper Fibonacci extreme and the 21-period average is below the 55-period average. It closes the

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of CC-Trend strategy 2

Linear Regression

by be-thomas
65 stars

This indicator calculates a linear regression trend channel and Pearson's R correlation coefficient directly on the price chart. Using Pine Script line drawings, it plots a central regression baseline along with configurable upper and lower deviation bands bas

Indicator v4 TrendSupport & resistance Repaints
Updated 6 days ago · GPL-3.0 GitHub repository of Linear Regression

Price Channel Strategy

by TWODS-CAPITAL
37 stars

This strategy builds a price channel from the highest high and the lowest low over a user-set lookback. Once enough bars exist, it places a long stop order at the channel high and a short stop order at the channel low. The only setting changes the channel leng

Strategy v5 BreakoutSupport & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Price Channel Strategy
9 stars

Volume Strata [WavesUnchained] is a fixed-range volume profile indicator that anchors to the right side of the price chart. It calculates volume or money flow distribution over a configurable lookback period to highlight the Point of Control (POC), Value Area

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · MIT GitHub repository of Volume Strata [WavesUnchained]
6 stars

This overlay strategy builds independent timed session ranges and marks range, trendline, mean, VWAP, and high-low levels when those displays are enabled. It enters on range breakouts and exits with strategy exits, choosing among range, ATR, fixed-point, and r

Strategy v5 Sessions & timeBreakout
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System Strategy

This overlay indicator draws rounded psychological price levels and optional PVSRA vector candle colors on the price chart. It plots quarter, half, and whole levels from a user-set rounding value, with separate color, line style, and width for each. Vector col

Indicator v5 Support & resistanceVolume
Updated 5 months ago · None stated GitHub repository of Level Theory + Vector Candles
2 stars

Everything Bitcoin [Kioseff Trading] is an overlay indicator that gathers on-chain Bitcoin network metrics and lower timeframe market data. It requests BCHAIN datasets via Quandl—including hash rate, mining difficulty, transaction volume, miner revenue, and wa

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Everything Bitcoin [Kioseff Trading]

VolumeSpike

by ivansoft
1 stars

An indicator on the price chart that requests pivot lows and pivot highs from the one-hour timeframe and plots them as circles on the chart. For each new pivot it draws a dashed horizontal line back to the bar where the pivot formed. Despite the name it does n

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of VolumeSpike

Lows from New Highs

by be-thomas
65 stars

This indicator tracks bar lows during consecutive rising highs using Pine Script arrays. When at least four lows accumulate or the price breaches the minimum low in the stack, the script sorts the recorded lows in ascending order and flushes them. It plots up

Indicator v4 Support & resistanceBreakout
Updated 6 days ago · GPL-3.0 GitHub repository of Lows from New Highs
6 stars

This indicator identifies and plots custom time-based ranges on the price chart using GMT hours, monitoring for price breakouts within a configurable time window. When price breaks beyond the high or low of the range before expiration, it displays directional

Indicator v5 BreakoutSessions & time
Updated 7 months ago · None stated GitHub repository of MSG Enhanced Range Breakout System

Exploring Unicode

by regalouisei
2 stars

Exploring Unicode is a Pine Script v5 indicator that demonstrates Unicode character support on the price chart. It labels high and low pivots with blocks of special symbols and emojis using the label.new function. The script also applies plotchar to mark bars

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Exploring Unicode

Wave Navigator is a price-chart indicator that builds zigzag swings from ATR or percentage thresholds and scans stored pivots for Elliott-style impulse, diagonal, flat and triangle patterns. It scores candidates with optional Fibonacci, time-ratio, RSI or MACD

Indicator v6 Support & resistanceOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Wave Navigator [WavesUnchained]

MSNR

by alboogycOdR
6 stars

This indicator identifies and plots key support and resistance structures directly on the price chart. It calculates A/V swing levels, price gaps, and Quasimodo levels using configurable pivot lengths and touch tolerances. Users can customize maximum level cou

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR

Extreme Trend Reversal Points identifies potential trend reversal zones directly on the price chart using moving averages and historical range percentiles. The indicator calculates price extremes relative to historical percentile history to detect overextended

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Extreme Trend Reversal Points [HeWhoMustNotBeNamed]

Test 012 ZZ

by ricardosantos79
261 stars

This experimental script detects high and low pivot points to establish a basic ZigZag structure. It plots red and lime circles on the chart to highlight detected high and low pivots, along with a gray line tracking the ZigZag trajectory based on bar index off

Indicator v4 Support & resistance Repaints
Updated 4 years ago · None stated GitHub repository of Test 012 ZZ
106 stars

This Pine Script strategy uses the Commodity Channel Index (CCI) with a 20-period SMA to generate long-only signals. It plots the CCI line and dashed bands at 150 and -150 on the chart, filling the area between bands. Entries occur when CCI crosses above the l

Strategy v5 Oscillators & momentumSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of CCI High Performance Long Only

MSNR [Optimized]

by alboogycOdR
6 stars

The MSNR Optimized indicator identifies key market structure support and resistance levels directly on the price chart, including Apex/Valley (A/V) swings, price gaps, and Quasimodo (QM) patterns. It uses configurable pivot lengths to detect structural pivots

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR [Optimized]
3 stars

Lin Reg Simplified calculates a custom linear regression channel overlaid on the main price chart. It uses a combination of weighted moving average (WMA) and simple moving average (SMA) applied to HLC3 prices to compute the trend slope, middle line, and standa

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Lin Reg Simplified
1 stars

This strategy tests pending stop order modification behavior in the Pine Script engine. It enters long or short positions using stop orders triggered at specific times of the trading day. An initial stop order is submitted, then modified on a later bar if no p

Strategy v6 Support & resistanceSessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 62 - stop cross before modify
7 stars

This indicator plots Smart Money Concepts and price action components directly on the price chart. It highlights bullish and bearish order blocks, multi-timeframe pivot points, market structure swings with key Fibonacci retracement levels (0.618 and 0.786), zo

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Cryptokazancev Strategy Pack

MSNR [OPTIMIZED]AI

by alboogycOdR
6 stars

This indicator detects and draws support and resistance structure levels directly on the price chart. It identifies Apex/Vortex (A/V) pivot levels, price gap levels, and Quasimodo (QM) pattern levels, tracking whether each level is fresh or previously tested.

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR [OPTIMIZED]AI
3 stars

This indicator calculates and plots a linear regression line alongside upper and lower deviation bands directly on the price chart. It determines linear regression slope and channel width using weighted and simple moving average formulas across a user-specifie

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Linear Regression

Test 014 Array Functions

by ricardosantos79
261 stars

This script is a technical demonstration of custom array manipulation functions in Pine Script v4. It identifies pivot highs and pivot lows and dynamically manages their values and corresponding bar indices inside fixed-size float and integer arrays. It also d

Indicator v4 Support & resistance
Updated 4 years ago · None stated GitHub repository of Test 014 Array Functions
6 stars

MSNR Ultimate detects and plots horizontal support and resistance structures directly on the price chart. It combines swing apex and valley (A/V) pivot levels, gap detection, and Qualified Move (QM) levels. Users can filter levels to display only fresh, unmiti

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of MSNR Ultimate [KingdomFinancier]
1 stars

A session-based swing structure indicator drawn on the price chart. For three configurable sessions, by default Asian, London and New York, it finds the highest and lowest pivots and labels them HH or LH and HL or LL. It then draws one Fibonacci or standard-de

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of Session 2 Swings HH HL LL LH + SD v3
6 stars

NY SMC Suite Multi-Killzone is a Smart Money Concepts indicator that plots session killzones and structural supply and demand zones directly on the price chart. It identifies Order Blocks, Fair Value Gaps, Change in State of Delivery levels, and wick rejection

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone

This indicator plots linear regression bands on the price chart for multiple timeframes. It calculates regression lines with standard deviation bands for up to three timeframes, each configurable with length, deviation, color, width, and background transparenc

Indicator v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Linear Regression MTF + Bands

KC Combo SR EXT v1.0

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. This extens

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR EXT v1.0

Rakesh Level

by mikeyhu70
1 stars

A Pine Script v4 indicator, credited to LonesomeTheBlue, that draws a set of manually entered horizontal levels on the price chart, ten above and ten below, labelled as seller and buyer levels. The default prices are fixed numbers for ES or NQ futures, chosen

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of Rakesh Level
6 stars

Plots smart money concepts and session visuals directly on the price chart. It highlights trading killzones with session boxes, draws trend lines, and marks upper or lower wick rejections. Additionally, it identifies Order Blocks (OB), Fair Value Gaps (FVG), C

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone

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