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 long-only strategy combines 9, 21, and 200 EMAs with a Daily 50 EMA macro trend filter. It enters trades when the fast EMA crosses above the slow EMA while MACD is positive, price is above trend EMAs, and ADX confirms sufficient trend strength. Exits are
This indicator turns pasted text lines of low price, high price and a zone label into horizontal zones on the price chart, for S&P 500 futures or index charts. For index symbols it subtracts a configurable futures-to-index spread from the zone prices. It can a
A futures strategy for 15-minute charts that builds a daily-reset VWAP with standard deviation bands. It requires several consecutive bars on one side of VWAP, then a pullback to within a small percentage of it and a bar closing in the trend direction. Entries
The quality-first 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
This intraday strategy identifies mean-reversion fade setups around the previous day's high and low (PDH/PDL). Operating within a configurable morning session window, it seeks rejection setups confirmed by volume spikes above an average threshold. Trades use s
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 one day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026
A Pine Script v6 library that supports Commitment of Traders data requests. It holds the metric names and allowed directions (long, short, spreading) for the legacy, disaggregated and financial CFTC report types, so that other scripts can build the right data
A Pine v4 indicator in a separate pane that works as a sector advance-decline count. It pulls closing prices for eleven US sector ETFs (materials, communications, energy, financials, industrials, technology, staples, real estate, utilities, health care and dis
This strategy calculates dynamic support and resistance levels using pivot highs and lows alongside a custom smoothed trend filter and a 3-period EMA. It identifies entry opportunities when price breaks out relative to the trend filter and short-term EMA cross
The IB/ORB Statistical Mapper plots Initial Balance (IB) and Opening Range Breakout (ORB) ranges for 5-minute, 15-minute, and 60-minute windows relative to the New York session open. It renders colored boxes, midpoints, and open lines directly on the price cha
Pocket Scout - SPY/QQQ is a mobile-optimized intraday bias indicator designed for major US equity ETFs and indices. It overlays a 9/21/50 EMA ribbon, session VWAP, prior day high/low/close levels, and intraday high/low lines directly on the main price chart. T
Institutional Bias Scanner draws a multi-symbol dashboard on the price chart together with optional session overlays. It watches sixteen user-selected symbols that default to major forex pairs, gold, the dollar index, equity indices, oil and crypto. Theme and
This indicator overlays a visual order-flow dashboard on the price chart using left-aligned labels. It shows a buyer-versus-seller percentage gauge, a signed delta reading, a cumulative volume delta value, and an eight-direction momentum compass colored by bul
This indicator identifies liquidity sweeps and stop hunts on price charts by detecting candles that breach recent high or low levels before closing back inside the previous range. Users can filter signals using lookback windows, minimum wick size relative to c
This indicator compares US sector ETFs with technology and utilities using price ratios that can be log-transformed. It smooths those ratios with a simple moving average and measures fast and mid-length percentage change to classify financials versus technolog
This indicator calculates Mansfield Relative Strength by comparing the current asset's close against a reference index, sector, or industry benchmark. It plots the resulting relative strength curve alongside an exponential moving average in a separate pane, hi
Failed Breakdown identifies and tracks key session support levels—including overnight lows, daily lows, and afternoon lows—and detects potential failed breakdowns against them. The indicator monitors price penetration to classify breakdowns into soft, medium,
This indicator plots candles for a selected symbol, defaulting to CBOE:VIX, in a separate pane together with a simple moving average of close and a line at 1.2 times that average. It colors the background when the symbol high is more than 20 percent above the
Fits a rolling regression of the chart's close several bars ahead on z-scored macro inputs, then plots the fitted value shifted forward so the line leads price on the chart. One feature set uses rates and cross-asset series such as US yields, the dollar index
An overlay that marks reversal entries and exits for same-day index option trades on five-minute bars. Entries need a stochastic reversal cross, an EMA trend filter, a cooldown and a time window, and must pass a confluence score, a VIX stand-aside gate, an opt
An overlay indicator that rebuilds opening range levels for one chosen historical date. After the selected number of opening candles from a set market open time, it draws the range high, low and average, then first, second and third resistance and support line
A futures strategy for NSE Nifty that requires agreement from SuperTrend, a 3 and 13 EMA cross with a 21 EMA trend, MACD, RSI, ADX, volume and relative strength against a benchmark. Entries come in two stages with a larger setup ladder, so it can add to a posi
A strategy port of the Fractal Sweep CISD indicator. It detects a sweep of a prior candle's extreme, a return and a CISD confirmation, then enters with a stop at the sweep extreme or CISD level and a take profit at a set R:R multiple. Shallow sweep and closed-
A strategy that rests a limit order at the session VWAP when a higher-timeframe 50 and 100 EMA stack shows an uptrend, VWAP is rising and price is above it, with the mirror image for shorts. The stop is an ATR multiple beyond VWAP and the target is a fixed rew
This indicator records the high and low of the first hour of the US cash session, from 9:30 to 10:30 on the chart clock, then draws horizontal lines for both. It also draws dashed lines at one and a half times and dotted lines at two times the range, above the
A strategy for range box breakouts whose header comments describe changes from an earlier version: a tighter ATR stop, a trailing profit exit that triggers later, an EMA 50 direction filter, a stricter volume filter and a higher box quality score. Orders are f
This strategy looks for VWAP bounce and rejection trades on the price chart during the regular trading session. It marks a percentage band around session VWAP and enters when a rejection candle meets a minimum wick-to-body ratio and volume exceeds a multiple o
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 thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated
A strategy-type script for the price chart that plots the high, low and midpoint of the first part of each session, using end hour and minute inputs, and marks those bars. It adds pivot-based support and resistance lines with left and right bar counts, labels
Portfolio Metrics calculates return statistics for the chart symbol against a selectable equity index. It plots alpha, beta, correlation, r-squared, standard deviation, variance, a drawdown measure, and a gain measure in a separate pane. Users choose the bench
A Pine v4 indicator in a separate pane that works as a sector advance-decline tally. It reads closing prices for eleven US sector ETFs and the SPY fund, then counts how many sectors closed above their previous close and how many did not. It has no input settin
This overlay indicator plots option strike walls and an optional session VWAP on the price chart for SPY or ES. It spaces major strikes by the selected instrument, draws a set number of strikes on each side, and marks wall-trap and sweep events after a cooldow
HTF Statistical Zones plots historical percentile bands around the 18:00 New York day open, plus session boxes, opening-range lines, and projected targets on the price chart. Upper and lower day zones use selectable inner and outer percentiles, with optional p
A trend-following strategy based on Ed Seykota's Donchian breakout framework, modified to take a single full-risk entry instead of pyramiding multiple units. It enters long or short on 55-bar channel breakouts with ATR-based position sizing and an initial stop
This intraday overlay establishes directional bias and high-conviction swing setups for SPY on the 15-minute timeframe. It computes a weighted confluence score combining an EMA ribbon, a 50 EMA anchor, session VWAP bands, RSI divergence, ADX, TTM Squeeze, cand
TR Margin Pulse calculates and plots the ratio of marketwide margin calls to required margin using Takasbank data generated via MCP templates. Rendered in a separate pane, the line turns red when exceeding a predefined stress threshold and teal when below. A s
This indicator tracks and visualizes the initial balance range over customizable trading sessions directly on the price chart. It plots the high, low, and midpoint of the opening balance, with optional session extension levels, an anchored VWAP, and shaded hig
Dip Bulucu-2 combines a WaveTrend oscillator and Williams Vix Fix to identify potential market bottoms and trend reversals. It calculates Williams Vix Fix based on standard deviation Bollinger Bands and percentile ranges, highlighting exhaustion bars in red hi
This strategy generates long entry signals by combining a Donchian Channel breakout with a moving average trend filter, volume confirmation, and a macro volatility regime gate based on CBOE VIX and VIX3M ratios. It enters long positions when prices break above
This indicator plots the percentage of stocks in a selected index trading above their 20, 50, 100, 200, and selected other day moving averages. It automatically detects the main chart symbol and switches to the corresponding index ticker such as S&P or NDX, or
Draws trade zones from a text block pasted into a settings box, one box per zone, to the right of the last bar. Each zone shows an entry line coloured for buy or sell, a stop box, a take-profit box and a dashed second target, and zones can come from an options
A Pine v5 strategy that shades a trading session window on the chart, defaulting to a morning session in the Chicago time zone with weekday toggles. Inputs show an RSI of length 40, a short channel length, a risk-to-reward ratio, fixed dollar risk, leverage an
An institutional decision engine based on Smart Money Concepts (SMC) that plots structure and zone reactions on the price chart. It automatically detects instrument profiles for Gold, FX, Indices, and Crypto to analyze order blocks, liquidity pools, sweeps, an
A second version of the Fractal Sweep CISD indicator with more trade management options. Besides detecting a sweep, return and CISD, it lets the user pick the entry point (market or limit at cascade retracement levels), the target reference, and a take profit
An overlay that draws a session-anchored VWAP with optional standard-deviation bands and reads price above or below it as a bullish or bearish bias. When VWAP is sloping and a candle pulls back near it and closes in the trend direction on a confirmed bar, it m
This indicator draws horizontal price levels from data the user pastes into two text boxes. The first takes a price and a description for key levels, with points of control shown in a different colour. The second takes a description with an ES level and an NQ
A box breakout strategy whose header comments describe a focus on cutting losing trades. It uses a wider ATR stop, an extra early exit when floating loss exceeds a multiple of the box height, a strict EMA 50 trend filter, a volume filter and a trailing profit
ORB - Opening Range Breakout calculates the highest high and lowest low during a configurable opening session and trades breakouts during the subsequent trading session. When the closing price crosses above the opening range high, it enters a long position; cr
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.