Pine Library · 712 open-source scripts

Free Index Pine Scripts for TradingView (page 6)

Open-source Pine scripts written for stock indices such as the Nasdaq 100, S&P 500 and DAX: opening range, gap and session tools, and index strategies.

Pine scripts712
Code shown here375open licence
Updated in a year601
No repaint flag595

Indices: Indicators, Strategies and Libraries

Market Monitor - 15m

by chris-c-thomas
14 stars

Market Monitor - 15m is a directional bias chart overlay designed for 15-minute intraday chart analysis. It calculates a triple exponential moving average ribbon with EMA cloud shading, session VWAP with multiplier bands, prior day levels, a 30-minute opening

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Market Monitor - 15m
5 stars

This indicator builds a synthetic index from a user-supplied list of symbols and plots the result in a separate pane. For each symbol it requests open, high, low, close, two mid prices, inferred volume, inferred volume delta, and inferred tick count, then appl

Indicator v6 Volume
Updated 8 months ago · None stated GitHub repository of Index Construction Tool

Xiaotang System V5.0

by TUSKIJAY
4 stars

Xiaotang System V5.0 is a price-chart overlay indicator that identifies momentum breakouts across moving averages and session VWAP. It computes Heikin-Ashi price data, 50-period and 200-period SMAs, and intraday VWAP while monitoring 5-minute higher-timeframe

Indicator v5 TrendOscillators & momentum Repaints
Updated 2 days ago · None stated GitHub repository of Xiaotang System V5.0
4 stars

This indicator plots support and resistance pivot levels, order blocks, market structure changes, and Fibonacci optimal trade entry zones directly on the price chart. It calculates touch counts across dynamic zones, detects chart patterns, and tracks pre-spike

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO — Full Integration

This overlay indicator researches multi-timeframe setup zones for NQ and ES futures on the price chart. It builds chart, five-minute through four-hour zones, including transformed IFVG and BB zones, scores them, and tracks liquidity pools and structure. During

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Setups Research

SPX/Gold Ratio Bubble Detector

by EngineeredSuccess
3 stars

Calculates the price ratio between the S&P 500 (defaulting to SPY) and Gold (defaulting to GLD) to evaluate macro valuation extremes. It tracks the ratio alongside a simple moving average and evaluates market status across customizable warning, danger, and ext

Indicator v6 Moving averagesSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of SPX/Gold Ratio Bubble Detector

QQQ 5min Pure Runner

by yalili8521
2 stars

This strategy identifies trend continuation and accumulation setups on 5-minute charts. It enters long or short positions based on an aligned moving average stack, rising or falling price grinds within a lookback period, and a maximum bar size threshold to avo

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of QQQ 5min Pure Runner

ORB Hunter

by nxtaiapp
2 stars

ORB Hunter is an Opening Range Breakout strategy that identifies price breakouts beyond a defined opening session window (such as 09:30 to 09:45 EST). It places long or short trades when price crosses the opening range bounds with buffer, confirmed by optional

Strategy v5 BreakoutSessions & time
Updated 11 months ago · MIT GitHub repository of ORB Hunter
2 stars

This indicator displays market trend filter information and momentum metrics in a separate pane based on the Weekend Trend Trader strategy. It evaluates a benchmark index, such as the NASDAQ 100, comparing its close price to a simple moving average to render a

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Weekend Trend Trader Ribbon

ZeroDTE Wave v2

by xynkro
1 stars

A Pine version 6 overlay that marks reversal entries and exits for same-day index option trades on five-minute bars. Entries need a stochastic reversal cross, an EMA trend filter, a cooldown and a time window, and must pass a confluence score, a VIX stand-asid

Indicator v6 Mean reversionSessions & time
Updated yesterday · None stated GitHub repository of ZeroDTE Wave v2
1 stars

Prints manual long and short signal labels on the price chart using an adaptive method trained on recent settled trade paths. It works on standard time-based charts, scaling stop limits with the chart's bar length, and uses the previous closed candles. Options

Indicator v6 AI / machine learning
Updated 3 days ago · None stated GitHub repository of TopBot Adaptive (Three-Candle)
1 stars

A strategy for one-minute charts that trades a breakout of a short opening probe at the cash open in a chosen time zone. It limits entries to the first breakout of the day within a time window and offers fixed risk-multiple, ATR bracket, time-based or session-

Strategy v6 Sessions & timeBreakout
Updated 7 days ago · GPL-3.0 GitHub repository of Academia TORB v1.5 Volatility-Regime ORB
1 stars

A price-chart indicator that shows two tables. A focus panel runs a trend-flip and oscillator engine on one chosen futures contract across five timeframes and reports an alignment score. A board runs the same engine across a list of futures markets on one scan

Indicator v6 Screeners & dashboardsTrend
Updated 7 days ago · Custom licence GitHub repository of Phantom Flow Futures Screener

DAY-5MIN-L&H v2

by 7b809
1 stars

An overlay indicator that must run on the one-minute chart and raises an error otherwise. It captures the high and low of an opening range at a set market open time, then draws lines at the high, low and average, plus entry levels placed beyond the range by th

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of DAY-5MIN-L&H v2

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

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

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
1 stars

A strategy for a Taiwan mini index futures contract that combines a manually updated macro score with chart pattern breakouts. Growth, inflation, valuation and sentiment readings are typed in as inputs and produce a green, red or neutral bias. Entries need fou

Strategy v5 TrendBreakout Repaints
Updated 4 months ago · None stated GitHub repository of Mini Futures Macro Strategy v10
1 stars

Session Range vs ATR Filter compares developing intraday price ranges against the daily Average True Range (ATR) during US regular trading hours. It evaluates session range expansion at fixed time checkpoints (10:00 AM, 12:00 PM, and 2:00 PM ET) against percen

Indicator v5 Sessions & timeVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Session Range vs ATR Filter

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

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

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

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

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

MES Gamma (7DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for MES (Micro E-mini S&P 500 futures, scaled from SPY options) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dat

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of MES Gamma (7DTE)

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

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

algo-trade-indian

by akash-yellgetti
1 stars

A strategy-type script for the price chart that marks the high, low and midpoint of the first part of each session, set by start hour and minute inputs, and alerts when price crosses above the high or below the low. It also plots VWAP and a 50-period EMA, pivo

Strategy v5 Sessions & timeSupport & resistance
Updated 2 years ago · None stated GitHub repository of algo-trade-indian
1 stars

This long-only strategy plots Bollinger Bands, 20 bars and 2.5 deviations by default, along with a 10 and a 50 period EMA and a background that shades the EMA trend. When flat, it buys after the close crosses back above the lower band, and it closes the positi

Strategy v5 Mean reversionVolatility & bands
Updated 2 years ago · MPL-2.0 GitHub repository of Bolinger Bands Strategy

QS Vix

by nvFede
1 stars

A Pine v4 indicator in a separate pane that builds a volatility gauge from the S&P 500 index. It measures the distance of the current low from the highest high over a short window and a window ten times longer, as percentages, adds them and smooths the sum wit

Indicator v4 Volatility & bands
Updated 3 years ago · None stated GitHub repository of QS Vix
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 6 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

Advance Decline Line

by TWODS-CAPITAL
37 stars

This indicator plots an Advance Decline Line in a separate pane. It requests a combined NYSE series of advancing issues minus declining issues, divided by unchanged issues plus one. A cumulative function adds the square root of a positive difference and subtra

Indicator v5 Oscillators & momentumTrend
Updated 3 years ago · MIT GitHub repository of Advance Decline Line
24 stars

This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

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

Dual Moving Average

by hirawatt
11 stars

Dual Moving Average is a Pine Script v4 strategy that overlays the price chart. The shown code declares a strategy with fixed quantity, cash commission, slippage, and calculation on every tick. Inputs set the price source, a start and end date, a symbol that d

Strategy v4 Oscillators & momentumScreeners & dashboards Repaints
Updated 2 years ago · MIT GitHub repository of Dual Moving Average

TR IV Surface

by Enesp4rl4k
7 stars

This TradingView indicator draws an IV surface snapshot table on the price chart for VIOP options. It displays the ATM term structure with expiry, DTE, and ATM IV percent rows, plus 25-delta skew and term slope in vol points. The table updates statically on th

Indicator v6 Volatility & bandsSupport & resistance
Updated 6 days ago · MIT GitHub repository of TR IV Surface

Ultimate Combo v1

by DexWilder
4 stars

This overlay strategy is written for MES and ES five-minute charts. It calculates a fast and slow EMA, a 200-period trend EMA, session VWAP, RSI, ATR, and a volume moving average, and it can restrict trading to an exchange-time session. Inputs set RSI extremes

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Ultimate Combo v1
4 stars

This overlay indicator draws KOLA pivot support and resistance, order blocks, optional change-of-character and break-of-structure marks, SIDO swing chart patterns, and Fibonacci or OTE levels on the price chart. Touch counts use an ATR percentage zone. Spike s

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO — Full Integration
4 stars

Meridian Options Context plots a separate-pane directional context for liquid options underlyings. It normalizes trend from fast and slow EMAs, RTH VWAP and opening-range displacement, RSI and short-return momentum, relative volume participation, persistence,

Indicator v6 Oscillators & momentumMoving averages Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Options Context

QQQ MA Accumulation v2

by yalili8521
2 stars

This intraday strategy calculates fast, mid, and slow Simple Moving Averages to confirm alignment alongside steady bar accumulation on short timeframes. It filters entries by rejecting large candle spikes and restricting execution to a defined morning session

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of QQQ MA Accumulation v2

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