Pine Library · 3,142 open-source scripts

Free Support and Resistance Pine Scripts (page 16)

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

AG DETECTOR

by Anderson-ALGO
9 stars

AG Detector is an overlay indicator that calculates multi-timeframe pivot levels and projects them onto the price chart. It supports multiple pivot calculation formulas including Traditional, Camarilla, Fibonacci, and Standard Deviation based on user-selected

Indicator v4 Support & resistance Repaints
Updated 5 years ago · None stated GitHub repository of AG DETECTOR

Engulf 1v1 + 2v2

by chargersfan47
7 stars

This Pine Script indicator detects and plots 1v1 and 2v2 engulfment candlestick patterns on the price chart. It identifies bullish and bearish engulfment patterns based on candle open, high, low, and close values, checking conditions where a candle engulfs pre

Indicator v6 Candlestick patternsSupport & resistance
Updated 5 months ago · None stated GitHub repository of Engulf 1v1 + 2v2

CRT State Engine

by alboogycOdR
6 stars

This overlay indicator tracks an institutional CRT state machine on the price chart. It detects draw-on-liquidity bias from swing pivots, watches 1AM, 5AM and 9AM CRT models, and marks session states for CBDR, Asia, London, London lunch and the New York open.

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine

This indicator calculates daily 90-period Bollinger Bands and plots them directly on a lower timeframe chart, such as M15. It queries higher-timeframe daily data using request.security and updates the upper, middle, and lower band values at the start of each n

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 1 year ago · MIT GitHub repository of D1 Bollinger Bands (Period 90) on M15 (Forward Shifted)
5 stars

This strategy tracks pivot-constrained structural boundaries and executes breakout and retest trades directly on the price chart. It fits robust trendline boundaries using pivot points, evaluates structural quality via a Q-Score metric, and filters entries thr

Strategy v6 BreakoutSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of RG Structure Trading v4.0

日内关键价位

by forecho
5 stars

This indicator calculates and plots key intraday session levels directly on the price chart. It tracks the regular trading hours (RTH) open, previous day close, previous day high, and previous day low, along with the high and low ranges for both the Asian and

Indicator v6 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of 日内关键价位
5 stars

This strategy trades long when an M15 bar's low comes within a tolerance of the prior week's low and the bar closes above that level. It places a fixed point stop below entry and a take-profit at a chosen R-multiple of that stop. Entries are limited to a UTC s

Strategy v5 Support & resistanceSessions & time
Updated 5 months ago · MIT GitHub repository of WKL v2 — Prior Week Low Retest (Locked Spec)
5 stars

Calculates daily classical pivot points from the previous day's high, low, and close to identify intraday reversal setups within a defined trading session. Long signals fire when price comes within a configurable tick proximity to S1 and prints a bullish recla

Indicator v5 Support & resistanceMean reversion
Updated 5 months ago · Custom licence GitHub repository of Path C — Pivot-Point Bounce (Demo)

Scalping PullBack Tool R1.1

by Ahmed-GoCode
5 stars

This indicator plots a Price Action Channel (PAC) based on high, low, and close moving averages alongside fast, medium, and slow trend EMAs directly on the price chart. It detects regular and Bill Williams fractals to track market structure and identifies pull

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Scalping PullBack Tool R1.1

ATR Based Stoploss

by rubystar0512
5 stars

ATR Based Stoploss is an overlay indicator that calculates dynamic stop loss and take profit bands around a central simple moving average. It uses standard Average True Range or an ATR Surge Average derived from volatility spikes to offset profit and loss boun

Indicator v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of ATR Based Stoploss

[CP]Pivot Boss Floor Pivots

by pranjalchaubey
5 stars

This indicator draws floor pivots and the central pivot range on the price chart. A timeframe input sets the pivot period from one hour through twelve months, and toggles control labels and next-period levels. When dynamic levels are on, an ATR threshold decid

Indicator v4 Support & resistanceMoving averages
Updated 3 years ago · None stated GitHub repository of [CP]Pivot Boss Floor Pivots
4 stars

An all-in-one chart indicator combining Smart Money Concepts (SMC) and technical level analysis. It identifies Order Blocks, market structure shifts like CHoCH and BOS, KOLA support and resistance levels, SIDO chart patterns, and Fibonacci Optimal Trade Entry

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO Full Integration
4 stars

Calculates and renders Time Price Opportunity (TPO) market profiles, Initial Balance (IB) ranges, and value distributions directly on the price chart. It determines key auction levels including the Point of Control (POC), Value Area High (VAH), Value Area Low

Indicator v6 Support & resistanceSessions & time
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Profile

ATR Levels

by trugurpala
4 stars

This indicator calculates the Average True Range and a Simple Moving Average of closing prices. It plots a central basis line along with dynamic support and resistance levels derived from multiples of the ATR. The main settings control the ATR length and the m

Indicator v6 Support & resistanceVolatility & bands
Updated 2 months ago · MIT GitHub repository of ATR Levels

Liquidity Magnet

by VolodymyrFilias
4 stars

Liquidity Magnet scores active liquidity pools on the price chart and highlights the pool most likely to be reached. It detects swing highs, swing lows, and equal high or low clusters, then ranks them using strength, proximity, age decay, and momentum bias. Eq

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Liquidity Magnet

Calculates top and bottom reversal signals for oscillator indicators based on dynamic cycle detection, overbought and oversold thresholds, and price confirmation. It tracks indicator cycles using centerline crossovers, verifies overbought or oversold condition

Indicator v6 Oscillators & momentumSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of Universal High-Low Detection Example

Butterfly Pattern

by fox-buddy
4 stars

Butterfly Pattern plots a simple zigzag on the price chart. It treats a bar as up or down from the close versus the open, then records a turn when that direction reverses. On a downward turn it uses the highest price of the last two bars, and on an upward turn

Indicator v4 Support & resistance Repaints
Updated 2 years ago · None stated GitHub repository of Butterfly Pattern

ATCA-HO

by Kalumur
4 stars

ATCA-HO is an overlay indicator that plots six Exponential Moving Averages alongside a Simple Moving Average on the price chart. It generates visual buy and sell shape labels whenever the fastest 5-period EMA crosses above or below the 22-period EMA. Additiona

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of ATCA-HO

Combines multiple analytical tools onto a single price chart overlay to consolidate screen space. It plots three customizable exponential moving averages, three-bar imbalance and opening gap boxes, a horizontal volume profile with point of control, and smart m

Indicator v5 SMC / ICT / price actionMoving averages Repaints

ATR Pip Control

by ricksimpsontrading
3 stars

ATR Pip Control is a volatility indicator that computes the Average True Range over a user-specified period and plots adaptive upper and lower bands around price using coefficients for band width. It applies a minimum filter size in ticks or pips to validate s

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 10 days ago · None stated GitHub repository of ATR Pip Control

Oscillator Scaffold

by jpantsjoha
3 stars

The Oscillator Scaffold calculates an RSI value using the selected source and bar length. It plots the oscillator in a separate pane along with horizontal lines for overbought and oversold levels. The script fills the region between those levels and draws cond

Indicator v6 Oscillators & momentumSupport & resistance
Updated 4 weeks ago · Custom licence GitHub repository of Oscillator Scaffold

Mc War v2

by tuanmcwar
3 stars

Calculates and plots Smart Money Concepts market structure elements directly on the main price chart. It highlights bullish and bearish market structure breaks, including Change of Character and Break of Structure, alongside swing points and strong or weak lev

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Mc War v2

% Chg Lines

by g-moe
3 stars

This indicator plots the previous daily close and five pairs of price levels set a chosen percentage above and below that close. It draws the previous close and each offset as cross-style plots on the price chart, fills the span to the outermost upper and lowe

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of % Chg Lines

Value Zones

by LucasRibeiroCaetano
3 stars

Value Zones plots a 200-week simple moving average that is further smoothed with a 20-period exponential moving average, then draws fixed multiples of that average on the price chart. Zones are filled and labeled from the average itself through one-and-a-half,

Indicator v6 Moving averagesSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Value Zones

This indicator plots the high, midpoint, and low of the previous day, week, and month as lines on the price chart. Daily levels appear on intraday charts, weekly levels on intraday or daily charts, and monthly levels on charts that are not monthly. Users can t

Indicator v6 Support & resistanceMoving averages Repaints
Updated 12 months ago · None stated GitHub repository of High/Mid/Low of the Previous Month, Week and Day + MA
3 stars

BTMM Comprehensive Risk Management is an overlay indicator that calculates position sizing, stop loss levels, and multiple take profit targets based on the Beat The Market Maker methodology. It supports various stop loss methods including ATR, EMA, Asian Range

Indicator v5 Support & resistanceScreeners & dashboards

Sapphire FiboBands Strategy

by sapphire-edge
3 stars

This strategy plots Fibonacci Bollinger Bands on the price chart. It generates buy and sell signals based on selected Fibonacci ratios (1.618, 2.618, or 4.236) combined with Bollinger Band calculations using a configurable source and length. Trades enter on ma

Strategy v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Sapphire FiboBands Strategy
3 stars

Greeffer's Hedge Mode Study is an indicator that plots multiple EMAs along with Donchian channels directly on the price chart. It calculates EMAs from 8, 17 and 72 periods using higher timeframe data from 240 minutes. The script monitors price action against t

Indicator v5 Moving averagesSupport & resistance
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Hedge Mode Study

HPI

by blackcat1402
3 stars

HPI marks a bar on the price chart when its open is the highest open over a configurable lookback and the bar is red, meaning the open is above the close. It plots a small red label reading HPI above that bar. The only setting, HPI Recent Bar, sets how many ba

Indicator v4 Candlestick patternsSupport & resistance Repaints
Updated 5 years ago · MIT GitHub repository of HPI

Sukepoyo Sub

by Pesci1134
2 stars

This indicator plots two ZigZag lines and five EMAs on the price chart. ZigZag 1 uses depth 12, deviation 5 and backstep 3 for the main trend. ZigZag 2 uses depth 5, deviation 3 and backstep 2 for the fast trend. Five EMAs with lengths 20, 30, 40, 75 and 200 a

Indicator v6 Moving averagesTrend
Updated 2 weeks ago · None stated GitHub repository of Sukepoyo Sub

Key Levels MP

by midngtpickle
2 stars

Key Levels MP draws session and higher-timeframe reference prices on the price chart. It plots the Asia session high, low, and midpoint, the Monday range high, low, and open, the daily open, previous-day high, low, and midpoint, and current-week high, low, and

Indicator v6 Support & resistanceSessions & time
Updated 4 weeks ago · Custom licence GitHub repository of Key Levels MP

Forex Trading Strategy

by AmjadSaidam
2 stars

Forex Trading Strategy is an overlay indicator designed for multi-timeframe session analysis on forex markets. It calculates open, high, and low values across 1-hour, 4-hour, and 8-hour timeframes to identify key session ranges. The script filters valid candle

Indicator v6 Support & resistanceSessions & time
Updated 5 weeks ago · MIT GitHub repository of Forex Trading Strategy

Algo

by TamTH-Dev
2 stars

Algo is an overlay indicator that combines Deviation Scaled Moving Averages (DSMA), multi-layer Ripster exponential moving average clouds, and ATR-based trading levels on the price chart. It calculates adaptive DSMA lines alongside five configurable EMA pairs

Indicator v6 Moving averagesTrend Repaints
Updated 6 weeks ago · None stated GitHub repository of Algo
2 stars

Qtus SMC-Sniper System v2 is a comprehensive chart overlay indicator combining Smart Money Concepts (SMC), ICT elements, price action, and momentum filters. It identifies and plots Fair Value Gaps (FVG), Order Blocks, Breaker Blocks, Liquidity Zones, and Marke

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper System v2

FVG Zones with Signals

by alvinng214
2 stars

The FVG Zones with Signals indicator detects Fair Value Gaps on the price chart by comparing high-low ranges against average candle body size over a user-defined length. It plots bull and bear FVG zones as semi-transparent colored boxes with border styles and

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of FVG Zones with Signals
2 stars

This indicator identifies and visualizes potential liquidity pools based on Smart Money Concepts (SMC). It scans past price action within a configurable lookback window to detect equal highs and equal lows using an ATR-based tolerance threshold. When equal pea

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

SMC Toolkit detects core Smart Money Concepts on the price chart, including market structure breaks (BoS and CHoCH), Order Blocks, Fair Value Gaps (FVGs), and liquidity levels such as equal highs and lows. Active zones project forward and freeze or stop extend

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of SMC Toolkit [btankutt]

VP Low-TF LVN Levels

by teaceo-debug
2 stars

This indicator calculates volume profile distributions using lower timeframe security data to identify and draw Low Volume Nodes (LVNs) directly on the price chart. Users can adjust the volume profile timeframe, lower timeframe resolution, row count, and LVN s

Indicator v6 VolumeSupport & resistance
Updated 4 months ago · None stated GitHub repository of VP Low-TF LVN Levels
2 stars

This indicator builds a wick-based liquidity profile from a selectable lower timeframe and draws bullish and bearish levels on the price chart. It highlights bars when volume RSI is high and the wick exceeds a multiple of the average wick. Optional overlays ma

Indicator v6 SMC / ICT / price actionVolume
Updated 5 months ago · None stated GitHub repository of Zero Lag Liquidity [AlgoAlpha]

LTP Levels v1

by mhs54
2 stars

LTP Levels v1 plots key day-trading support and resistance boundaries directly on the price chart. It projects pre-market high and low levels from recent trading sessions alongside buffer zones and automatically calculated target levels extracted from historic

Indicator v6 Support & resistanceSessions & time Repaints
Updated 6 months ago · None stated GitHub repository of LTP Levels v1
2 stars

Ghost Zone v9 GTI Signals v18 is an overlay technical indicator designed to replicate Ghost Trade Pro methodology. It calculates anchored Supertrend channels, previous weekly close levels, fair value gaps, and volume profile high-volume nodes. The script evalu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 GTI Signals v18

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