INVITE-ONLY SCRIPT

Reversal Detection System v3.5

144
REVERSAL DETECTION SYSTEM v3.5
Advanced Multi-Feature Market Structure Analysis | Non-Repainting
Author: NPR21 | Version: 3.5.1 | February 10, 2026
License: Mozilla Public License 2.0
═════════════════════════════════════════════════════════════
OVERVIEW
The Reversal Detection System (RDS) is a comprehensive market structure analysis tool that combines multiple institutional trading concepts into one unified overlay indicator. Built for traders who want to understand WHERE price is likely to reverse and WHY, RDS integrates ten major analysis systems into a single indicator:
• Adaptive Zigzag Reversal Detection — ATR-based sensitivity
• Smart Money Concepts (BOS/CHoCH) — optional Momentum Z-Score filter
• Pivot Structure Breaks (PSB) — required momentum confirmation
• Volumetric Order Blocks — buy/sell pressure distribution
• Fair Value Gaps (FVG) — real-time fill tracking
• Mobius Trend Pivots — supply/demand zones with rollover triggers
• Premium/Discount Zones — volume-based strength analysis
• Supply/Demand Zones — at confirmed reversal pivots
• Strong/Weak HH/HL/LH/LL Detection — ATR measurement
• EMA Trend System (8/13/20) — for STRONG confluence alerts
All signals are non-repainting when using "Confirmed Only" mode.
═════════════════════════════════════════════════════════════
CORE FEATURES
1. Adaptive Zigzag Reversal Detection
The foundation of RDS. Uses an adaptive zigzag algorithm that automatically adjusts to market volatility through ATR-based thresholds. Unlike fixed-percentage zigzag indicators, this system scales its sensitivity with the instrument's current volatility.
Five sensitivity presets control signal frequency:
• Very High: Most signals, smallest moves (ATR 0.8x)
• High: Active trading balance (ATR 1.2x)
• Medium: Standard swing detection (ATR 2.0x)
• Low: Major moves only (ATR 2.8x)
• Very Low: Highest quality, fewest signals (ATR 3.5x)
• Custom: Full manual control over all parameters
Signal modes:
• Confirmed Only: Non-repainting, signals print after confirmation
• Confirmed + Preview: Shows both confirmed and potential reversals
• Preview Only: Shows potential reversals in real-time (repaints)
Reversal labels display exact pivot prices with optional timestamps formatted in Eastern Time.
2. Smart Money Concepts (BOS/CHoCH)
Break of Structure (BOS): Identifies when price breaks a fractal high or low in the direction of the existing trend, confirming continuation.
Change of Character (CHoCH): Identifies when price breaks structure against the prevailing trend direction, signaling potential reversal.
Fractal-based detection uses configurable lookback period (default 5). Optional Momentum Z-Score filter requires statistical confirmation before signals display.
3. Pivot Structure Breaks (PSB)
A second, independent structure-break detection system running alongside BOS/CHoCH using a completely different methodology.
Key differences from BOS/CHoCH:
• Uses ta.pivothigh/ta.pivotlow (not fractal sums)
• Momentum Z-Score is ALWAYS REQUIRED (not optional)
• Separate pivot lookback period (default 10)
• Distinct visual style: Dodger Blue/Tomato colors, dashed lines
• Pivots reset after break to prevent duplicate signals
When PSB and BOS/CHoCH both fire on the same bar, PSB takes priority and CHoCH is suppressed to avoid redundant signals.
4. Volumetric Order Blocks
Detects institutional order blocks at swing highs and lows with full volume analysis. Each order block displays split boxes showing buy vs sell volume distribution, volume percentage labels, proportional box sizing, automatic mitigation detection (Close/Wick/Average methods), and optional breaker block conversion.
5. Fair Value Gaps (FVG)
Identifies three-candle price gaps with minimum size filter using ATR multiplier, real-time fill percentage tracking, Consequent Encroachment midline (optional), automatic cleanup when mitigated or aged out, and configurable maximum active FVGs.
6. Mobius Trend Pivots
Supply and demand zone identification based on consecutive higher-highs/higher-lows and lower-lows/lower-highs detection.
• Supply zones (bearish): Red cloud with STO boundary and rollover
• Demand zones (bullish): Green cloud with BTO boundary and rollover
• White dashed rollover lines serve as early-warning triggers
• MOBIUS LONG label when price closes above demand rollover
• MOBIUS SHORT label when price closes below supply rollover
• Signal resets when new trend forms or price re-enters zone
7. Premium/Discount Zones
Identifies where price sits relative to the broader trading range: Premium Zone (upper 10%) for high-probability sell areas, Equilibrium (middle band) for fair value, and Discount Zone (lower 10%) for high-probability buy areas. Volume-based strength analysis shows Strong/Weak High and Low percentages.
8. Supply/Demand Zones
Rectangular zones drawn at confirmed reversal pivot points with configurable thickness, extension length, maximum zones, and display mode (Pivot, Arrow, or None).
9. Strong/Weak HH/HL/LH/LL Detection
Measures the significance of each pivot using ATR multiples. HH and HL labels in green, LH and LL labels in red. Minimum ATR strength filter ensures only significant structure points are labeled. Each label type can be toggled individually.
10. EMA Trend System (8/13/20)
Three-EMA alignment detection for STRONG confluence alerts. When all three EMAs are stacked bullish and a Reversal prints, a STRONG BULLISH alert fires. Separate alerts for EMA buy/sell signals and trend changes.
═════════════════════════════════════════════════════════════
ALERTS (29 Total)
Reversal Alerts:
Bullish Reversal, Bearish Reversal, Any Reversal
EMA Trend Alerts:
EMA Buy Signal, EMA Sell Signal, Trend Changed to BULLISH, Trend Changed to BEARISH
Strong Confluence Alerts:
STRONG Bullish Signal, STRONG Bearish Signal
BOS/CHoCH Alerts:
Bullish BOS, Bearish BOS, Any BOS, Bullish CHoCH, Bearish CHoCH, Any CHoCH
PSB Alerts:
Bullish PSB, Bearish PSB, Any PSB
FVG Alerts:
Bullish FVG, Bearish FVG, Any FVG
Mobius Alerts:
Mobius Long Signal, Mobius Short Signal
Order Block Alerts:
Bullish OB Created, Bearish OB Created, Bullish OB Mitigated, Bearish OB Mitigated
Strong HH/LL Alerts:
Strong Higher High, Strong Lower Low
All alerts include {{ticker}} and {{interval}} placeholders for webhooks and notification systems.
═════════════════════════════════════════════════════════════
RECOMMENDED USAGE
Scalping (1m-5m)
Sensitivity: Very High or High. Enable BOS/CHoCH, PSB, Mobius Pivots. Disable Order Blocks and FVG to reduce clutter.
Day Trading (5m-1h)
Sensitivity: High or Medium. Enable all features as needed. Use STRONG alerts for highest-conviction entries.
Swing Trading (1h-Daily)
Sensitivity: Medium, Low, or Very Low. Enable Premium/Discount, Supply/Demand, Strong HL. Focus on CHoCH signals for trend reversals.
═════════════════════════════════════════════════════════════
WHAT MAKES THIS DIFFERENT
Most market structure indicators offer one or two features. RDS integrates ten independent analysis systems that cross-validate each other. When a Zigzag Reversal prints at a Discount Zone near a Bullish Order Block while BOS confirms with momentum — that is multi-system confluence providing higher-probability trade identification.
Key technical distinctions:
• Non-repainting in Confirmed Only mode
• ATR-adaptive sensitivity across all systems
• Momentum Z-Score statistical filtering
• Dual structure-break methods (fractal + pivot)
• Volumetric order block analysis with pressure distribution
• 29 individually configurable alerts
═════════════════════════════════════════════════════════════
CHANGELOG
v3.5.1 (February 10, 2026):
• FIX: BOS/CHoCH alerts now fire correctly (both directions)
• FIX: Bearish BOS/CHoCH drawing relocated to proper section
• NEW: 8 additional alerts (total now 29)
• FIX: Mobius LONG/SHORT labels — rollover crossover trigger method
• FIX: Mobius line/box drawing clamped to 299-bar buffer limit
• FIX: Zigzag pivot time clamped to 299-bar buffer limit
• FIX: PSB line closing parenthesis corrected
• FIX: Orphaned zigzag fragment removed
v3.5 (February 5, 2026):
• NEW: Pivot Structure Breaks (PSB) detection system
• NEW: PSB uses ta.pivothigh/ta.pivotlow (separate from fractal BOS)
• NEW: Momentum Z-Score REQUIRED for PSB signals (always-on gate)
• NEW: PSB alerts (Bullish PSB, Bearish PSB, Any PSB)
• FIX: Mobius labels decoupled from Show Mobius Pivots toggle
═════════════════════════════════════════════════════════════
DISCLAIMER
This indicator is for educational and informational purposes only. It is not financial advice and should not be the sole basis for trading decisions. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Always consider your financial situation, risk tolerance, and experience before trading.
═════════════════════════════════════════════════════════════
Questions or feedback? Drop a comment below.
Great Trading, NPR21

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.