Pine Library · 712 open-source scripts

Free Index Pine Scripts for TradingView (page 3)

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

1 stars

A price-chart indicator aimed at Nifty and Sensex options that combines VWAP, central pivot range levels, three EMAs, Supertrend, optional Bollinger Bands, Parabolic SAR and previous-day high and low. RSI, MACD, stochastic and ADX readings feed a signal dashbo

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of Multi-Indicator Confluence System
1 stars

This overlay strategy is built for MNQ on a five-minute chart and is meant to trade imbalance fair value gaps. It reads one-hour and two-hour closes against exponential moving averages for directional bias, and it flags liquidity sweeps of the previous day hig

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of IFVG Strategy – MNQ 5min
1 stars

A futures strategy that looks for price touching pivot levels or dynamic touch zones during the regular session and enters on a rejection wick. A stack of optional filters must agree: VWAP, EMA, momentum, volume, a higher timeframe trend, a trend cloud, a VIX

Strategy v6 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Pivot Master Bot v4 Strict Zones
1 stars

This indicator is tuned for 30-minute micro gold futures. It computes a Keltner-style band around a Hull-type moving average and draws a coloured cloud on the price chart. A separate pane shows a smoothed mountain-style oscillator and candles, while a four-lin

Indicator v6 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of MMP v.17 Futures 30Min MGC

Bakome Buy Sell

by BAKOME-Hub
1 stars

This indicator plots a fast and a slow EMA, 5 and 13 by default, on the price chart and gives a buy or sell signal when they cross, optionally requiring the signal candle to close in the same direction. For each signal it draws an entry, an ATR-based stop loss

Indicator v5 Moving averagesTrend
Updated 5 months ago · MIT GitHub repository of Bakome Buy Sell

BAKOME ICT Institutional

by BAKOME-Hub
1 stars

BAKOME ICT Institutional is an overlay indicator that implements Inner Circle Trader concepts directly on the price chart. It calculates 50 and 200 EMAs for trend direction, identifies market structure breaks and changes of character using pivot points, and de

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · MIT GitHub repository of BAKOME ICT Institutional

Hybrid Strategy Trend ORB MTF

by eliasvictor-trading
1 stars

An indicator for intraday futures that builds an opening range for each session and marks breakout signals once price clears it by a tick buffer, with gap filtering and one signal per direction per range. A trend filter uses two moving averages and a higher ti

Indicator v6 BreakoutSessions & time
Updated 5 months ago · MPL-2.0 GitHub repository of Hybrid Strategy Trend ORB MTF

Chintan Cheatcode

by onlyspx
1 stars

This indicator overlays a stack of reference lines on the price chart for index trading: session VWAP, optional two-day, weekly and monthly VWAP, an hourly 20-period average, daily 5, 20, 50 and 200 averages and a daily halfback midpoint. It can also show ATR-

Indicator v6 Moving averagesSupport & resistance
Updated 6 months ago · None stated GitHub repository of Chintan Cheatcode

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
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)

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

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

A strategy for index charts such as the S&P 500 on five minutes, trading only inside a configurable New York time window. It looks for a large-bodied candle, measured against ATR, that follows a short-term liquidity sweep of recent highs or lows, with an optio

Strategy v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Gemini ICT V11 Extended Dashboard

Market Fear Gauge Pro

by wiktorjl
1 stars

A separate-pane sentiment oscillator that blends several fear and greed components into one composite score: VIX, market breadth, put/call ratio, safe-haven flows, momentum, price strength, junk bonds and an optional crypto component. Scores are shown as z-sco

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Market Fear Gauge Pro

ICT iFVG Continuation Engine

by kashifali1234a12-beep
1 stars

A strategy that tracks fair value gaps on a higher timeframe, 15 minutes by default, and watches for price to tap a zone and then invert a one-minute fair value gap before entering. It trades only inside a set session window, limits trades per day, and can opt

Strategy v5 SMC / ICT / price actionSessions & time
Updated 8 months ago · None stated GitHub repository of ICT iFVG Continuation Engine

MES Gamma (0DTE)

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

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

ES Professional Fade

by knectardev
1 stars

An ES futures fade strategy designed to trade market opening gaps during regular trading hours. It calculates opening gaps using percentage, point, and ATR thresholds while employing a market breadth TICK filter to veto trades on trend days. It features an exe

Strategy v6 Sessions & timeMean reversion
Updated 9 months ago · None stated GitHub repository of ES Professional Fade
1 stars

RI LONG Levels is an overlay indicator for ES and NQ futures that sets out a manual long reversal plan. It anchors on the previous session close, then draws an entry level at a chosen multiple of a risk interval below the anchor, with a target and a stop level

Indicator v6 Support & resistanceMean reversion
Updated 10 months ago · None stated GitHub repository of RI LONG Levels REVERSAL_TOUCH
1 stars

This strategy uses a fast and a slow simple moving average with the bar's price range. In its default long-only mode it buys when price sits below the fast average, in the lower part of the bar range, while staying above the slow average, and exits when price

Strategy v6 Mean reversionMoving averages
Updated 10 months ago · None stated GitHub repository of Mean Reversion Pro Strategy

MTF Checklist Dashboard

by eliasvictor-trading
1 stars

An overlay indicator that shows a colour-coded table of market conditions across six timeframes, 1, 5, 15, 30, 60 and 240 minutes by default, including opening range breakout status and distance from the daily high and low. It prints arrow signals when enough

Indicator v6 Screeners & dashboardsSessions & time
Updated 11 months ago · None stated GitHub repository of MTF Checklist Dashboard

Normalises USD/TWD, TSMC, the 0050 ETF, the dollar index and the SOXX semiconductor ETF against their own moving averages and plots them together. It then measures rolling correlations of USD/TWD with the dollar index, SOXX and TSMC, and labels whichever has t

Indicator v5 Screeners & dashboards
Updated 11 months ago · MIT GitHub repository of TWD Triple-Layer Driver Detector

Modified Asia Sweep

by HibrowSamuvelChristin
1 stars

Modified Asia Sweep is a futures strategy sample built around the Asian and London sessions, with session hours and time zone as inputs. It draws session ranges, Asian swing points, market structure and break of structure lines. Position size can be set by a f

Strategy v5 Sessions & timeSMC / ICT / price action
Updated 1 year ago · Custom licence GitHub repository of Modified Asia Sweep

MR First Entry Backtester

by gaurav4ever
1 stars

A strategy for 5-minute charts that builds a morning range of either five or fifteen minutes after the market open and takes the first breakout entry, with an entry buffer in ticks. An optional trend filter buys only above and sells only below the 50 EMA, and

Strategy v5 BreakoutSessions & time
Updated 1 year ago · None stated GitHub repository of MR First Entry Backtester

ORB Fresh v3

by abhidp
1 stars

Opening range breakout strategy on the price chart. It measures the high and low of a configurable opening window, 09:30 to 09:45 by default, ignores ranges below a minimum point size, and trades breakouts of that range. Position size is based on a risk percen

Strategy v6 BreakoutSessions & time
Updated 1 year ago · None stated GitHub repository of ORB Fresh v3

CCE ORB

by ylohnitram
1 stars

Marks the opening range of the US stock session on the price chart. The range starts at 9:30 New York time and lasts a set number of minutes, 15 by default, with optional extension levels projected from it. A setting limits the display to the morning or to the

Indicator v5 Sessions & timeBreakout
Updated 1 year ago · None stated GitHub repository of CCE ORB

A breakout strategy built for S50 futures on a 30-minute chart. It tracks confirmed swing highs and lows from pivot detection and places stop-order entries when price breaks the latest swing level. The stop sits one ATR beyond the opposite swing, the target is

Strategy v6 BreakoutSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of S50 TFEX Trend Following Breakout

A pivot breakout strategy for the S50 futures on a 30-minute chart. Swing highs and lows are found from left and right bar counts, with stop entries placed beyond them. Each entry has an exit order with a stop one ATR past the pivot and a limit set by a risk t

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

COT Disaggregated

by ivansoft
1 stars

An indicator in a separate pane that plots Commitment of Traders disaggregated report metrics for the chart symbol, such as open interest, producer merchant, swap, managed money and other reportable positions. Settings pick the metric, the direction (long, sho

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

TICK.US Status Box

by BrayFlex
1 stars

TICK.US Status Box is an overlay indicator that reads the NYSE TICK index (TICK.US) on the chart's timeframe and shows its value in a small box. The box text reads very low, normal, high or very high depending on three adjustable level inputs, and the box colo

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of TICK.US Status Box

Sovren COT Smart Index

by Eazynesta
1 stars

A separate-pane indicator that reads weekly Commitments of Traders data through a TradingView library and plots net positioning for commercial, non-commercial and non-reportable traders. Each series is normalised to a 0 to 100 scale over a configurable lookbac

Indicator v5 Oscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Sovren COT Smart Index

0DTE IF

by tyler314
1 stars

This indicator simulates zero-day-to-expiration options trades by plotting scheduled entry and exit shapes directly on the price chart. It signals entries on Mondays, Wednesdays, and Fridays at a user-defined time when the VIX remains below a specified limit.

Indicator v5 Sessions & timeVolatility & bands
Updated 4 years ago · None stated GitHub repository of 0DTE IF

This indicator identifies and plots key options expiration dates on the price chart. It calculates monthly OpEx (the third Friday of each month), quarterly OpEx (March, June, September, December), and corresponding VIX expiration dates, drawing vertical lines

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Expiration Highlights: Opex, Quarterly Opex & VIX with Vanna/Charm

200DMA last DOM - ajh

by hasnocool
106 stars

This strategy executes a long-only trend-following system based on a simple moving average, designed primarily for daily charts. It plots the moving average directly on the price chart and evaluates trading signals strictly on a user-defined day of the month,

Strategy v5 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of 200DMA last DOM - ajh

AM TBR — NQ Stats

by TamaraKGreen
46 stars

The AM TBR indicator calculates statistical levels for NQ futures using standard deviation. It plots a sigma ladder showing touch levels at 0.5 to 2.0 standard deviations, marks touch points, displays Mean Absolute Error (MAE) zones after touches, and shows Me

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of AM TBR — NQ Stats

ORB Pro - Research-Based ORB

by Mrshahidali420
16 stars

The ORB Pro indicator calculates and plots Opening Range Breakout levels, stop-loss and take-profit zones, signal labels, and an status dashboard on the price chart. Built on academic research, it evaluates trades using an opening-candle direction filter, open

Indicator v6 BreakoutSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of ORB Pro - Research-Based ORB

Equity Intraday Analyst

by chris-c-thomas
14 stars

Equity Intraday Analyst is a comprehensive intraday overlay indicator for US equities and ETFs. It evaluates multi-EMA ribbons, session-anchored VWAP bands, OBV trends, momentum oscillators, TTM Squeeze, and optional market breadth indicators like NYSE TICK an

Indicator v6 TrendVolume
Updated 6 months ago · MIT GitHub repository of Equity Intraday Analyst
13 stars

This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy

C41 Key Calendar

by damianpitt
6 stars

Identifies and highlights recurring key market calendar dates directly on the price chart. It plots visual lines and labels for month, quarter, and year opens and closes, as well as monthly and quarterly options expiration (OPEX), OPEX week starts, earnings se

Indicator v6 Sessions & time
Updated 8 weeks ago · MIT GitHub repository of C41 Key Calendar
6 stars

This indicator detects and visualizes Candle Range Theory (CRT) setups directly on the price chart across defined session windows. It tracks 1-hour and 4-hour key ranges for Asian, London, and New York sessions using higher-timeframe data. The script draws hor

Indicator v6 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT All-Models Visual Suite v6
5 stars

ChandraQuant Kala-Chakra is an overlay indicator for Indian equity indices. It calculates Sun and Moon ecliptic longitudes from Meeus periodic series, converts them to the sidereal zodiac with the Lahiri ayanamsa, and marks nakshatra changes, Purnima and Amava

Indicator v6 TrendMoving averages
Updated 7 weeks ago · MIT GitHub repository of ChandraQuant — Kāla-Chakra
5 stars

This indicator identifies long mean-reversion trade opportunities when price stretches significantly below the Volume Weighted Average Price (VWAP). It triggers a signal during regular trading hours when price moves a defined minimum number of ticks below VWAP

Indicator v5 Mean reversionVolume
Updated 5 months ago · Custom licence GitHub repository of Path B — VWAP Reversion (Demo)
4 stars

This strategy executes trades on 5-minute index futures using Exponential Moving Averages, RSI, ADX, and volume filters across multiple timeframes. It supports trend pullback and VWAP reversion regimes with entry confirmation on breakout of prior high or low p

Strategy v6 TrendMean reversion
Updated 2 days ago · None stated GitHub repository of Lucid 100K Prop Bot (MES 5m)
4 stars

This indicator calculates and plots predicted future Bollinger Bands mid, upper, and lower lines for 300 bars ahead using linear extrapolation. It draws these prediction lines in a separate pane below the price chart. Users can adjust the prediction horizon in

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of GOM BB Prediction (300 bars)
4 stars

Meridian Futures Levels plots session structure for US index futures on the price chart. It marks the full futures session, overnight high and low, an optional overnight midpoint, and the regular-trading-hours open. It draws a configurable opening range with m

Indicator v6 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Futures Levels
4 stars

This strategy draws on the price chart and is set up for daily ETF trading. It can enter through a classic surge-and-consolidation breakout, a pullback toward stacked EMAs, a relative-volume spike with price momentum, or a pause inside a strong trend. EMA leng

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Qullamaggie Breakout Strategy

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