Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 31)

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

A strategy variant, labeled in its file name as a time-filtered version, that sends orders to MetaTrader through a connector service via alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk

Strategy v6 Sessions & time
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy Time Filter

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy plots a Bitcoin all-time-high cycle model on the price chart. It starts from a chosen date and can show an Ichimoku cloud, a fast and slow geometric mean, and supply and demand boxes. Drop percentage, rise percentage, and a weight set the cycle l

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle
1 stars

An indicator that detects a volatility squeeze when ATR falls to a low percentile of its recent range, tracks the high and low of the squeeze, and signals a long or short when price closes beyond that range as the squeeze ends. It plots EMA lines with a ribbon

Indicator v6 BreakoutVolatility & bands
Updated 7 months ago · None stated GitHub repository of V19 Volatility Squeeze Breakout

This strategy calculates intraday volatility mean reversion using session VWAP standard deviation bands, RSI overbought and oversold levels, and candle wick exhaustion ratios. It enters trades when price reaches statistical extremes filtered by RSI and wick co

Strategy v6 Mean reversionVolatility & bands
Updated 7 months ago · MIT GitHub repository of Intraday Volatility Reversion Z-Score

MTF Trend Guardian

by propuchon
1 stars

A strategy that combines a higher-timeframe trend filter with an RSI trigger. It goes long when price is above the previous higher-timeframe EMA and RSI crosses above its long threshold, and short in the mirror case. Positions close when RSI falls below or ris

Strategy v6 TrendOscillators & momentum
Updated 9 months ago · None stated GitHub repository of MTF Trend Guardian

Supertrend 17/3.2

by trustdan
1 stars

A long-only strategy generated from the TrendLab research project, drawn on the price chart. It uses the built-in Supertrend with an ATR period of 17 and a multiplier of 3.2. It buys when the Supertrend turns to an uptrend and closes the position when it turns

Strategy v6 TrendVolatility & bands
Updated 9 months ago · MIT GitHub repository of Supertrend 17/3.2

FVG + IFVG Gap (ULTRA)

by Ahmed1926
1 stars

An overlay indicator that detects fair value gaps, where one candle's low is above the high from two bars earlier or the reverse, and inverse fair value gaps. Each gap is drawn as a box with an optional 50 percent midline in a chosen style. Settings choose whe

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of FVG + IFVG Gap (ULTRA)

A chart-overlay SuperTrend variant whose ATR multiplier shrinks for a limited number of bars after a divergence is found. Divergences are detected with pivots between price and a hidden oscillator, and shown as small markers. If a divergence in the trend direc

Indicator v6 TrendDivergence
Updated 9 months ago · None stated GitHub repository of SuperTrend Weighted by Divergence

SFA Price Gap Inefficiency v1

by genesisgrubio39
1 stars

The library detects price gap inefficiencies using structural flow analytics. It identifies new bullish and bearish gaps with their top and bottom levels, tracks mitigation status, and checks flow alignment between price and CVD trends. It applies regime detec

Library v6 SMC / ICT / price actionVolume
Updated 10 months ago · None stated GitHub repository of SFA Price Gap Inefficiency v1

Yellow Lines for RS

by tqfoster1035
1 stars

Yellow Lines for RS is an overlay indicator that draws horizontal price lines for E-mini S&P 500 and Nasdaq 100 futures. The price levels are typed in by the user in the settings, with three slots per instrument, plus a set of optional preset ES levels. It det

Indicator v6 Support & resistance
Updated 10 months ago · None stated GitHub repository of Yellow Lines for RS

VMC Strat Hybrid Trend

by matlaenousse
1 stars

VMC Strat Hybrid Trend is a long-oriented trading strategy plotted directly on the price chart. It combines an exponential moving average trend filter with WaveTrend, RSI, Stochastic RSI, and a custom Money Flow Index calculation. Long entries trigger when Wav

Strategy v6 TrendOscillators & momentum
Updated 10 months ago · None stated GitHub repository of VMC Strat Hybrid Trend

Ultra Clean Signals

by KirstonKK
1 stars

A minimal chart-overlay indicator that plots a 20 and a 50 EMA and prints large buy or sell labels on an EMA cross. A buy also needs volume above 1.5 times its 20-bar average, RSI between 35 and 65 and price above the fast EMA; a sell needs the opposite price

Indicator v6 Moving averagesTrend
Updated 10 months ago · None stated GitHub repository of Ultra Clean Signals

Ogi's Levels

by ognenmitev
1 stars

A multi-part overlay that draws support and resistance boxes from pivot highs and lows, sized as a multiple of ATR, with stop loss and two take profit lines based on an ATR stop distance and risk-to-reward ratios. It adds a trend label from a 50 and 200 bar si

Indicator v6 Support & resistanceTrend
Updated 11 months ago · Custom licence GitHub repository of Ogi's Levels
1 stars

Advanced Market Theory calculates Market Profile, TPO, and Hybrid profiles directly on the price chart. It identifies key structural levels including the Point of Control, Value Area High and Low boundaries, Initial Balance range projections, single prints, po

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · None stated GitHub repository of Advanced Market Theory

CVD Enhanced

by turnupdigital
1 stars

An indicator that draws cumulative volume delta as candles in a separate pane, built from lower timeframe volume for a chosen anchor period. Adjustable positive and negative threshold lines mark bullish and bearish confirmation levels, with the area between th

Indicator v6 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of CVD Enhanced

Pivot Points Standard

by yagyesh-bobde
1 stars

The Pivot Points Standard indicator calculates and plots support, resistance, and pivot levels directly on the price chart. It offers multiple calculation algorithms, including Traditional, Fibonacci, Woodie, Classic, Demark, and Camarilla. Users can select pi

Indicator v6 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Pivot Points Standard

Lab-Doi-02

by theteelek
1 stars

An experimental strategy lab script that tracks a simulated long position within a date window using a daily EMA 12 and EMA 26 cross as the trend filter. It opens the simulated long when the fast average is above the slow one on a confirmed bar, and closes it

Strategy v6 Trend
Updated 1 year ago · None stated GitHub repository of Lab-Doi-02

Keltner Channel

by Studentcodee
1 stars

The Keltner Channel strategy plots upper and lower bands on the price chart overlay using an exponential moving average or simple moving average combined with ATR or range calculations. The source crosses the bands to generate signals. It enters long positions

Strategy v6 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Keltner Channel
1 stars

A long-only strategy that enters when a fast simple moving average crosses a slow one, using the cross function so either direction of crossing can trigger the entry. Each open position gets a percentage take profit and a percentage stop loss calculated from t

Strategy v6 Moving averages
Updated 1 year ago · None stated GitHub repository of Profit and Stop Loss Strategy
1 stars

A pivot based strategy intended for the USDTHB futures on a 30-minute chart. It detects swing highs and swing lows using a long left bar count and a one bar right count, tracks the latest levels, and trades breakouts of them with a fixed contract count and a p

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of USDTHB TFEX Strategy

MACD Indicator

by CodeThat
1 stars

This indicator calculates and plots a standard Moving Average Convergence Divergence oscillator in a separate chart pane. It computes the fast MACD line, the slow signal line, and the histogram based on user-configurable short, long, and signal period inputs.

Indicator v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of MACD Indicator

Volume Price Indicator

by fuyuanyuan
1 stars

This indicator plots colored volume bars on the price chart, where green shows price up days and red shows price down days. It also draws an EMA of volume in yellow. The script detects bullish and bearish divergences by comparing price highs/lows to volume hig

Indicator v6 VolumeMoving averages
Updated 1 year ago · None stated GitHub repository of Volume Price Indicator

COT Total

by ivansoft
1 stars

An indicator in a separate pane that plots total Commitment of Traders positions for the chart symbol. A display setting chooses long positions, short positions, their sum, their difference or the long share as a percentage of the sum. Other settings pick the

Indicator v6
Updated 1 year ago · None stated GitHub repository of COT Total
947 stars

The Henderson Weighted Moving Average indicator calculates a smoothed moving average line using Henderson's symmetric weight kernel formula applied to the chosen source series over a specified period length. It plots directly on the main price chart pane. The

Indicator v6 TrendMoving averages
Updated 12 days ago · GPL-3.0 GitHub repository of Henderson Weighted Moving Average
575 stars

The ICT Liquidity Void Fill Scanner monitors up to 40 user-defined symbols for Fair Value Gap and Liquidity Void fill setups. It identifies large displacement candles matching specified ATR volatility and body percentage filters, tracking price retests against

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Fill Scanner
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
228 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy
99 stars

Calculates J. Welles Wilder's Accumulation Swing Index (ASI) to evaluate underlying price momentum and market trend strength. It computes the individual bar Swing Index based on current and previous open, high, low, and close prices relative to a maximum daily

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Accumulation Swing Index (ASI)

Moon Dev Lunar Sniper

by moondevonyt
92 stars

Moon Dev Lunar Sniper is a multi-indicator overlay that scores confluence across fast and slow EMAs, RSI, MACD, DMI, and BB width to fire signals only when score meets the minimum threshold. It plots buy and sell signals on the price chart, highlights cosmic b

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Lunar Sniper

BTC Scalp v1 Tests

by iamrichardD
57 stars

This script serves as a unit testing suite implemented in Pine Script to validate components of a 5-minute Bitcoin scalping strategy. It establishes a custom test runner framework using user-defined types to record and evaluate mock modules. Tested modules inc

Strategy v6 Scalping
Updated 1 year ago · Apache-2.0 GitHub repository of BTC Scalp v1 Tests

Cloning Lines Demo

by dcaoyuan
55 stars

This indicator demonstrates the line cloning functionality in Pine Script v6 directly on the main price chart. Every set number of bars, it draws a primary purple horizontal line extending from the open price across a defined bar span. On every bar, it creates

Indicator v6
Updated 6 months ago · Apache-2.0 GitHub repository of Cloning Lines Demo

Donchian Pullback Strategy

by Ahmed-GoCode
53 stars

This strategy identifies trend direction from Donchian Channel breakouts and executes trades on pullbacks toward the channel midpoint. A new breakout beyond the previous channel bands sets a bullish or bearish trend state. When price retraces to or across the

Strategy v6 TrendBreakout
Updated 2 months ago · MPL-2.0 GitHub repository of Donchian Pullback Strategy
47 stars

This indicator calculates the rate of change of market acceleration, known as jolt, by applying three sequential linear regression slope calculations to a selected price series over a specified lookback period. It evaluates higher-order price dynamics beyond v

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Acceleration, Slope of Slope (JOLT)
46 stars

This indicator overlays higher-timeframe candles on the price chart and marks related liquidity levels. It draws a chosen number of HTF candles as regular candles or Heikin Ashi, with optional automatic timeframe selection and a two-level mode. It plots the hi

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of HTF Sweeps & Liquidity Levels w/CISD
41 stars

This indicator estimates higher-timeframe volume distributions using lower-timeframe candle data and overlays them directly on the price chart. It calculates and plots Point of Control, Value Area High and Low, volume profiles, volume-spike bubbles, density zo

Indicator v6 VolumeSupport & resistance
Updated 4 days ago · None stated GitHub repository of HTF Volume Profile Density Zones
38 stars

VN YieldCurveLab NEW 2.1 is a macro research tool designed for daily Vietnamese government bond yield analysis, specifically configured for the TVC:VN10Y ticker. It tracks multi-tenor bond dynamics, yield changes over 5-day and 20-day horizons, and detects sig

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of VN YieldCurveLab 2.1 Bond Research
29 stars

Zen Bar Range Projections draws two independent higher-timeframe projections on the price chart. For each enabled timeframe it measures the average bar range over a chosen lookback, then places horizontal lines at 0.5, 1 and 2 times that range above and below

Indicator v6 Support & resistanceVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of Zen Bar Range Projections

This indicator tests method calls on a built-in line object. On each bar it creates a line from the current bar index and high to the next bar index and low, then calls set_x2 to move the right endpoint one bar further and set_color to paint the line orange. I

Indicator v6
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - method on builtin

Pine v6 Feature Test

by jpantsjoha
23 stars

This indicator is a Pine Script v6 demonstration that overlays the price chart. It calculates moving averages, oscillators, Bollinger Bands, ATR, highest and lowest values, rate of change, and moving-average crossovers from a chosen price source. Inputs set SM

Indicator v6 Moving averagesOscillators & momentum
Updated 4 weeks ago · Custom licence GitHub repository of Pine v6 Feature Test

Repaint

by ferranbt
21 stars

This indicator queries and plots the current daily close price using the security function in a separate pane. Designed as a test fixture for syntax analysis, it plots values without generating trading signals. The script features no customizable user settings

Indicator v6 Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Repaint
18 stars

This overlay indicator plots key market structure reference levels, including New Week Opening Gaps (NWOG) and New Day Opening Gaps (NDOG), along with higher timeframe reference levels and Average Daily Range (ADR). It highlights Consequent Encroachment (50% m

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Reference Levels + Gaps + ADR

This trend-following strategy plots Donchian channels and trade signals directly on the price chart. It enters long or short positions upon Donchian channel breakouts and scales in with accelerated pyramiding every fraction of the Average True Range. Position

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 12: Accelerated Pyramid

Alighten Pattern C

by alighten-dev
14 stars

Calculates and plots market structure pivots and Pattern C signal setups directly on the price chart. It constructs a visual ZigZag structure to track high and low pivot points, drawing level rays from confirmed origin pivots. The script scans stored pivot pai

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · None stated GitHub repository of Alighten Pattern C

Market Monitor - 1m

by chris-c-thomas
14 stars

Market Monitor - 1m is an overlay indicator designed for multi-chart monitoring and directional bias assessment. It plots a fast, mid, and slow EMA ribbon with a fill cloud, session VWAP with standard deviation bands, and previous day key levels. It evaluates

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · MIT GitHub repository of Market Monitor - 1m

Relative Strength Index

by deepentropy
13 stars

This indicator plots the Relative Strength Index in a separate pane from smoothed up and down price changes. It draws the RSI line with horizontal bands at 70, 50 and 30, plus overbought and oversold gradient fills. Optional settings add a smoothing moving ave

Indicator v6 Oscillators & momentumMoving averages
Updated 6 months ago · MIT GitHub repository of Relative Strength Index

MyTTFM - Clean

by dbruce1990
12 stars

MyTTFM - Clean draws a higher-timeframe candle overlay on the price chart and marks related ICT fractal structure. It plots configurable HTF candles, period separator lines, midpoint levels, a T-Spot box, and labels for recent C2 and C3 patterns plus swept lev

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of MyTTFM - Clean

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