pine-scripts

Indicator index

Every indicator in the repository, grouped as in the sidebar, with the first sentence of its README.

Market structure

  • Auto Trendlines — Detects trendlines through pivot points using a Directional or Combinatorial pair scan with optional OLS/Outer refinement and a composite quality score.
  • Broadening Wedge Scanner Pro — Slides a fixed-size window of confirmed swings across the search depth and fits two boundary lines — an upper line from the window’s outer highs, a lower line from its outer lows — to find expanding wedges: descending broadening (both lines fall, the lower one faster — bullish bias), ascending broadening (both lines rise, the upper one faster — bearish bias), or symmetric broadening (upper rising, lower falling — a direction-neutral “megaphone”).
  • Candle Story Engine — Interprets candle behaviour as a weighted multi-candle sequence instead of relying on isolated candlestick patterns.
  • CoilForge Zones v1.2 — Detects price compression zones using a weighted, multi-module scoring system built from ATR compression, ADX chop filter, volume dry-up, impulse context, and historical support/resistance reuse.
  • Edge Atlas — Edge Atlas is a right-edge price-level atlas.
  • Elliott Wave Radar — Rule-validated Elliott Wave counting on ZigZag pivots.
  • Fib Reaction Memory — Scores Fibonacci retracement levels of an active A→B reference leg by the confirmed local price reactions that actually occurred inside that leg — not by geometric proximity.
  • JMA Cluster Entries with Market Structure — Multi-timeframe JMA cluster analysis with market structure detection.
  • Liquidity Hunter — Ranks equal highs and equal lows by quality, detects sweep-and-reclaim events with a composite score, and surfaces the two most relevant levels on each side — so the chart shows only the levels that actually matter.
  • Market Motion DNA v1.0 — Objective movement-character engine.
  • Market Scenario Projector — Splits “what happens next” into three explicit forward scenarios instead of a single directional call.
  • Market Structure Advanced — Converts swing pivot classifications (HH/HL/LH/LL) into a continuous bounded score oscillator.
  • Market Structure Pivot Map — A Location-role structure map.
  • Market Tradability Engine — Market Tradability Engine is a market-quality and no-trade filter.
  • Modern Wyckoff State Machine Lite — Lightweight Wyckoff state-machine overlay for identifying accumulation, distribution, markup and markdown context.
  • MTF Structure Bias — Classifies market structure across four timeframes using pure price geometry — no oscillators, no momentum indicators.
  • Reversal Type Classifier — Ex-post diagnostic indicator that classifies every confirmed pivot reversal into one of four outcome types.
  • S/R Zones MTF v2 — Multi-timeframe support/resistance zones built from ATR-reversal structure swings.
  • SMC Structure & Expectation — Four-layer Smart Money Concepts indicator.
  • Structural Wave Field — A chart-native market-structure visualization.
  • Structure Break Risk — An indicator that answers one question: how close is the prevailing trend’s structure to breaking — and against which level?
  • Support & Resistance Zones — A detector-driven support/resistance zone engine.
  • Swing Conviction Radar — Scores each price swing (pivot-to-pivot leg) by three conviction factors: how fast the move was (speed), how consistently bars moved in the leg’s direction (cleanliness), and whether volume was increasing toward the end of the leg (volume gradient).
  • Trading Range State Machine — Trading Range State Machine detects an active trading range and tracks its maturity through a state machine, from first formation to breakout.
  • Triangle Compression Scanner Pro — Slides a fixed-size window of confirmed swings across the search depth and fits two boundary lines — an upper line from the window’s outer highs, a lower line from its outer lows — to find compressing triangles: symmetric, ascending, or descending.
  • Tweezer & Kangaroo Zones — Detects two specific reversal candlestick patterns — tweezer tops/bottoms and kangaroo tails (pin bars) — and converts them into scored supply and demand zones that persist and decay over time.
  • Wolfe Wave Scanner Pro — Searches a depth window of confirmed swings for every distinct, non-overlapping 5-point Wolfe Wave wedge — a contracting, alternating channel where point 5 tests the 1-3 trendline — not just the single highest-scoring one.
  • Wyckoff Schematics — Volume/spread-based Wyckoff schematic detector.
  • ZigZag Core — A configurable ZigZag foundation for structural chart analysis.
  • ZigZag Fibo Pullback Map — Confirmed ZigZag pivots with pullback-to-fibo labeling and a live fib fan on the current unfinished leg.
  • ZigZag Patterns — ZigZag pivot engine with pattern detection on confirmed pivots: simple ABC corrections, triangle formations (symmetrical / rising / falling), a basic Wolfe wave heuristic, and a 1-2-3 reversal (Sperandeo) detector, plus smart pivot labels combining structure tags with confirmation signals.

Trend direction

  • Adaptive Arithmetic Candles + Quality Score — Renders an adaptive, efficiency-smoothed candle overlay in place of raw price action, paired with a 0-100 Trend Quality Score that grades how trustworthy the current candle’s direction is.
  • Chandelier Flip Radar — ATR-based trailing stop with a directional, multi-level trend state.
  • MA Cascade Engine — Moving averages are treated as a layered system rather than an isolated crossover signal.
  • MA Regime Bands — Regime overlay that classifies the market as Bull, Bear, or Neutral using the alignment of three configurable moving averages, gated by an ATR-normalized trend-strength filter.
  • Market–Average Relationship Engine — Evaluates the relationship between price and one consistently selected moving-average family — the MA is treated as a market reference, not as a standalone crossover signal.
  • Modern Trend Regime — Simplified trend/range regime system without Ichimoku terminology.
  • Smooth Trend Radar — Double-smoothed Supertrend baseline for trend direction, with pivot-based rejection signals at the baseline, statistical overextension highlighting, and automatic SL/TP level visualization on each trend flip.
  • Vein Reversal System — Visual Guide — The system consists of 6 indicators that work together on a NatGas chart.
  • Vein: Reversal Zones (published on TradingView) — S/R zones derived from forward-validated reversal bars, combined with a live multi-trigger signal engine.

Trend strength & regime

  • Adaptive Cycle Detector — Estimates the dominant market cycle by measuring the average period between WaveTrend zero-crossings over a configurable lookback window.
  • ADX Advanced — ADX/DI system with pluggable smoothing on the ADX line, rich visualization of DI± divergence, and a 4-state histogram for trend strength clarity.
  • Bayesian Trend Factor — Bayesian Trend Factor is a Bayesian-inspired probabilistic trend-quality filter that maps the current directional thesis to a signed -100..+100 score and a separate 0..100 confidence reading.
  • Market Memory & Decay Oscillator — A signed oscillator that scores how much “memory” the current price impulse carries versus how fast that memory is decaying back toward random-walk noise.
  • Market State Engine — A context engine for medium- to long-term discretionary trading.
  • Markov State Engine — Markov State Engine classifies every bar into one of six market states and then treats those states as a first-order Markov chain.
  • Predictability Regime Index — Classifies whether the current market rewards momentum/trend-following or mean-reversion, by fusing four statistical predictability sensors — Variance Ratio, return autocorrelation, a Hurst exponent approximation, and a fractal efficiency ratio — onto one signed −100..+100 axis.
  • Regime Classifier — Stage-1 regime filter for the reversal pipeline.
  • Regime Detector (MA Zones Overlay) — MA-zone based trend regime overlay with an adaptive core engine, higher-timeframe gate, tiered signal quality, and an optional SSA (Smart Signals Assistant) layer with trade management.
  • Regime Transition Engine — Regime Transition Engine classifies the current market into one of seven regime states — Noise, Compression, Expansion, Trend Up, Trend Down, Exhaustion, Reversion — and derives a directional transition-pressure oscillator that reads how close the market is to flipping into the next expected state.
  • Trend Persistence Score (published on TradingView) — A single-role trend-strength oscillator that grades how persistent, clean and durable the current trend is on one continuous 0–100 axis.

Momentum

  • CCI Advanced — CCI with pluggable smoothing, three scale modes, and rich visualization.
  • Elder Ray Pressure Engine — A research framework built on Alexander Elder’s Bull Power / Bear Power concept — maximum buyer/seller excursion against a consensus-of-value line.
  • Exhaustion Scanner — Role-separated overextension / reversal-risk context.
  • Fisher Transform Advanced — Fisher Transform Advanced ports the CCI Advanced context view onto a zero-centered Fisher Transform core.
  • Market Exhaustion — MFI + StochRSI fusion in a single exhaustion panel.
  • Market Pressure Scale (published on TradingView) — Two-component oscillator that separates Setup Pressure (market coiling for a move) from Impulse Pressure (active directional momentum).
  • Momentum Profile — Analog to a volume-profile or money-flow delta profile, but for momentum: maps average WaveTrend and MFI values per price zone over a configurable lookback window to identify dominant-momentum levels (zones where strong, oscillator-backed moves occurred) versus mixed or fragile levels (zones where buyers and sellers were roughly balanced and price is likely to be revisited).
  • Momentum Trajectory — Treats WaveTrend, StochRSI, and MFI as movement vectors and decomposes each into direction, velocity (1st derivative), and acceleration (2nd derivative).
  • MSO — Market Stress Oscillator — Bi-directional Williams VIX Fix stress oscillator.
  • MTF StochRSI Pair Score — Multi-timeframe StochRSI confluence scorer.
  • MTF WaveTrend Opportunity Hunter — MTF confluence pane around WaveTrend.
  • Oscillator Divergence Zones — Detects regular and hidden divergences by comparing consecutive price pivots with the corresponding oscillator values.
  • Oscillator Topology — Analyzes the shape of WaveTrend movements rather than their magnitude or direction.
  • Pivot Momentum Structure (published on TradingView) — Structure-oriented oscillator that uses confirmed price pivots as the authoritative anchor for both price and oscillator structure.
  • Reversal Engine Score v1 — Score-based liquidity sweep reversal detector with HTF trend confluence.
  • ROC Advanced — ROC Advanced ports the CCI Advanced context view onto a classic percentage Rate of Change core.
  • RSI Advanced — RSI Advanced ports the CCI Advanced context view onto a bounded RSI core.
  • Stoch RSI Advanced — Stoch RSI Advanced ports the CCI Advanced context view onto a bounded Stoch RSI K/D core.
  • TSI Advanced — TSI Advanced ports the CCI Advanced context view onto a True Strength Index core.
  • WaveTrend — WaveTrend momentum oscillator with configurable cross signals, divergence detection, and an optional price-chart overlay.
  • WaveTrend Advanced Smoothing — WaveTrend oscillator with a pluggable smoothing kernel and a rich visualization layer.
  • Williams %R Advanced — Williams %R Advanced ports the CCI Advanced context view onto a Williams %R core.

Mean reversion

  • Anchored VWAP — Volume-weighted average price anchored to a selectable origin, with volume-weighted standard-deviation bands.
  • MIDAS 2.0 — An anchored MIDAS support/resistance curve (Paul Levine’s launch-anchored volume-weighted price) with a true topfinder / bottomfinder accelerated curve — an accelerated exhaustion estimate, not a forecast.
  • Oscillator Cycle Statistics — Oscillator Cycle Statistics is a statistics engine, not a trading signal.
  • VWAP Cross Visuals — VWAP cross detection at its core, with optional advanced layers.

Money flow & volume

  • Candle Pressure Index — Measures buying vs.
  • Commodity FlowTrend — MFI + CCI composite oscillator designed for commodity markets.
  • CVD Bias — Estimates a price-weighted volume balance over a rolling window.
  • Klinger Volume Force Map — Volume-force analysis based on Stephen J.
  • MFI Advanced — MFI Advanced ports the CCI Advanced context view onto a Money Flow Index core.
  • Money Flow Delta Profile (published on TradingView) — A directional volume/money flow profile.
  • Volume Strata — Fixed-range volume profile anchored to the right edge of the lookback window, showing where volume actually traded across price levels — split by up and down volume, with the value area, Point of Control, high/low-volume node markers, and an expanded context table.

Volatility

  • ATR Advanced — ATR in four display modes with pluggable smoothing and gradient visualization.
  • Compression Fractal Release — Compression Fractal Release (CFR) detects a compressed, corrective coil inside a higher-timeframe trend and trades the moment that coil resolves into a clean directional break — the release.
  • Time-to-React + Volatility-Time — Measures how quickly and cleanly price reacts after key market structure events — Break of Structure (BOS), liquidity sweeps, and Order Block taps — and scores that reaction relative to the current volatility environment.
  • Williams VIX Fix Advanced — Synthetic fear gauge (Williams VIX Fix) with dual-direction signals, StdDev and percentile spike bands, stall/absorption context, slow-WVF trend context, divergence wedge, and gradient coloring on a 0–100 bounded panel.

Relative strength

  • Relative Leg Efficiency — Scores each price leg — from pivot to pivot — on how efficiently price moved: how direct the path was, how fast, and how much counter-pressure it absorbed along the way.
  • Relative Strength Line — Measures how the chart symbol performs relative to a benchmark (SPY, QQQ, or any symbol) rather than in absolute terms — the dimension institutions actually trade: they buy what is stronger than the market.

Composite

  • Commodity Heat Reversal v1.4.3 — Score-based mean-reversion reversal and pullback-continuation signal indicator for commodity futures (designed for 4H).
  • Commodity Pulse Matrix v3 (published on TradingView) — Commodity Pulse Matrix v3 is a comprehensive multi-timeframe confluence indicator designed for commodity trading.
  • Futures Context Module — Daily-only context module that surfaces the futures information a CFD or spot chart cannot provide on its own: Open Interest, ΔOI read against the front contract’s own price change, and the front/next term structure (Contango/Backwardation, curve trend).
  • Signal Quality Engine — A range-fade signal engine for commodities, futures, stocks and indices.
  • Trade Permission Engine — The successor to directional_probability_engine (archived, see archive/indicators/directional_probability_engine/).

Edit this page on GitHub