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 applies Omori's law from seismology to post-crash volatility. It flags a mainshock when price falls a set percentage from a recent high, then plots a power-law decay envelope from elapsed bars, productivity, time offset, and decay exponent. Afte
This strategy executes trend-following scalping setups by combining fast and slow exponential moving averages with a smoothed Stochastic oscillator. It enters long positions when the fast EMA is above the slow EMA and the Stochastic is oversold, and short posi
Normalized Market Monitor scales the price action of two distinct symbols into a normalized oscillator ranging from -100 to +100 over a chosen lookback period. Plotted in a separate pane, the indicator enables traders to observe and compare the relative positi
This indicator calculates and displays key premarket metrics in a table dashboard located on the top right of the price chart. It tracks the current price, gap percentage relative to the prior day close, overnight trend bias, premarket high and low, overnight
This Pine Script v5 strategy calculates two simple moving averages with customizable fast and slow lengths and plots them on the price chart. It generates long signals on fast MA crossover above the slow MA and short signals on the reverse crossover. The strat
EMA Trend Surfer is a dual-timeframe trend-following strategy designed for index futures such as MES and MNQ. It determines overall trend direction using fast and slow exponential moving averages on a higher timeframe while seeking entry signals on a lower tim
This chart indicator tracks session-specific high and low price ranges over user-defined time windows. It plots session ranges alongside three configurable moving averages, volume-weighted average price (VWAP) with standard deviation bands, dynamic support and
This indicator marks regular New York Stock Exchange (NYSE) session open (9:30 AM ET) and close (4:00 PM ET) times directly on the price chart. It draws vertical lines and descriptive text labels at historical session boundaries and projects lines forward for
This indicator plots a constant histogram in a separate pane to show whether a selected index is above or below its simple moving average. It requests the index close on the chart timeframe, computes an SMA of a user-set length, and colors the bar lime when pr
The Table 1m 15m 1HR indicator renders a multi-asset monitoring table overlay on the top-right of the price chart. It fetches real-time prices and calculates percentage price changes across 1-minute, 15-minute, and 1-hour timeframes relative to the prior day's
An indicator that watches four ICT-style killzones (Asia, London, New York AM and PM) for a sweep of the previous killzone's high or low followed by a close back inside. It marks the setups on the price chart with a fixed target, a stop just past the wick, opt
Indicatorv6SMC / ICT / price actionSessions & time
An overlay for same-day expiry credit spreads on the S&P 500 index that reproduces signals from the author's separate backend. It watches an opening observation window, then flags directional entries when stochastic, RSI, trend, a VWAP alignment gate and a con
GEX Levels is an overlay indicator that draws options gamma exposure levels on NAS100, XAUUSD and BTCUSD charts. A companion Python script calculates the levels, and the user pastes its one-line output into a text setting. The indicator picks the block matchin
GEX PRO draws options gamma exposure levels on NQ and ES futures charts. The levels are calculated outside TradingView and pasted into a text setting as a payload. The script then maps the index prices to the futures chart and plots zero gamma, call wall, put
An indicator built mainly as a data and alert engine for futures. It tracks an opening range window, New York and London sessions, four EMAs, a volume average and break of structure swings, and sends confirmed-bar alerts that carry this context, with a webhook
Prints manual long and short signal labels on the price chart using an adaptive scoring method trained on recent settled trade paths, with a warmup count before it starts. It uses the previous closed candles, enters at the current open, and applies a minimum d
This strategy for index futures models an ICT sequence on the price chart. Price sweeps a liquidity pool, either the previous day high or low or confirmed swings. A displacement close then shifts market structure, and a limit order is placed at the fair value
A long-only daily strategy for E-mini S&P futures. It enters long when the 200-period SMA is rising, the candle is bearish and the whole bar sits below the 5-period SMA, and it closes the position when price closes above the 5-period SMA. Size is a fixed one c
A strategy that builds a 15-minute opening range box from a configurable session and time zone, drawing its high, midpoint and low lines with price labels. It then trades a break, return and cross sequence around the range, with a reward-to-risk exit model, th
This strategy trades the New York open on the price chart using an ICT workflow. It sets a higher-timeframe bias from an EMA, structure and session VWAP, requires SMT divergence against a correlated symbol, then waits for an inverse fair value gap and enters o
This strategy identifies an Opening Price Range during a specified time window and trades breakouts above or below the established range during the New York trading session. Entries can be filtered using optional RSI extremes and EMA trend direction, restricte
Detects liquidity sweeps of the Asian or London session range, followed by a reclaim and a break of structure, on the 5-minute chart. It plots entry, stop and take-profit levels with a reward-to-risk target, skips setups whose stop exceeds a multiple of ATR, a
Indicatorv6SMC / ICT / price actionSessions & time
This strategy executes opening range breakout trades during regular trading hours. It calculates a 15-minute opening range high and low alongside a 20-period EMA and a 14-period ATR. Long entries trigger when price crosses above the opening range high while hi
Visualises a 15-minute opening range breakout routine for the cash session open. It marks the first 15-minute range, waits for a candle close beyond it, then simulates one trade per day by default with the stop at the breakout candle extreme. Exits can trail s
A Pine v6 indicator that puts intraday reference points on the price chart. It draws Asia, London, New York AM and PM session boxes and kill zones, session highs and lows that extend until swept, period opens with previous highs and lows, fair value gaps, and
This strategy builds an opening-range high and low during a user-defined session, then waits until that session ends. A close above the range enters long and a close below it enters short. The long exit uses the range low as the stop and a limit one range-widt
A monthly macro monitor that pulls two FRED series, the Baa credit spread and the NFCI financial conditions index, and converts each into a rolling z-score. Each axis flips into a stress state above an entry threshold and back out below an exit threshold. The
This indicator marks swing failure patterns on the price chart: a wick takes out a standing structural high or low and a later 15-minute candle closes back inside. It then tracks a short-term and an intermediate-term market structure shift, and the intermediat
A Pine v5 indicator that plots a trailing drawdown floor under the price high-water mark, aimed at futures and prop-firm style limits. A dollar drawdown buffer is converted to price points using the dollar value per point and the number of contracts. The floor
A strategy for US index, energy, metal, agriculture and livestock futures that reads Commitments of Traders data through a TradingView library. It builds a commercial positioning index and combines it with an RSI to decide long and short entries. Exits can use
Marks a 15-minute opening range window on the chart and looks for a manipulation candle whose range is at least a set percentage of the daily ATR. When one appears, it draws position-tool style boxes showing a pending entry, a stop placed beyond the wick plus
An indicator that detects SMT divergence between correlated markets, mainly NQ and ES. It pairs confirmed swing highs and lows from both instruments and draws a line and label when one market breaks its reference level and the other does not. The correlated as
A strategy built around a session VWAP and ATR bands during the London window, 08:00 to 12:00 UTC by default. It looks for a pullback to an ATR band followed by a VWAP cross, filtered by an RSI threshold, and evaluates signals on confirmed bars. Stops and targ
This strategy implements quantitative intraday models tailored for NQ and MNQ futures contracts. Traders can select between EMA Pullback, Opening Range Breakout, or Liquidity Sweep setups with user-defined New York trading sessions. It handles position sizing
A long and short strategy that finds the lowest low and highest high over a swing lookback of 20 bars. It enters long near the low or short near the high when the reward-to-risk ratio meets a minimum, sizing each trade from a capital figure and a risk percenta
This indicator identifies failed opening range breakouts and plots session-based analytical overlays directly on the price chart. It defines the New York opening range from 09:30 to 09:45, identifies false breakouts that return inside the range, and triggers r
Plots common futures reference levels on the price chart: previous day high, low and close, overnight high and low, the opening range, VWAP with bands, round numbers and a session background. Sessions use New York time, with a regular session of 0930 to 1600 a
This overlay indicator tracks confirmed swing highs and lows as liquidity levels and marks a break of structure when the close moves beyond the last swing. It detects bullish and bearish fair value gaps that meet a minimum ATR size, then plots filtered long an
A price-chart indicator that prints scalping signals when price sits in a Fibonacci retracement zone measured from a recent swing high and low. A signal mode switches between a wide zone and a deeper zone, and a retracement beyond the deepest level invalidates
The script is a Pine Script strategy that calculates two simple moving averages: a fast SMA with length 9 and a slow SMA with length 21. It plots these SMAs on the price chart along with buy and sell markers. The strategy signals long entries on bullish crosso
PineFlow v6 — ORB Risk Strategy executes opening range breakout trades filtered by trend and momentum indicators. It defines an initial opening range and trades breakouts during the active trading session when aligned with fast and slow EMAs, ADX momentum, and
An overlay that scans for trend-continuation pullbacks. It reads a 1-hour EMA stack for bias, waits for a close through the latest confirmed swing to mark a market structure shift, then draws the 0.62 to 0.79 Fibonacci optimal trade entry zone of that leg. A s
A strategy for index futures that combines New York session timing, session VWAP with bands, previous day levels and a volume profile with order flow proxies such as delta and a depth-of-market aggression threshold. Inputs set the aggression threshold, how man
A fractional differencing Z-score oscillator in a separate pane for one-minute Nasdaq futures that adds a regime gate based on a three-vote model of directional efficiency, range expansion and VWAP slope, allowing entries only in a mean-reversion state. Furthe
This indicator calculates and plots trend-following signals based on an adaptive UT Bot trailing stop mechanism on the price chart. Entry signals trigger on trailing stop crossovers, with sensitivity keys adjusting dynamically between trending and ranging mark
Markov-HMM Regime v5 classifies each bar as Bull, Bear or Sideways using a hidden Markov model whose parameters were trained offline in Python and pasted into the script. It runs the forward algorithm on price and volume features and loads a parameter set matc
Calculates institutional liquidity sweeps across a configurable swing lookback period to trade market reversals directly on the price chart. It enters long when price dips below recent swing lows and closes back above, and enters short when price sweeps swing
A table-style dashboard that reads Treasury yields and futures through request.security on a chosen data timeframe, five minutes by default. Six rows show the 10-year yield and its rate of change, the 2-year yield, the yield curve spread and slope, bond future
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.