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.
Ghost Zone v9 is an institutional analysis chart overlay designed primarily for index trading. It identifies demand and supply zones using volume profiling, Fair Value Gaps, and institutional candle patterns. It calculates Point of Control levels, market phase
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
This strategy fades opening gaps on ES during the New York regular session and draws on the price chart. It checks the gap against a minimum percentage, a minimum point size, and an optional ATR multiple, then uses a five-, fifteen-, or thirty-minute opening r
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
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
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
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
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
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
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
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
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
This strategy trades exponential moving average crossovers designed for NQ and MNQ futures contracts on intraday timeframes. It calculates three EMAs (8, 55, and 165 periods) and generates entry signals during a user-defined trading session when previous day v
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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.