Pine Library · 712 open-source scripts

Free Index Pine Scripts for TradingView (page 5)

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

TR Basis Monitor

by Enesp4rl4k
7 stars

This indicator calculates the cost-of-carry fair value between futures and spot prices, measuring the basis and fair value deviation in basis points. Operating in a separate pane, it computes a rolling Z-score of deviation using moving averages and standard de

Indicator v6 Mean reversionVolatility & bands
Updated 6 days ago · MIT GitHub repository of TR Basis Monitor
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)
4 stars

This strategy translates Python backtesting logic into Pine Script for intraday momentum trading. It calculates forced Heikin-Ashi candles and 1-minute moving averages to evaluate market trends and assign a signal strength score from 0 to 10. Entries execute w

Strategy v5 TrendMoving averages
Updated 2 days ago · None stated GitHub repository of Xiao Tang System v2 Strategy
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

QQQ 1min Pure Runner

by yalili8521
2 stars

This intraday strategy enters long or short positions on 1-minute charts of QQQ based on a triple moving average stack. It filters entries by requiring an accumulation or distribution sequence of consecutive rising or falling bars while rejecting bars exceedin

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

This strategy calculates MACD, ADX trend strength, ATR, and a rolling VWAP resetting at fixed bar intervals. It plots the VWAP line, stop loss levels, and profit targets directly on the price chart. Long positions enter when MACD crosses above its signal line

Strategy v5 TrendOscillators & momentum Repaints
Updated 8 months ago · MIT GitHub repository of MACD & VWAP Strategy with ATR SL/Targets

Mean Reversion

by nxtaiapp
2 stars

This strategy executes mean-reversion trades using Bollinger Bands combined with a fast RSI oscillator and MACD confirmation. It enters long or short positions when price reaches band extremes during oversold or overbought RSI levels, with optional MACD trend

Strategy v5 Mean reversionScalping
Updated 11 months ago · MIT GitHub repository of Mean Reversion

SUMMARY

by ryangaraygay
2 stars

This indicator aggregates multiple technical signals into an on-chart summary table. It calculates a session-based VWAP, a triple-EMA-smoothed price-volume oscillator, an EMA 9/21 trend spread, multi-timeframe Donchian channel breakouts, and an opening range h

Indicator v6 Screeners & dashboardsSessions & time
Updated 1 year ago · MIT GitHub repository of SUMMARY
2 stars

Weekend Trend Trader Overlay plots a 20-bar highest close as a resistance line and a ratcheting trailing stop on the price chart. It reads a chosen index, by default NASDAQ:NDX, on the chart timeframe and compares that close with a 10-bar simple moving average

Indicator v5 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of Weekend Trend Trader Overlay
2 stars

Combined Candle Counter overlays multiple technical analysis tools directly onto the price chart. It features configurable EMA and SMA moving average presets with automated toggles based on intraday, daily, or weekly timeframes. The indicator draws 52-week hig

Indicator v5 Moving averagesSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of Combined Candle Counter

LevelZ

by ClimberMel
2 stars

LevelZ plots key session-based price levels directly on the main price chart. It calculates and displays the open, high, and low of the current regular trading hours (RTH) session, the overnight session high and low, and yesterday's RTH open, high, low, and cl

Indicator v5 Support & resistanceSessions & time Repaints
Updated 4 years ago · MIT GitHub repository of LevelZ

Gamma/X Session Sweeps

by OverleveragedWhale
1 stars

An indicator that looks for a sweep and reclaim of the prior session's high or low during the first hour after the Asia, London and New York opens. Setups are marked on the price chart with a stop past the sweep, a fixed ES or NQ point target and an optional b

Indicator v6 SMC / ICT / price actionSessions & time
Updated yesterday · None stated GitHub repository of Gamma/X Session Sweeps

Draws weekly and monthly volatility forecast levels on the price chart from a text block pasted into a settings box. Lines show 75th percentile and median ranges for five-day and month high-low and open-close moves, together with week open, week high and low,

Indicator v6 Volatility & bandsSupport & resistance

ZeroDTE MEIC v1

by xynkro
1 stars

An overlay that follows a ladder of same-day iron condors on the S&P 500 index or its ETF and mini equivalents. At four configurable time slots in the afternoon it estimates short call and put strikes from realized volatility sampled on five-minute bars, using

Indicator v6 Sessions & timeVolatility & bands
Updated yesterday · None stated GitHub repository of ZeroDTE MEIC v1

TopBot Adaptive (5m)

by drewstake
1 stars

Prints manual long and short signal labels on the price chart using an adaptive method trained on recent settled trade paths, with a warmup count before signals begin. It uses the previous closed candles and enters at the current open, applying a minimum direc

Indicator v6 AI / machine learningScalping
Updated 3 days ago · None stated GitHub repository of TopBot Adaptive (5m)

Booming Bulls Sniper

by jayadevrana
1 stars

Implements liquidity sweep and prop firm breakout strategies inspired by the Booming Bulls methodology. The script monitors previous-day, previous-week, and current-day highs and lows for liquidity sweeps where price wicks beyond a level without closing past i

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of Booming Bulls Sniper

A price-chart indicator that extends a futures screener with a buy confirmation engine. A focus panel scores one contract across five timeframes, a board scans a list of futures markets on one timeframe, and a checklist panel shows which confirmations pass on

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

Kernal Cipher 2

by kdricha0602
1 stars

Kernal Cipher 2 is a lower-pane signal panel. It scores trend with fast, slow, and long EMAs, slope, Supertrend, and ADX, then blends WaveTrend, StochRSI, pivot divergence, volume, relative strength versus equity benchmarks, and beta. Green and red diamonds ma

Indicator v6 TrendOscillators & momentum
Updated 5 weeks ago · MIT GitHub repository of Kernal Cipher 2

Hedge Fund Manager SIGIL

by dwightspitz
1 stars

A strategy that builds simulated Renko bricks from the ATR of a chosen reference symbol, SPY by default, and trades within a set start and end date. It scales position sizes with a factor, keeps a hold percentage, and can add a TRAMA cloud with a percentage ex

Strategy v6 Trend
Updated 8 weeks ago · MIT GitHub repository of Hedge Fund Manager SIGIL

CH033 ORB+ VWAPs Indicator

by sandovalchristian033
1 stars

This indicator plots multiple anchored VWAPs, session ranges, fair value gaps, and multi-instrument monitoring tables directly on the price chart. It signals long or short setups when price breaks the initial fifteen-minute New York opening range, re-enters th

Indicator v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of CH033 ORB+ VWAPs Indicator

Signal Overlay

by insomniac-asif
1 stars

A chart overlay with three exponential moving averages of 9, 21 and 50 bars, plus manual marker toggles for long, short, entry, stop hit and target hit on the latest bar. The setup type and a conviction score are typed in by the user and shown in the label. It

Indicator v6 Sessions & timeMoving averages
Updated 2 months ago · MIT GitHub repository of Signal Overlay

Buddha Market Levels

by DarthBuddha
1 stars

A chart-overlay indicator that draws key intraday reference levels as lines and labels. These include premarket, today, overnight and after-hours highs and lows, the day's open, and shaded opening ranges for the Globex, Asia, London and New York sessions, each

Indicator v6 Support & resistanceSessions & time Repaints
Updated 3 months ago · MIT GitHub repository of Buddha Market Levels

GEKO OpenRange

by grzegorzkowalskigk-jpg
1 stars

This indicator for index futures such as ES and NQ plots the regular-session opening range as a box with high and low lines. It offers two modes: a classic opening range breakout and a Noise Area model with volatility-based boundaries from the open and a VWAP

Indicator v6 Sessions & timeBreakout
Updated 3 months ago · Custom licence GitHub repository of GEKO OpenRange

Nested FVG Pro

by abhinaynatraj
1 stars

An indicator for a 1-minute chart that finds 5-minute fair value gaps and looks for a smaller 1-minute gap forming inside them. A nested gap triggers a bullish or bearish label and a trade plan with entry, stop, partial target, main target and extended target

Indicator v6 SMC / ICT / price actionScalping
Updated 3 months ago · None stated GitHub repository of Nested FVG Pro
1 stars

This strategy applies Gann swing lane signals to generate entries in micro futures instruments. It enforces compounding risk controls that scale take-profit targets upward after wins and downward after losses using configurable ratios. Additional risk manageme

Strategy v6 TrendSessions & time
Updated 4 months ago · None stated GitHub repository of Futures Compounding Machine
1 stars

A strategy version of an ICT optimal trade entry indicator. It finds a swing leg, applies a confluence score from structure shift, liquidity sweep, fair value gap, killzone and higher-timeframe bias, then places a limit entry inside the OTE zone, 0.705 by defa

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of OTE Strategy Confluence

Macro Phase Dashboard

by cc4wang-ui
1 stars

A separate-pane indicator for daily charts that builds a macro regime dashboard from cross-market data. It combines an economic season model, a copper-to-gold ratio check, a monetary policy pressure measure using yields and real rates, cross-market synchroniza

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of Macro Phase Dashboard
1 stars

A second strategy version for index futures built on New York session phases, session VWAP, previous day high and low, EMAs, ATR and RSI with thresholds that tighten in low volatility. It builds a session volume profile from price and volume to find the point

Strategy v5 VolumeSessions & time Repaints
Updated 4 months ago · MIT GitHub repository of Marketman Intraday Profile Strategy v2

FracDiff Z NQ 5m Filter Lab

by qmqvt44stq-del
1 stars

A fractional differencing Z-score oscillator in a separate pane, set up for testing optional entry filters on five-minute Nasdaq futures charts. Signal modes include the base snapback, a volume-exhaustion mode, a conservative mode and an early mode. Filters co

Indicator v6 Mean reversionOscillators & momentum
Updated 4 months ago · None stated GitHub repository of FracDiff Z NQ 5m Filter Lab
1 stars

A strategy that looks for mean-reversion entries when volume shows exhaustion, using wave comparison, volume rate of change or z-score detection plus several confluence checks, including a higher-timeframe volume ROC. It is designed for Renko charts, with Heik

Strategy v6 Mean reversionVolume Repaints
Updated 5 months ago · None stated GitHub repository of Volume Exhaustion Strategy (VES)

BVortex SP500 4H

by Alberto082544
1 stars

BVortex SP500 4H is a momentum-based trend strategy designed for 4-hour charts. It calculates a scaled Vortex Indicator to detect extreme overbought and oversold zones. Long or short entry signals trigger when exiting these extreme levels with a confirming can

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of BVortex SP500 4H

This indicator draws horizontal lines and labels on the price chart for pre-market, prior-day, current-day, after-hours, prior-week and current-week highs, lows, opens and closes. Each level has its own switch, and a separate set of switches controls which pri

Indicator v6 Support & resistanceSessions & time Repaints
Updated 6 months ago · None stated GitHub repository of Price Levels Prior Current Day and Week

A strategy variant, described by its file name as optimized for long trades only, 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 b

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Auto Strategy Long Only
1 stars

This strategy identifies Initial Balance periods on NQ and ES futures charts using user-defined start and end hours in Eastern Time. It classifies days as narrow or wide based on average range lookback and skips narrow or trending days per settings. Entries tr

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB Mean Reversion Fade

MES Gamma (30DTE)

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 thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot da

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

Risk Interval Derivatives

by tqfoster1035
1 stars

Risk Interval Derivatives is an overlay indicator for E-mini S&P 500 and Nasdaq 100 futures. It detects ES or NQ from the chart symbol, takes a fixed risk interval in points (or a manual override), and plots multiples of that interval above and below the previ

Indicator v6 Support & resistanceVolatility & bands
Updated 10 months ago · None stated GitHub repository of Risk Interval Derivatives

COT Legacy

by ivansoft
1 stars

An indicator in a separate pane that plots Commitment of Traders legacy report metrics for the chart symbol, such as open interest, noncommercial, commercial and nonreportable positions and trader counts. Settings pick the metric, direction, data type, a selec

Indicator v6
Updated 1 year ago · None stated GitHub repository of COT Legacy

Nasdaq

by rosskevin
1 stars

This indicator plots market breadth metrics for the Nasdaq exchange in a separate pane. It calculates a simple moving average of the Nasdaq Advance-Decline line, switching between a 10-period average on weekly charts and a 50-period average on daily charts, co

Indicator v4 TrendMoving averages
Updated 5 years ago · AGPL-3.0 GitHub repository of Nasdaq
318 stars

Calculates and plots moving averages on selected VIX volatility terms (VIX9D, VIX, VIX3M, or VIX6M) in a separate pane. The script computes user-defined short and long moving averages using EMA or SMA. It shades the background red when the short-term moving av

Indicator v5 Volatility & bandsMoving averages
Updated 2 months ago · MIT GitHub repository of [TVT] VIX Short Term Danger
257 stars

This overlay indicator tracks sideways consolidations on the SPX price chart and flags breaks above or below that range. It builds a zigzag from the highest and lowest bars inside a loopback window, smooths nearby highs and lows with a rational quadratic kerne

Indicator v6 BreakoutSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of SPX 30M - Trading Chart
38 stars

Synthesizes macroeconomic indicators for the Vietnamese economy into a multi-pillar monitoring engine and composite risk score. It tracks inflation, policy rates, interbank interest rates, GDP growth, exchange rates, and sovereign bond yields using Taylor-rule

Indicator v6 Screeners & dashboards
Updated 5 weeks ago · None stated GitHub repository of MacroAcademic - VN Economy Engine

Bandz Po3 Profiler

by samuelharting
18 stars

Bandz Po3 Profiler draws an ICT-style power-of-three profile on the price chart. It plots higher-timeframe candles, C1 through C4 sequence boxes, T-Spot zones, CISD marks, fair value gaps, STDV projections, sweeps, midpoints, opens, and liquidity. It also mark

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Po3 Profiler

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