Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 12)

Scripts written for Pine Script version 6, the current version of TradingView's language. They paste into the Pine Editor and run as they are.

Pine scripts4,367
Code shown here2,412open licence
Updated in a year4,021
No repaint flag3,857

Pine Script v6: Indicators, Strategies and Libraries

Strategy Template

by rubenterlouw
1 stars

A blank strategy template where the author's own entry conditions are meant to be added, with risk controls already coded. These include streak loss control that pauses trading for a timeframe after consecutive losses, a maximum drawdown halt, long and short s

Strategy v6
Updated 6 months ago · None stated GitHub repository of Strategy Template

TR 10 [Vaibhav]

by DeveloperVaibhav1
1 stars

TR 10 [Vaibhav] is an overlay indicator that plots buy and sell signals on the price chart. It calculates signals using multiple EMA periods for trend direction, RSI for momentum, and a confluence score combining these factors. Signals are generated when condi

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of TR 10 [Vaibhav]

Algo1.0

by dtheran1
1 stars

A combined overlay with two modules for the price chart. The ATR Trend module draws a trend line from an ATR-based band, with ten choices of smoothing type, an optional fast trend, a smoothed range channel and buy and sell markers when the trend flips. The sec

Indicator v6 TrendSMC / ICT / price action Repaints
Updated 6 months ago · None stated GitHub repository of Algo1.0
1 stars

An overlay indicator that finds liquidity pools from repeated swing touches and signals when price sweeps one. Signals can require a displacement candle sized by ATR, a trend bias from a higher-timeframe moving average, active London, New York or Asia sessions

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Liquidity Model [Prop Firm]
1 stars

A Pine Script v6 indicator that draws bullish and bearish order block zones on the price chart with volume information in each zone. Swing length, maximum ATR multiplier, zone count, zone combining and invalidation method set how zones form and expire. A lower

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Volumized Order Blocks MTF 2026-2
1 stars

Plots a channel-based oscillator in a separate pane, in the style of the WaveTrend family, using a channel length, an average length and a short smoothing length. It adds a percentage line over a chosen interval and circle markers when the oscillator reaches c

Indicator v6 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Bull4Life Hunters Indicator

NVPOC Matrix

by h33rnan
1 stars

A Pine v6 indicator that finds naked volume points of control, the price with the most volume in a session that later price has not retested. It builds a volume profile from lower-timeframe candles using a chosen number of price bins, counts only regular tradi

Indicator v6 VolumeSupport & resistance
Updated 6 months ago · AGPL-3.0 GitHub repository of NVPOC Matrix

Range STR v3 IMBA v3

by martyn-ukrainian-trading-plan
1 stars

The SMC Range STR v3 IMBA v3 indicator detects swing ranges on multi-timeframe charts. It plots range boxes, support and resistance lines, and swing dots on the price chart. Users can configure the grace period, retracement percentage, swing timeframe, break m

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Range STR v3 IMBA v3
1 stars

The Adaptive Liquidity Matrix indicator calculates and plots a synthetic liquidity matrix on the price chart. It anchors to the highest volume candle on a selected macro timeframe, reads its polarity to set support or resistance levels, and expands the matrix

Indicator v6 Volatility & bandsSupport & resistance
Updated 6 months ago · AGPL-3.0 GitHub repository of Adaptive Liquidity Matrix

Ghost Engine

by h33rnan
1 stars

Ghost Engine is an overlay indicator that tracks the Asian session range, London and New York killzones, and the New York midnight open. It prints a trap tag when price sweeps an Asian high or low and then closes back inside the range. It maps break of structu

Indicator v6 SMC / ICT / price actionSessions & time
Updated 6 months ago · MIT GitHub repository of Ghost Engine
1 stars

A Pine v6 indicator that finds swing-based liquidity zones on the price chart and classifies them by age, volume and rejection strength as weak, maturing or wall zones. Zones carry an age label, and sweeps of a wick are shown and removed once price crosses bac

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Liquidity Matrix EVO
1 stars

Surgical Deep Engine PRO is an overlay indicator that marks bullish and bearish order-block boxes from a two-candle displacement pattern, optionally only when volume exceeds the 20-period average by 20 percent. It extends those zones and, according to its docu

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · MIT GitHub repository of Surgical Deep Engine PRO

This indicator calculates Kaufman's Efficiency Ratio normalized by an ATR ratio to create a dynamic volatility-adjusted threshold. It classifies market states into uptrend, downtrend, choppy, or consolidation regimes and colors price chart bars accordingly. It

Indicator v6 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of Adaptive Regime Filter + Divergence (AER-VN) [KEYALGOS]
1 stars

This indicator visualizes Smart Money Concepts and Inner Circle Trader framework elements directly on the price chart. It detects bullish and bearish Fair Value Gaps with real-time mitigation tracking, marks Optimal Trade Entry retracement zones between 62% an

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MPL-2.0 GitHub repository of ICT Surgical Engine PRO

ICI Confluence MTF

by Devtest-Dan
1 stars

ICI Confluence MTF is an overlay indicator that combines several analysis layers across timeframes into a confluence table. It works with two timeframe sets, H4, H1 and M15 or H1, M15 and M5, and can require an A-B-C Wyckoff style first layer. Swing pivots, a

Indicator v6 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of ICI Confluence MTF
1 stars

An indicator that looks for smart money technique divergences between the chart symbol and up to two correlated symbols, by default two US equity index futures. It uses a zigzag pivot engine from an imported library to find swings, then draws link lines and la

Indicator v6 SMC / ICT / price actionDivergence Repaints
Updated 6 months ago · None stated GitHub repository of Cracks in Correlation (SMT)

ADX Backtest

by AlanGuo
1 stars

A long-only strategy that uses the Average Directional Index to time entries, with a moving average trend filter. It buys when ADX crosses above a threshold, optionally requiring the plus DI to lead, while price is above a 60-period SMA, EMA or RMA, or when pr

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of ADX Backtest

Advanced Doji Detector

by gabriel-klettur
1 stars

Advanced Doji Detector is an overlay indicator that identifies and categorizes five distinct types of Doji candlestick patterns: Standard, Gravestone, Dragonfly, Long-Legged, and Four-Price Doji. It calculates body size relative to total candle range and evalu

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Advanced Doji Detector
1 stars

This indicator overlays horizontal lines on the price chart for the high and low of the previous day, week and month, plus the mid-range of the previous day. It also plots the open price at midnight in the selected timezone (New York by default) or a custom ho

Indicator v6 Support & resistance Repaints
Updated 7 months ago · None stated GitHub repository of JCO Previous DWM + Midnight NY

NQ SSR Indicator

by CathalF
1 stars

The NQ SSR Indicator plots SMC elements on the price chart, including key levels (PDH/PDL/ONH/ONL/VWAP), session zones, sweep markers, BOS lines & arrows, FVG boxes, OB boxes, signal arrows, HTF bias panel, and SSR panel. Toggle inputs control visibility of ea

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of NQ SSR Indicator
1 stars

This indicator calculates volume anomaly metrics using rolling z-scores of window volume, trend cleanliness from directional price consistency, and relative price impact. It plots these in a separate pane alongside signals: yellow dots for volume building with

Indicator v6 VolumeVolatility & bands
Updated 7 months ago · None stated GitHub repository of Volume Flow Anomaly AnomIQ Preview

Novacron Test Dashboard

by TehbynDFRNT
1 stars

A small test overlay that plots a fast and a slow EMA on the price chart, marks bullish and bearish EMA crossovers with triangles, and flags volume spikes with small circles. A table in the top right corner shows the current trend, RSI, ATR, volume compared wi

Indicator v6 Moving averagesScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Novacron Test Dashboard
1 stars

The aggressive preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected in

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Aggressive

Wirezard Wave Rider

by udhansingh
1 stars

An overlay that combines ADX, RSI, an impulse MACD, VIDYA and volume to draw buy and sell markers, swing pivot labels, divergence markers and Fibonacci levels. A multi-timeframe score uses three higher timeframes, automatic at two, four and eight times the cha

Indicator v6 TrendOscillators & momentum
Updated 7 months ago · MIT GitHub repository of Wirezard Wave Rider

VWAP Professional

by Blendoxius
1 stars

An indicator that plots volume-weighted average price lines anchored to daily, weekly and monthly periods, plus an optional rolling VWAP over a set number of bars. Earlier sessions can be kept as frozen historical lines, with limits on how many are stored, and

Indicator v6 VolumeSupport & resistance
Updated 7 months ago · None stated GitHub repository of VWAP Professional

Blackflag FTS

by ymlee1104
1 stars

Blackflag FTS is an overlay trend-following indicator that calculates dynamic trailing stop levels using an ATR-based volatility filter and Wilder's moving average. It features both modified and standard true range calculations to limit extreme volatility spik

Indicator v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Blackflag FTS
1 stars

An indicator for the price chart that classifies the market regime from a daily EMA slope and price position, plus a four-hour ATR percentile rank for volatility. Based on the combination, it shades the chart background to show which of two companion strategie

Indicator v6 TrendVolatility & bands
Updated 7 months ago · None stated GitHub repository of Strategy Rotation (Regime-Based)

Breaker Blocks v6

by nexobanks-prep
1 stars

A Pine v6 rewrite of the breaker blocks indicator using user-defined types and methods. It finds pivot swing highs and lows, detects a break of structure, marks the last opposing candle as an order block, and turns it into a bullish or bearish breaker block wh

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Breaker Blocks v6
1 stars

A utility overlay that places a text watermark on the chart in a single-cell table. Up to four lines can each show the ticker, exchange, timeframe, a live candle countdown timer or custom text, or stay empty. Settings choose the text size, colour and vertical

Indicator v6 Screeners & dashboards
Updated 7 months ago · None stated GitHub repository of Top Right Watermark
1 stars

This indicator screens daily price charts to identify potential parabolic snapback short and washout bounce long setups. It calculates price extension using moving averages, percentage gain lookbacks, and optional Bollinger Bands filters. Long signals require

Indicator v6 Mean reversionVolume
Updated 7 months ago · None stated GitHub repository of Parabolic Snapback & Washout
1 stars

This indicator plots a McClellan-style market breadth oscillator in a separate pane. It measures the gap between a fast and a slow exponential moving average of net advancing versus declining issues for NYSE or NASDAQ, or for custom tickers. A ratio-adjusted m

Indicator v6 Oscillators & momentum
Updated 7 months ago · None stated GitHub repository of Asymmetric McClellan Oscillator
1 stars

This strategy identifies the Initial Balance (IB) high and low during a user-defined opening session and trades breakout pullbacks. Once the IB window concludes and range filters are satisfied, it enters long or short when price breaks out and retraces back to

Strategy v6 BreakoutSessions & time
Updated 7 months ago · MIT GitHub repository of Gold IB Breakout Retracement

ICT 2022 Pure Mentorship

by cKm-IceCold
1 stars

A strategy that models an ICT-style sequence: it detects a liquidity sweep of a one-hour swing level, then waits for a market structure shift on the chart timeframe confirmed by a large displacement candle. Signals are limited to configurable London, New York

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 8 months ago · None stated GitHub repository of ICT 2022 Pure Mentorship
1 stars

Adaptive Regime Decoder estimates price velocity with a seven-point Savitzky-Golay style filter and plots it as a histogram and line in a separate pane. It also computes Shannon entropy of recent velocity values and compares it with a rolling percentile thresh

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Adaptive Regime Decoder

Session Highlighter

by Timonkru
1 stars

The Session Highlighter indicator draws colored boxes over Asia, London, and New York trading sessions directly on the price chart. It calculates the session high and low price bounds based on custom session hours and timezone configurations. Upon session comp

Indicator v6 Sessions & timeSupport & resistance
Updated 8 months ago · MIT GitHub repository of Session Highlighter
1 stars

A template file of simple Pine strategy examples, led by an EMA crossover that goes long when a 10-bar EMA crosses above a 20-bar EMA and short on the reverse. Other templates in the file show ATR-based stop loss and take profit, an RSI overbought and oversold

Strategy v6 Moving averagesTrend Repaints
Updated 8 months ago · None stated GitHub repository of EMA Crossover Template

This indicator plots a classic MACD line, signal line, and histogram in a separate pane. It subtracts a slow moving average from a fast moving average, then smooths that difference into a signal and shows the gap as columns. Alerts fire on histogram slope flip

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Moving Average Convergence Divergence

A price-chart indicator that combines an opening-range style bias with a candle range trigger. It compares a lower-timeframe pulse against the previous closed candle's high and low across several higher timeframes, counts how many disagree, and only accepts a

Indicator v6 Sessions & timeSMC / ICT / price action
Updated 8 months ago · None stated GitHub repository of HORC x CRT Hybrid Stealth Dome v8.7
1 stars

An indicator in a separate pane that combines RSI, a normalized WaveTrend oscillator and relative volume into a weighted conviction score, with user-set weights for each part. A trend filter reads the slope of a higher-timeframe EMA, five minutes by default, t

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · None stated GitHub repository of Sniper Alert Wrapper
1 stars

0-DTE Momentum Continuation Pro is a Pine Script indicator that overlays labels on the price chart to mark A+ BUY, A+ SELL, B BUY and B SELL setups. It calculates EMA trend structure using fast and slow EMAs, checks momentum with close price position relative

Indicator v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of 0-DTE Momentum Continuation Pro

Backtest Example

by propuchon
1 stars

A course example strategy that buys when a fast EMA crosses above a slow EMA and then manages the trade with a percentage stop loss and take profit measured from the average entry price. Only long trades are opened; the short condition is calculated but not us

Strategy v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Backtest Example
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It tracks the highest high over a 115-bar lookback. It buys when the close is at or above 70 percent of that high and sells when the close falls below 52 percent of it

Strategy v6 TrendBreakout
Updated 9 months ago · MIT GitHub repository of 52-Week High 115/70/52
1 stars

An overlay indicator that marks market structure from swing points. It draws continuation lines for breaks of structure in the trend direction and breaker lines for market structure shifts. A swing is a candle with a set number of lower or higher bars on each

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 9 months ago · None stated GitHub repository of ICT Breakers (BOS / MSS)

Draws horizontal lines at the open of selected higher periods on the price chart, with up to five configurable slots that default to daily, weekly, monthly and yearly. Each slot has its own timeframe, colour and lookback count of past opens. Options extend the

Indicator v6 Support & resistanceSessions & time Repaints
Updated 9 months ago · MPL-2.0 GitHub repository of Daily Weekly Monthly Yearly Opens
1 stars

This indicator plots an anchored VWAP and a moving average on the price chart. The VWAP anchor can be chosen automatically or set to session, week, month, quarter, year, highest high, lowest low or highest volume bar within a lookback. Up to three standard dev

Indicator v6 Moving averagesVolume
Updated 9 months ago · MPL-2.0 GitHub repository of Anchored VWAP + Moving Average

NXOG + FVG

by TavaresBugs
1 stars

The indicator detects and plots Fair Value Gaps across multiple timeframes on the price chart, including 15 minutes, 1 hour, 4 hours, daily, weekly, and monthly. It identifies institutional opening gaps such as NDOG, NWOG, and NMOG with colored boxes and label

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MIT GitHub repository of NXOG + FVG

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