Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 30)

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

Kernal Cipher 3

by kdricha0602
1 stars

Kernal Cipher 3 is a momentum trading strategy that plots signal diamonds on the price chart for breakout, reversal and continuation setups. It calculates EMAs of varying lengths to detect trend regime and slope, ADX for strength confirmation, WaveTrend oscill

Strategy v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher 3
1 stars

An intraday strategy for stocks that gap up before the open. It qualifies a symbol by gap size, price band and premarket volume, then trades an opening-range breakout with a volume surge, limited to a set number of trades per day and a cut-off hour in New York

Strategy v6 BreakoutSessions & time
Updated 6 weeks ago · None stated GitHub repository of Premarket Gap Scalper

Ultimate 5 EMA Quant Engine

by Pr-ashant-pawar
1 stars

A Pine v6 indicator that plots a 5-period EMA and runs a multi-step short-setup tracker on the price chart using data from a chosen timeframe. Signals are filtered by volume against its average and an RSI threshold, then graded A to D. Each grade has its own t

Indicator v6 TrendBreakout
Updated 7 weeks ago · None stated GitHub repository of Ultimate 5 EMA Quant Engine

Moving Average (EMA)

by DEVfancybear
1 stars

This script calculates and plots an Exponential Moving Average (EMA) based on the closing price directly on the main price chart. It functions as a classic trend-following reference, smoothing price action to help identify direction or dynamic support and resi

Indicator v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of Moving Average (EMA)
1 stars

Bitmoon System indicator plots mirror levels, symmetric candles, and detects fractal patterns on the price chart. It calculates central mirror, P1, and P2 mirror levels, plus symmetric candle levels based on user inputs for periods and times. Up and down fract

Indicator v6 Support & resistanceCandlestick patterns
Updated 7 weeks ago · None stated GitHub repository of Bitmoon System Morindok
1 stars

This lightweight indicator template calculates a simple moving average based on a user-selected price source and lookback length. It plots the calculated moving average line, dynamically coloring it green when the price is above the moving average and red when

Indicator v6 Moving averagesTrend
Updated 8 weeks ago · MPL-2.0 GitHub repository of Lightweight Indicator Template

Options Momentum SIGIL

by dwightspitz
1 stars

A strategy that builds two TRAMA adaptive averages, each compared with a delayed copy of itself to form a cloud on the price chart. Each can use its own timeframe, with 15-second data as the default, which needs a plan that supports seconds charts. An optional

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · MIT GitHub repository of Options Momentum SIGIL

Stock Stats

by peterdmv
1 stars

Stock Stats displays a customizable single-row chip dashboard directly on the price chart. It presents key fundamental and technical metrics including market capitalization with size categorization, shares float, ADR%, ATR, low-of-day distance, 52-week high, V

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 2 months ago · MPL-2.0 GitHub repository of Stock Stats

Bullish Candle Demo

by Alaamo7
1 stars

Bullish Candle Demo is an introductory educational indicator designed for Pine Script v6 beginners. It evaluates whether the close price of the current bar is higher than its open price to identify bullish candlestick bars. When a bullish candle occurs, the in

Indicator v6 Candlestick patterns
Updated 2 months ago · Custom licence GitHub repository of Bullish Candle Demo

Directional EMA For Loop

by vedkanani123
1 stars

A separate-pane oscillator that smooths price with a selectable moving average, then scores its direction by looping over a range of lookbacks from a start to an end value. The score is compared with long and short thresholds to mark uptrend and downtrend stat

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of Directional EMA For Loop
1 stars

A price-chart trend indicator that works like a SuperTrend whose band distance adjusts itself. It measures how far past pullbacks have gone against recent trends, remembers a window of readings separately for up and down trends, and sets the band room from a c

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Self-Adaptive Trend Signals
1 stars

Draws volume order blocks on the price chart with three tiers of asymmetric volume signals and a cooldown. A proximity marker fires when a high-volume bar, a displacement candle and a tier signal occur within an adjustable number of bars of each other. Rolling

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym HV Disp Tier Proximity v1

ZigZag Volume Profile

by BrandonFreire
1 stars

An indicator for the price chart that draws a ZigZag swing channel and builds a volume profile along each swing. Volume at each sloped price level is summed into a set number of bins and drawn as coloured horizontal bars with percentage labels, and the bin wit

Indicator v6 VolumeSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of ZigZag Volume Profile
1 stars

This Pine Script v6 strategy generates multi-layered trading signals plotted directly on the price chart. It combines eight modular signal engines: EMA crossover pullbacks, price action breakouts, RSI momentum and divergence, MACD histogram flips, volume surge

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Advanced Swing Strategy v6
1 stars

A strategy that uses the underlying stock as a timing proxy for buying around 21-day at-the-money call options. A symbol profile preset selects gates and a higher timeframe. Entries depend on a volume profile value area, a swing VWAP, MACD Heikin-Ashi and a sq

Strategy v6 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of v29 Coldstart Options Proxy

APM v7 Multi-Factor

by rcaldwell67
1 stars

This indicator plots three exponential moving averages (8, 21 and 55 by default) on the price chart and marks a green triangle when at least three of five conditions agree. The conditions are EMAs stacked upward, RSI between 40 and 70, MACD above its signal li

Indicator v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of APM v7 Multi-Factor
1 stars

This indicator scores a short-side exhaustion pattern after an up-move on a scale of 0 to 10, as a screening aid rather than a trading system. Points come from a long upper wick, a bullish fair value gap, a lower or equal second swing high, a break of swing-lo

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 2 months ago · Custom licence GitHub repository of Exhaustion Reversal Pattern Scorer
1 stars

This indicator plots Solana options Max Pain strike levels from Deribit directly on the price chart. It renders horizontal dashed lines extending from the current bar to each contract's settlement time at 08:00 UTC. Line thickness dynamically scales with total

Indicator v6 Support & resistance
Updated 3 months ago · MIT GitHub repository of SOL Max Pain (Deribit)

Buddha Money Flow

by DarthBuddha
1 stars

A separate-pane volume indicator built on TradingView footprint data. Each bar shows total volume as a stacked column, with buy volume at the bottom, neutral volume in the middle and sell volume at the top. An optional delta histogram and a summary table can b

Indicator v6 Volume
Updated 3 months ago · MIT GitHub repository of Buddha Money Flow

Fusion Cipher SR Scalper

by shahzaib-574
1 stars

This indicator plots intraday support and resistance tools on the main price chart. It calculates a daily-reset VWAP with ATR bands, daily high/low/mid levels, previous day extremes, and pivot-based support/resistance zones. It also identifies long or short da

Indicator v6 Support & resistanceScalping
Updated 3 months ago · None stated GitHub repository of Fusion Cipher SR Scalper

GEKO Scalp

by grzegorzkowalskigk-jpg
1 stars

This indicator is a mean-reversion scalper for index futures on one to five minute charts. It plots session VWAP with one and two standard deviation bands and previous day high and low, and arms setups only when an Efficiency Ratio shows choppy rather than tre

Indicator v6 Mean reversionScalping
Updated 3 months ago · Custom licence GitHub repository of GEKO Scalp

Quarter Theory Stats

by abhinaynatraj
1 stars

A table-only companion to the quarter theory overlay. It builds conditional frequency statistics from 15-minute bars, whichever chart timeframe is used, and shows them in an on-chart table: the chance of a quarter extending, how a third-quarter close classifie

Indicator v6 Screeners & dashboardsSessions & time
Updated 3 months ago · None stated GitHub repository of Quarter Theory Stats
1 stars

The Gamma Exposure Levels indicator plots horizontal levels on the price chart based on user-pasted GEX data. It displays All-Expiry HVL, Call Resistance, Put Support, 0DTE HVL, Call, Put, Zero Gamma, Max Pain, Expected Move, and Flip Zones. Users can enable o

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of Gamma Exposure Levels [BackQuant]
1 stars

The SMC Market Structure Indicator calculates and plots Smart Money Concepts elements directly on the price chart. It identifies market structure points including Higher Highs, Higher Lows, Lower Lows, and Lower Highs, alongside Break of Structure and Change o

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of SMC Market Structure Indicator
1 stars

An overlay that looks for a three-step reversal: a liquidity sweep beyond a recent swing, a sharp snap-back measured in ATR multiples, and an inverted fair value gap that price retraces into and respects. When all three line up it prints a buy or sell dot and

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Sweep + IFVG Graded Reversal

NTouch Zones

by riegodavid-git
1 stars

An overlay indicator that builds support and resistance rectangles from pivots found inside a morning window in Philippine time, by default 06:00 to 07:30. Pivot highs and lows that cluster within a tolerance based on a fraction of the ATR become a zone once t

Indicator v6 Support & resistanceSessions & time
Updated 4 months ago · None stated GitHub repository of NTouch Zones
1 stars

This strategy identifies Volatility Contraction Patterns in US stocks using breakout confirmation with volume surge filters. It enters on pattern completion when required conditions such as full TPR or VCP squeeze are met and exits via partial profit targets a

Strategy v6 Volatility & bandsVolume
Updated 4 months ago · None stated GitHub repository of Minervini VCP + SmartMCDX US

Custom Reversal

by rubbermetal
1 stars

An overlay indicator that flags possible reversals using pivot points, candle patterns and confirmation filters. It detects swing highs and lows with separate left and right bar counts, bullish and bearish engulfing candles, and pin bars such as hammers and sh

Indicator v6 Candlestick patternsMean reversion
Updated 4 months ago · MPL-2.0 GitHub repository of Custom Reversal

This strategy combines multi-timeframe trend bias, hourly liquidity sweeps, and lower-timeframe inversion fair value gap confirmations. It determines daily trend direction using historical daily candles, checks for a 1-hour liquidity sweep and reclaim against

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 4 months ago · MIT GitHub repository of Doc02 H1 Liquidity Sweep IFVG - Project Adapted

Bollinger Band Squeeze Detector

by shubhamtaywade82
1 stars

Detects a volatility squeeze when the Bollinger Bands sit inside the Keltner Channel, and shows it in a separate pane as a column state. A momentum histogram measures close against the Donchian midline, optionally normalised by ATR and clamped. A small table r

Indicator v6 Volatility & bandsOscillators & momentum Archived
Updated 5 months ago · None stated GitHub repository of Bollinger Band Squeeze Detector
1 stars

An all-in-one Smart Money Concepts indicator that identifies market structure breaks and higher-timeframe bias. It calculates Break of Structure (BOS) and Change of Character (CHoCH) using pivot swing detection, auto-draws Supply and Demand zones based on ATR

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · Custom licence GitHub repository of Market Structure & Daily Bias SD Pro v2

Crypto AMT Toolkit v2

by latifangren
1 stars

This indicator provides a comprehensive crypto trading toolkit on TradingView. It plots Volume Profile boxes using customizable lookback bars, row count, and value area percentage. VWAP lines with standard deviation bands are drawn alongside optional bands. Or

Indicator v6 VolumeVolatility & bands
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v2

Index Futures Beat Buy and Hold

by PETERSAMUELOPS12
1 stars

A leveraged trend-following strategy for index futures that uses 20, 50 and 200 period EMAs to decide between long, flat and optional short positions. Leverage is higher in confirmed uptrends and steeper trends, lower for shorts, and reduced when ATR as a perc

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Index Futures Beat Buy and Hold

BVortex Strategy v1

by Alberto082544
1 stars

BVortex Strategy v1 calculates a scaled Vortex Indicator difference to detect overbought and oversold conditions relative to predefined upper and lower thresholds. It filters entries using market trend direction established by confirmed swing pivot highs and l

Strategy v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of BVortex Strategy v1

SR Levels

by onlyspx
1 stars

SR Levels visualizes custom support and resistance price zones directly on the main price chart. It parses user-defined CSV text input containing zone labels, target symbols, and price bounds for SPX, SPY, and ES contracts. When the current symbol matches the

Indicator v6 Support & resistance
Updated 6 months ago · None stated GitHub repository of SR Levels

Trend Break Indicator

by Chovy-King
1 stars

An indicator version of a trend breakout strategy with BTC, gold and custom presets. It plots 20 and 60 EMAs and marks a triangle when a strong candle breaks the latest swing in the direction of the trend, after filters for higher-timeframe agreement, volume,

Indicator v6 BreakoutTrend
Updated 6 months ago · None stated GitHub repository of Trend Break Indicator

AlgoBot ORB Strategy

by ghostnathan30-ops
1 stars

An opening range breakout strategy for Nasdaq and S&P futures on the 15-minute chart. It records the 9:30 to 10:00 New York range, then enters on the first close beyond it, plus a small point buffer, in line with a 50-period EMA bias, until 11:30. Stops are AT

Strategy v6 BreakoutSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot ORB Strategy

ATR Trend

by dtheran1
1 stars

Draws an ATR-based trend line on the price chart, inspired by Supertrend. The distance from the source, which can use highest high and lowest low, is set by a time period and an ATR weight. Ten smoothing types are available for the ATR. Options add a fast tren

Indicator v6 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of ATR Trend

Fair Value Gaps 2026

by mikeyhu70
1 stars

This indicator finds Fair Value Gaps, the price gaps left between three consecutive candles, and draws them as zones on the price chart. Up to three sets can be shown: two on the chart or a higher timeframe and one from a lower timeframe. Each set has its own

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Fair Value Gaps 2026
1 stars

An indicator in a separate pane that turns Heikin Ashi data into a momentum oscillator. It offers lookback modes, an engine choice including a Heikin Ashi blend, optional final smoothing, and adaptive fast and slow crossovers, plus a separate SMA 20 and 50 cro

Indicator v6 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Heikin Ashi Oscillator Trend Engine

Crypto Harami Pattern Detector

by gabriel-klettur
1 stars

Crypto Harami Pattern Detector identifies bullish and bearish Harami and Harami Cross candlestick patterns on the price chart. It checks multi-candle body and range relationships to distinguish standard Harami formations from Harami Cross variants. The script

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Crypto Harami Pattern Detector

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