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.
This indicator draws Busby-style pivot levels on the price chart for XSP, using a selectable MES or ES futures symbol. It stores New York premarket highs, lows, and closes on the chart and on a 15-minute MES series, then builds an opening-range box after the r
A strategy that reads an external oscillator, called the thermometer, through a source input and trades a chosen signal symbol, SPX by default, according to high and low temperature thresholds of 75 and 25. Buy and sell modes include buying high and selling lo
A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced offline fro
This strategy captures the first bar of each new day as an opening range and plots those high and low levels on the price chart. It enters one long position if price trades above the range high, or one short if price trades below the range low, then blocks fur
This overlay strategy is built for ES futures on the one-minute chart. It plots a volume-weighted moving average of price opens and standard-deviation bands at Fibonacci ratios, plus a second longer volume-weighted average from a higher-timeframe open. Call an
This overlay script is a headless volume-profile parity shell rather than a signal indicator. It fixes a one-minute source, Chicago regular-hours session, four-tick rows, a 70 percent value area, and named algorithms for the point of control, value area, and r
This strategy trades E-mini and Micro E-mini S&P 500 futures on the price chart. It enters long when a fast EMA crosses above a slow EMA during New York regular trading hours, and enters short on the opposite cross unless long-only mode is on. Each entry place
A strategy meant for a 5-minute chart that detects a break of a delta-based level on a 15-minute context, waits for a retest from the correct side, then enters on a reclaim candle. Gates include estimated pressure rotation, candle body and close location, entr
An overlay indicator that captures the high and low of an opening range starting at a configurable hour and minute, then computes the range average and extension levels from it. A 9 and 21 EMA pair is plotted with triangle markers on crossovers. Toggles show o
This indicator tracks intraday key levels, premarket ranges, and opening range boundaries on index instruments like XSP. To compensate for missing premarket data on index charts, it streams and scales MES futures data to compute sentiment thresholds and target
A New York session strategy built on the initial balance, the price range of the first hour after the 09:30 Eastern open. It tracks the high and low of that opening window, draws a box, computes an anchored session VWAP and, once the range has formed, scans a
A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in about fifty-five days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced o
This strategy tracks the opening 1-minute range during regular market hours and trades the subsequent breakout on the price chart. It locks the high and low of the 09:30 to 09:31 session and plots both levels as trigger lines. A long position is taken if price
The ESH2023 5M strategy is a Pine Script v5 indicator for E-mini S&P 500 futures trading on the 5-minute chart. It calculates a Stochastic oscillator from Ichimoku cloud high/low averages using inputs for K period, D period, and smoothing. The script signals l
Zen ATH Bands calculates the all-time high or current price of an asset and projects horizontal reference lines representing percentage pullback levels. It draws up to seven user-defined drawdown thresholds below the baseline, complete with custom price and pe
This strategy trades Donchian breakouts on the price chart and sizes each unit from a percentage of equity. It allows long and short entries, places an ATR initial stop, trails with a chandelier stop, and can add units as price moves by a multiple of ATR, up t
A strategy that replaces the break detector of its earlier stage with a CUSUM change point test on the chart timeframe, using a lookback, threshold and slack setting. After a change point it waits for a retest of the regime zone from the correct side, a reclai
An overlay indicator that builds opening range levels from a configurable market open time in the Asia/Kolkata timezone, then derives sub-levels and second and third support and resistance lines from the range. It adds 9 and 21 EMAs with crossover arrows and c
A price-chart overlay that draws a static set of options gamma levels for SPX (the S&P 500 index) expiring in about eighty-five days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-03, produced
ES Professional Fade is an intraday mean-reversion strategy designed for fading opening gaps on ES futures. It identifies market opening gaps using defined percentage and ATR thresholds, then places stop orders to fade the move while utilizing market breadth e
This strategy executes trades on futures contracts by combining custom smoothed price bars with a multi-timeframe stochastic oscillator and Ichimoku elements. It calculates percentage-based stop-loss and take-profit targets for long and short positions. It ove
This strategy enters long or short Donchian breakouts and sizes each unit from a percentage of equity and ATR. It sets an initial ATR stop, trails with a chandelier stop, and tightens that trail after a chosen number of bars. Optional profit targets close one
SPY Trending is an indicator designed for SPY that evaluates trend alignment across multiple timeframes using Exponential Moving Averages (5, 10, and 20 EMAs). It fetches data across lower and higher timeframes to evaluate buy and sell conditions, displaying t
An overlay indicator combining opening range support and resistance levels with a 9 and 21 EMA cross on the chart symbol. It also requests data for four user-chosen option contract symbols and shows their prices and EMAs in a table, with cross times recorded.
Heikin Ashi Trend is a trend-following strategy that calculates Heikin Ashi candle values and moving averages directly on the main price chart. It generates long and short entry signals when a user-defined number of consecutive Heikin Ashi bars align with fast
A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in the same day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from
ES Professional Fade is an overlay strategy aimed at the ES futures contract. This archived file is only a placeholder and contains no entry, exit, or order logic. Its changelog says the version adds opening-range calculation with freeze logic, session-boundar
This strategy combines Arnaud Legoux Moving Average percentage price change calculations with an adaptive Gaussian Moving Average to generate trend-following signals. Long and short entries are triggered when the ALMA change calculation crosses above or below
This overlay strategy trades Donchian breakouts in either direction. The first unit is sized from a risk percent of equity and an ATR-based initial stop; later units are added at fixed ATR steps and are progressively smaller, up to four units. Optional profit
This indicator plots a heuristic volume-balance oscillator in a separate pane. It estimates signed volume from the close location inside each bar, multiplies that by volume, and sums the proxy over a rolling window. The sum is scaled between minus one and plus
An overlay indicator that records the high and low of an opening range from a configurable open time and draws high, low and average lines to the session end. Optional toggles add sub-levels, second and third support and resistance lines and rounded buy strike
A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in one day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from an o
This strategy calculates volume-weighted moving averages and standard deviation Fibonacci channels using price data from multiple timeframes. It overlays these volatility bands directly on the main price chart to identify potential trend levels. Automated trad
This trend-following strategy plots Donchian channels and execution signals directly on the price chart. It calculates Average True Range volatility to determine position sizing based on a fixed risk percentage of account equity. Long and short entries trigger
Calculates the Volatility Risk Premium (VRP) by comparing implied volatility against realized volatility calculated using Close-to-Close, Parkinson, or Garman-Klass methods. It plots VRP values as a histogram or line in a separate pane with optional Bollinger
The Stock and NQ Futures Convergence Strategy identifies trading opportunities by comparing the Relative Strength Index of the active chart stock against NQ futures. It enters a long position when NQ RSI rises above the upper threshold while the stock RSI stay
A price-chart overlay that draws a static set of options gamma levels for SPY (the S&P 500 ETF) expiring in thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline from
This strategy executes gap-fade trades on E-mini S&P 500 futures during Regular Trading Hours. It compares the current market open with the prior session close to identify opening gaps, qualifying entries using minimum gap percentages, index point minimums, an
An indicator in a separate pane that shows buy and sell signals with optional chop, moving average and time-of-day filters. It adds profit target lines at a tick distance, a profit wave band, background trend colouring and candle colouring. Built-in text descr
This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver
ESU2023-10M - V1 is an intraday trend-reversal strategy designed for index futures contracts on the price chart. It calculates a 3-period moving average of candle highs and lows alongside specific three-bar price action patterns to detect short-term swing high
This overlay indicator decomposes a chosen index move into approximate contributions from its largest members. It tracks NDX, SPX, DJIA, or RUT using hard-coded weights and a table of member percentage changes versus the prior daily close, the regular-hours op
LeMan Trend Indicator calculates buy and sell values using normalized differences between current and highest/lowest highs and lows over adjustable lookback periods. It plots a zero line signal in a separate pane and normalized buy and sell lines in colors. Ma
This strategy runs on the price chart and enters long when a fast simple moving average crosses above a slow one, and short on the opposite cross, while closing the other side. Entries also need ATR above a filter, a pullback check, a minimum candle-body chang
Implements a Donchian breakout trend-following strategy filtered by ADX trend strength. It initiates long or short positions when price breaks Donchian channel extremes and ADX exceeds a specified threshold. Positions are sized using ATR volatility with Turtle
A merged strategy that combines two entry engines on one chart. The anchor trail engine uses a dynamic equilibrium level called P0, built from a rolling volume and delta profile, and scores acceptance and rejection against structural levels such as POC and val
An overlay indicator meant for option charts. It finds pivot levels on the current call or put symbol, flags a breakout when two consecutive bars open and close beyond the level, and requests the matching opposite contract by swapping the call or put letter in
V12 Swing Sniper Pro is a swing trading indicator for Bursa Malaysia stocks. It layers macro and sector filters atop Minervini-style trend quality gates and RSI checks to validate bullish setups. The script fires buy signals when coiling, pullback proximity, b
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.