PROTECTED SOURCE SCRIPT
Double Whammy Stop‑Run Indicator

This indicator simulates the institutional "Double Whammy" order flow setup—for order flow traders—using standard Price Action and Volume analysis.
Since TradingView does not provide native access to Level 3 data (Stop Orders and Iceberg Orders), this script uses a proprietary algorithm to create a "proxy" for these events using relative volume anomalies, candle body strength, and market structure breaks.
The Concept
The "Double Whammy" is a reversal pattern that relies on the interaction between trapped retail traders and institutional absorption. It occurs in two specific phases:
The Stop Run (The Trap): Price aggressively breaks a significant recent High or Low on high volume. This represents retail stop-losses being triggered or breakout traders getting trapped.
The Absorption (The Whammy): Instead of continuing in the direction of the breakout, price is immediately absorbed by "Iceberg" orders (limit orders) and reverses with high intensity.
How It Works (The Logic)
This script identifies these two phases using the following logic:
1. Identifying the Stop-Run Proxy
The script monitors for a specific set of conditions to identify a potential trap:
Market Structure: The price must make a new High or Low based on the user-defined Lookback period (default 50 bars).
Volume Spike: The bar must have a volume significantly higher than the average (defined by the Volume Multiplier), suggesting a capitulation or stop-cascade.
Candle Strength: The bar must be a strong trend bar (large body relative to wicks) to mimic the look of a breakout.
2. Identifying the Absorption
Once a Stop-Run is detected, the script opens a "Window of Opportunity" (shaded background). For a valid signal to generate, a reversal must occur within Max Bars (default 3):
Reversal: A candle of the opposite color must appear.
Engulfing Logic: The reversal candle must close back inside the range (below the High of a bullish trap, or above the Low of a bearish trap).
Momentum: The reversal candle must also show significant volume and body strength.
Visual Guide
Background Shading (Green/Red): Indicates a Stop-Run has just occurred. This is a warning zone. Do not trade yet.
"DW" Label (Double Whammy): An immediate reversal occurred on the very next bar after the stop run.
"DDW" Label (Delayed Double Whammy): The reversal occurred 2 or 3 bars later, but still within the valid window.
Settings
Lookback Bars: The range used to determine significant Support/Resistance levels (Default: 50).
Max Bars to Absorption: How many bars the market has to reverse before the setup is considered invalid (Default: 3).
Volume Multiplier: How much larger current volume must be compared to the SMA to qualify as a "Stop Run" (Default: 1.5x).
Body/Range Ratio: Filters out Doji candles or weak moves. Higher numbers require stronger candles.
Disclaimer
This tool is intended for educational purposes and to assist in identifying high-volatility reversal zones. It uses price and volume proxies to estimate order flow events and does not track actual Level 3 limit orders. Always combine this indicator with your own risk management and market analysis.
Use Arrow Up and Arrow Down to select a turn, Enter to jump to it, and Escape to return to the chat.
Since TradingView does not provide native access to Level 3 data (Stop Orders and Iceberg Orders), this script uses a proprietary algorithm to create a "proxy" for these events using relative volume anomalies, candle body strength, and market structure breaks.
The Concept
The "Double Whammy" is a reversal pattern that relies on the interaction between trapped retail traders and institutional absorption. It occurs in two specific phases:
The Stop Run (The Trap): Price aggressively breaks a significant recent High or Low on high volume. This represents retail stop-losses being triggered or breakout traders getting trapped.
The Absorption (The Whammy): Instead of continuing in the direction of the breakout, price is immediately absorbed by "Iceberg" orders (limit orders) and reverses with high intensity.
How It Works (The Logic)
This script identifies these two phases using the following logic:
1. Identifying the Stop-Run Proxy
The script monitors for a specific set of conditions to identify a potential trap:
Market Structure: The price must make a new High or Low based on the user-defined Lookback period (default 50 bars).
Volume Spike: The bar must have a volume significantly higher than the average (defined by the Volume Multiplier), suggesting a capitulation or stop-cascade.
Candle Strength: The bar must be a strong trend bar (large body relative to wicks) to mimic the look of a breakout.
2. Identifying the Absorption
Once a Stop-Run is detected, the script opens a "Window of Opportunity" (shaded background). For a valid signal to generate, a reversal must occur within Max Bars (default 3):
Reversal: A candle of the opposite color must appear.
Engulfing Logic: The reversal candle must close back inside the range (below the High of a bullish trap, or above the Low of a bearish trap).
Momentum: The reversal candle must also show significant volume and body strength.
Visual Guide
Background Shading (Green/Red): Indicates a Stop-Run has just occurred. This is a warning zone. Do not trade yet.
"DW" Label (Double Whammy): An immediate reversal occurred on the very next bar after the stop run.
"DDW" Label (Delayed Double Whammy): The reversal occurred 2 or 3 bars later, but still within the valid window.
Settings
Lookback Bars: The range used to determine significant Support/Resistance levels (Default: 50).
Max Bars to Absorption: How many bars the market has to reverse before the setup is considered invalid (Default: 3).
Volume Multiplier: How much larger current volume must be compared to the SMA to qualify as a "Stop Run" (Default: 1.5x).
Body/Range Ratio: Filters out Doji candles or weak moves. Higher numbers require stronger candles.
Disclaimer
This tool is intended for educational purposes and to assist in identifying high-volatility reversal zones. It uses price and volume proxies to estimate order flow events and does not track actual Level 3 limit orders. Always combine this indicator with your own risk management and market analysis.
Use Arrow Up and Arrow Down to select a turn, Enter to jump to it, and Escape to return to the chat.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Można z tego korzystać swobodnie i bez żadnych ograniczeń — więcej informacji znajduje się tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Można z tego korzystać swobodnie i bez żadnych ograniczeń — więcej informacji znajduje się tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.