Pine Library · 712 open-source scripts

Free Index Pine Scripts for TradingView (page 7)

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

This strategy plots a fast and a slow simple moving average on the price chart and enters long when the fast average crosses above the slow average, or short on a cross below. Longs also require ADX above a threshold, RSI below 65, ATR above a minimum, and a b

Strategy v5 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Quantum Entanglement (Filtered MA Crossover)

This strategy enters long when the close breaks above the prior lookback high and volume exceeds its simple moving average, but only if a VIX regime score is at least three. The score counts whether the VIX to three-month VIX ratio and the VIX level sit below

Strategy v5 BreakoutVolatility & bands Repaints
Updated 10 months ago · MIT GitHub repository of Auto Breakout Strategy mit VIX Heatmap Gate
2 stars

This indicator displays an on-chart comparison table tracking eleven major industry sector ETFs against a benchmark index, typically SPY. It calculates percentage price changes over a selectable timeframe, evaluates relative strength versus the benchmark, prov

Indicator v6 Screeners & dashboardsTrend
Updated 1 year ago · MPL-2.0 GitHub repository of Industry Indices Comparison
1 stars

An overlay that sketches a same-day iron condor on the S&P 500 index or its ETF and mini equivalents, detecting which instrument is loaded. It tracks an opening observation window, then at a set build time projects short strikes a chosen percentage out of the

Indicator v5 Sessions & timeSupport & resistance
Updated yesterday · None stated GitHub repository of ZeroDTE Iron Condor v1

A strategy that classifies each bar as bull or bear trend, bull or bear expansion, chop or neutral using EMA slope, ADX and an ATR ratio, with an optional higher timeframe EMA bias. Depending on the regime it uses trend pullback entries, expansion breakout ent

Strategy v6 TrendBreakout Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Adaptive Market Regime Hierarchy Strategy v1

An overlay indicator limited to the one-minute chart that records the high and low of an opening range at a set market open time. It draws high, low and average lines plus dotted entry levels beyond the range, extending to the session end. A daily flag is kept

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

Kernal Cipher Strategy

by kdricha0602
1 stars

Kernal Cipher Strategy is a price-chart overlay that backtests the Kernal Cipher confirmed-bar signal engine. It enters long or short at the next bar's open when trend, regime, and oscillator filters agree, then exits on an adaptive ATR stop or an opposite sig

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

This indicator implements an ICT and SMC decision engine directly on the price chart. It calculates Fair Value Gap consequent encroachment entry triggers alongside multi-tiered profit targets and structure-anchored stop losses. Trades are filtered through prem

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Quantum Flow - FVG CE + TP Tiers

GEKO Strategy

by grzegorzkowalskigk-jpg
1 stars

This strategy backtests a Candle Range Theory model on the price chart, with variants that also require a CVD divergence, an absorption candle, or both. Entries can be taken on a midline retest, with the stop placed using an ATR buffer. Risk is sized as a perc

Strategy v6 SMC / ICT / price action
Updated 3 months ago · Custom licence GitHub repository of GEKO Strategy

Session Extension Bands

by abhinaynatraj
1 stars

An indicator that projects how far price has typically extended beyond the prior session's close, using a rolling lookback of up to 500 days. The London projection is anchored to the Asia close and the New York projection to the London close, with boxes and pr

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Session Extension Bands
1 stars

An indicator for the price chart that draws intraday levels for Nasdaq futures by combining a volatility-index implied one-day move from the cash open with an initial balance extension. The blend can be a midpoint, maximum extension or minimum conservative mod

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of Intraday Hold Levels (VIX + IB)

MTF RSI Management

by iyoshikawa
1 stars

An overlay indicator built around a fast and a slow smoothed RSI, a double-smoothed stochastic, an EMA trend line and an ADX filter, combined with a volume filter to grade setups from B to A+. Presets adapt settings for crude oil, Nasdaq, S&P 500 and Dow futur

Indicator v5 Oscillators & momentumTrend Repaints
Updated 5 months ago · None stated GitHub repository of MTF RSI Management

Renko MACD Futures Long Only

by PETERSAMUELOPS12
1 stars

A long-only futures strategy that simulates Renko bricks on a normal time chart and calculates MACD on the brick closes, which filters out time-based noise. A bullish MACD crossover on the bricks opens a long when price is above a trend SMA by a buffer. Exits

Strategy v6 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of Renko MACD Futures Long Only

ORB

by onlyspx
1 stars

This indicator marks the opening range of the trading session on the price chart. The range period can be 5, 15, 30 or 60 minutes, or a custom session and time zone for non-US markets. It draws the range high and low, an optional shaded box and midpoint, plus

Indicator v5 Sessions & timeBreakout
Updated 6 months ago · None stated GitHub repository of ORB
1 stars

A futures strategy for 30-minute charts that fades extreme moves away from a daily-reset VWAP. It looks for price beyond a configurable number of standard deviations from VWAP, a short RSI in oversold or overbought territory, and an ADX reading below a maximum

Strategy v6 Mean reversionSupport & resistance
Updated 6 months ago · None stated GitHub repository of AlgoBot VWAP Mean Reversion Strategy

Energy Block V11 Balanced

by shawnwong84
1 stars

The balanced 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 inde

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Balanced

ORB Pullback

by Prat617
1 stars

This strategy identifies an Opening Range based on user-defined Eastern Time session parameters and waits for a breakout. Rather than chasing the initial move, it enters positions when price pulls back to retest the Opening Range boundary with volume and EMA t

Strategy v6 BreakoutMoving averages
Updated 7 months ago · MIT GitHub repository of ORB Pullback

MNQ Gamma (0DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for MNQ (Micro Nasdaq-100 futures, scaled from QQQ options) expiring in the same day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated

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

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, with alerts for price crossing above the high or below the low. It also plots VWAP, pivot-based support and

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

This strategy calculates the Supertrend using ATR period and factor inputs, then plots green lines for up direction and red lines for down direction on the price chart. It signals long entries when Supertrend changes to positive and short entries when changing

Strategy v5 TrendMoving averages
Updated 2 years ago · MPL-2.0 GitHub repository of Hello World, Supertrend

Mojito v3 Strategy

by namuan
318 stars

The Mojito v3 Strategy indicator evaluates volatility term structure by calculating the ratio between front-month and second-month VIX futures contracts. It smooths this ratio using a configurable median filter and compares the result against user-defined uppe

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Mojito v3 Strategy
257 stars

This strategy plots VWMA-based Bollinger bands on the 1-minute ES futures price chart for volatility analysis and potential breakout identification. It calculates dynamic long and short stop loss and take profit levels using percentage inputs relative to entry

Strategy v6 Volatility & bandsSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of V1.6 ES - Futures 1M No Repaint

RS指標

by TaichiS
219 stars

This indicator calculates and displays the relative strength of an asset compared to a benchmark index. It plots the 21-bar percentage return of the current chart symbol alongside the daily return of the TWSE TAIEX index in a separate pane. A zero baseline mar

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of RS指標

IB / ORB Live Stats

by TamaraKGreen
46 stars

This overlay indicator marks the New York initial balance and a configurable opening range on the price chart and reports live range statistics in two tables. It builds an IB box for a default 09:30–10:30 ET window, an ORB box from 09:30 for a set number of mi

Indicator v6 Sessions & timeBreakout
Updated 7 weeks ago · None stated GitHub repository of IB / ORB Live Stats

Advance Decline Ratio

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the ratio of advancing stocks to declining stocks on the New York Stock Exchange. It requests close prices from the USI:ADVN.NY and USI:DECL.NY ticker symbols using the security function and divides advances by declines. The

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Advance Decline Ratio

Bandz Session Ranges + ORG + Opening Prices plots trading session ranges, killzones, opening RTH gaps, standard deviation projections, and key opening prices directly on the price chart. It calculates gap ranges based on prior regular trading hours close sourc

Indicator v6 Sessions & timeSupport & resistance
Updated 2 weeks ago · MPL-2.0 GitHub repository of Bandz Session Ranges + ORG + Opening Prices

Market Monitor 5m

by chris-c-thomas
14 stars

Market Monitor 5m is an intraday context overlay designed for 5-minute chart analysis. It calculates directional bias using exponential moving averages, VWAP, TTM Squeeze volatility state, NYSE TICK market breadth, and ATR volatility regimes. The script plots

Indicator v6 Screeners & dashboardsSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Market Monitor 5m

30 Laws Dashboard

by AllienNova
5 stars

This indicator overlays a regime and risk dashboard on the price chart. It calculates ADX from DMI, an ATR ratio against a long moving average of ATR, and a daily VIX close. It labels the market SHOCK, TRENDING, RANGING, or TRANSITION using those thresholds. I

Indicator v5 Screeners & dashboardsTrend
Updated 8 weeks ago · None stated GitHub repository of 30 Laws Dashboard
4 stars

This intraday strategy executes trades using dual EMA crossovers and RSI mean-reversion near VWAP. Designed primarily for 5-minute index futures charts like ES and MES, it offers momentum entries on fast and slow EMA crosses confirmed by VWAP, as well as count

Strategy v6 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Ultimate Combo v2 (Relaxed)

TF Bias Detector (SMC)

by Sidoine1991
4 stars

This indicator tracks multi-timeframe momentum and trend direction across M1, M15, H1, and H4 horizons. It plots four 14-period RSI curves in a separate pane alongside 30, 50, and 70 reference levels. Directional bias values are calculated by comparing price t

Indicator v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of TF Bias Detector (SMC)
4 stars

Meridian Options Levels plots clustered reaction zones on the price chart for liquid options underlyings. It groups nearby candidate levels using confirmed daily ATR distance and tick or percent tolerances, then sizes each zone between minimum and maximum ATR

Indicator v6 Support & resistanceSessions & time
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Options Levels

IBD Power Trend

by major
2 stars

This indicator tracks Investor's Business Daily style Power Trend rules and setup conditions in a separate pane. It evaluates whether price lows hold above an exponential moving average, verifies that the fast EMA remains above a rising simple moving average,

Indicator v6 TrendMoving averages
Updated 3 months ago · Apache-2.0 GitHub repository of IBD Power Trend
2 stars

Calculates the divergence between global money supply growth and benchmark equity performance to highlight potential market turning points. It aggregates M2 money supply metrics across major economies—including the US, China, Eurozone, Japan, UK, Canada, and S

Indicator v6 DivergenceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Central Bank Liquidity Gap Indicator
2 stars

This indicator overlays a volatility filter on the price chart. It loads CBOE VIX and VIX3M closes, divides VIX by VIX3M, and smooths that ratio with a five-bar simple moving average. A breakout is marked allowed only when the smoothed ratio is below 0.98 and

Indicator v5 Volatility & bandsBreakout
Updated 10 months ago · MIT GitHub repository of Harter VIX Curve Breakout Filter

The Industry Indices Comparison - SWE indicator displays a performance dashboard table directly on the price chart to evaluate relative sector strength. It tracks up to eleven Swedish industry sector indices against a selected benchmark index. The indicator ca

Indicator v6 Screeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Industry Indices Comparison - SWE
2 stars

This indicator tracks and plots market breadth data for major stock market indices such as the S&P 500, Nasdaq, Dow Jones, and Russell indices in a separate pane. It fetches external market breadth metrics showing the percentage of stocks trading above various

Indicator v5 Moving averages
Updated 1 year ago · None stated GitHub repository of 市场宽度 - Market Breadth

Breakout Strategy

by Web3Degenerate
2 stars

This strategy detects price breakouts beyond the high or low of a higher timeframe (default Daily) on an intraday chart. When the close crosses above the higher-timeframe high or below its low, it enters long or short, limiting execution to one breakout per di

Strategy v5 BreakoutSupport & resistance
Updated 2 years ago · None stated GitHub repository of Breakout Strategy
1 stars

An overlay for the S&P 500 index that measures the opening range over an observation window, classifies the day as volatile or not by comparing that range with the daily ATR, and projects high and low boundaries for the session. Reversal signal triangles appea

Indicator v5 Sessions & timeMean reversion
Updated yesterday · None stated GitHub repository of ZeroDTE Range Predictor

Dhan+Webhook

by 7b809
1 stars

An overlay indicator that combines a Hull-style moving average, selectable as HMA, EHMA or THMA, with pivot-based support and resistance lines and optional labels. It builds alert messages in JSON for a broker webhook, including action, price, quantity, order

Indicator v5 Moving averagesSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Dhan+Webhook

DMS v2 Breadth Dispersion

by AssetWhisper
1 stars

An indicator in a separate pane that compares a cap-weighted index with its equal-weighted counterpart, SPY and RSP by default, to gauge market breadth. It takes the log ratio of the two, then adds its momentum, a z-score, a percentile rank, divergences agains

Indicator v5 DivergenceScreeners & dashboards
Updated 7 weeks ago · MPL-2.0 GitHub repository of DMS v2 Breadth Dispersion
1 stars

A counter-trend strategy that fades price when it reaches a Pivot Point SuperTrend band, selling into upward stretches and buying into downward ones. Signals can fire on a touch of the band, on a regime flip, or both. Optional filters use the opening range of

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · None stated GitHub repository of Contra Pivot SuperTrend Fade

Fractal Sweep

by abhinaynatraj
1 stars

An indicator for futures that finds a sweep of a prior higher-timeframe candle's high or low, a return, and a change in state of delivery (CISD) confirmation, then draws the trade setup. It places entry, stop at the sweep extreme or CISD level and an R:R targe

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Fractal Sweep
1 stars

An overlay that trades pullbacks to VWAP in the direction of a higher-timeframe EMA trend. In an uptrend with VWAP rising it signals a buy when price dips back to VWAP, and in a downtrend a sell when price rallies to it. A stricter grade needs price to have st

Indicator v6 Mean reversionTrend
Updated 4 months ago · None stated GitHub repository of VWAP Pullback A+ Dip Scanner

NQ VIX IB Levels

by qmqvt44stq-del
1 stars

An indicator for the price chart that draws intraday price levels above and below the session by blending an initial balance extension with a volatility-index implied move, then adding a point offset. The volatility index is chosen automatically from the futur

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of NQ VIX IB Levels

MTF RSI Signals

by iyoshikawa
1 stars

This indicator plots multi-timeframe RSI signals on the price chart. It calculates a smoothed RSI using short and long periods with EMA smoothing, then applies a Stoch filter for direction changes. Signals trigger on crossovers and levels, combined with ADX tr

Indicator v5 Oscillators & momentumTrend Repaints
Updated 5 months ago · None stated GitHub repository of MTF RSI Signals

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