OPEN-SOURCE SCRIPT
Hybrid Smart Money Concepts [MarkitTick]

đź’ˇThis indicator provides a comprehensive technical analysis system that combines Market Structure concepts (Smart Money Concepts) with advanced Gap Analysis and a statistical Stress Model. It is designed to help traders identify trend direction, structural pivot points, potential reversal zones (Order Blocks), significant price gaps, and moments of market exhaustion.
Unlike standard ZigZag or Fractal indicators, this script integrates volume, trend maturity, and statistical volatility (Z-Score) to contextually classify price action. By overlaying these elements with a robust Market Structure engine—which identifies Change of Character (CHoCH) and Order Blocks—the tool provides a confluent view of price action.
It automates the detection of institutional footprints, allowing traders to see the structural trend, momentum drivers, and potential exhaustion points simultaneously.
â—Ź METHODOLOGY
The script operates on three distinct but complementary logic engines:
• Gap Analysis Engine
This module detects gaps between the previous high/low and the current open. It classifies them into three specific types based on volume and structural context:
• Market Structure Engine
• Exhaustion & Stress Model
This statistical engine measures market "Stress" by analyzing the impact of price range relative to volume (True Range / Volume).
â—Ź VISUALS & LEGEND
Before trading, you need to know what the indicator is drawing on your chart:
• Change of Character (CHoCH)
• Order Blocks (OB)
• Gaps
• Stress Model Signals
â—Ź TRADING STRATEGY
You can use a "Pullback, Continuation & Exhaustion" strategy with this indicator.
• Scenario A: Long Setup (Buying)

• Scenario B: Short Setup (Selling)

â—Ź SETTINGS
• Date Range Filter
• Gap Analysis
• Market Structure
• Exhaustion & Stress Model
â—Ź DISCLAIMER
Unlike standard ZigZag or Fractal indicators, this script integrates volume, trend maturity, and statistical volatility (Z-Score) to contextually classify price action. By overlaying these elements with a robust Market Structure engine—which identifies Change of Character (CHoCH) and Order Blocks—the tool provides a confluent view of price action.
It automates the detection of institutional footprints, allowing traders to see the structural trend, momentum drivers, and potential exhaustion points simultaneously.
â—Ź METHODOLOGY
The script operates on three distinct but complementary logic engines:
• Gap Analysis Engine
This module detects gaps between the previous high/low and the current open. It classifies them into three specific types based on volume and structural context:
- Breakaway Gaps: Identified when a gap creates a breakout above a recent Pivot High or below a Pivot Low. This signals the start of a potential new trend.
- Exhaustion Gaps: Identified when a gap occurs with high relative volume and meets the Trend Maturity criteria. This often signals the end of a trend.
- Runaway Gaps: Standard continuation gaps that occur within a trend.
• Market Structure Engine
- Swings and CHoCH: The script uses a left-and-right bar lookback to identify Pivot Highs and Lows. A Change of Character (CHoCH) is plotted when price closes beyond the most recent major pivot.
- Order Blocks (OB): Upon a continuation of the trend, the script scans backward to find the extreme candle (the origin of the move) and highlights this zone as an Order Block.
- Dynamic Cleanup: Gaps and Order Blocks are automatically removed (mitigated) when price aggressively crosses through their levels.
• Exhaustion & Stress Model
This statistical engine measures market "Stress" by analyzing the impact of price range relative to volume (True Range / Volume).
- Calculation: It calculates a Z-Score (Standard Deviation) of this impact.
- Logic: When the Z-Score exceeds a specific threshold (Sigma), it indicates a statistical anomaly or "Stress."
- Signal: If high stress occurs while price is significantly above the trend baseline, it signals "Buyer Exhaustion." Conversely, high stress below the baseline signals "Seller Exhaustion."
â—Ź VISUALS & LEGEND
Before trading, you need to know what the indicator is drawing on your chart:
• Change of Character (CHoCH)
- Green Dashed Line: Indicates a Bullish reversal.
- Red Dashed Line: Indicates a Bearish reversal.
• Order Blocks (OB)
- Green Boxes: Bullish support zones (Buy interest).
- Red Boxes: Bearish resistance zones (Sell interest).
- Note: Invalidated boxes are automatically deleted.
• Gaps
- Blue Box (Breakaway): Strong momentum gap starting a new trend.
- Orange Box (Runaway): Continuation gap.
- Red Box (Exhaustion): Warning signal; trend may be ending.
• Stress Model Signals
- Label "BE" (Red): Buyer Exhaustion. Suggests the bullish move is overextended relative to volume participation.
- Label "SE" (Green): Seller Exhaustion. Suggests the bearish move is overextended.
â—Ź TRADING STRATEGY
You can use a "Pullback, Continuation & Exhaustion" strategy with this indicator.
• Scenario A: Long Setup (Buying)
- Trend Change: Look for a CHoCH label with a Green Dashed Line.
- Entry Zone: Look for a Green Order Block (OB) to form.
- Confirmation: A Breakaway Gap (Blue) validates the breakout.
- Entry: Enter Long when price pulls back into the Green OB.
- Exit Warning: If a "BE" (Buyer Exhaustion) label appears, consider tightening stops or taking profit.
• Scenario B: Short Setup (Selling)
- Trend Change: Look for a CHoCH label with a Red Dashed Line.
- Entry Zone: Look for a Red Order Block (OB) to form.
- Confirmation: A Breakaway Gap downwards validates the move.
- Entry: Enter Short when price rallies back into the Red OB.
- Exit Warning: If an "SE" (Seller Exhaustion) label appears, consider tightening stops or taking profit.
â—Ź SETTINGS
• Date Range Filter
- Use Date Filter: Toggle time-based filtering.
- Start Date: Timestamp to begin calculations.
• Gap Analysis
- Min Gap Size: Minimum points required to register a gap.
- Logic Inputs: Configures lookback periods and volume multipliers for gap classification.
- Visuals: Customize colors for Breakaway, Runaway, and Exhaustion gaps.
• Market Structure
- Swing Detection Length: Lookback period for pivot points.
- Show CHoCH: Toggle for Change of Character labels.
- Show Order Blocks: Toggle for OB boxes.
• Exhaustion & Stress Model
- Trend Filter Length: Baseline length for determining trend direction (EMA).
- Statistical Lookback: Length for the Z-Score calculation.
- Stress Threshold (Sigma): The standard deviation requirement to trigger an exhaustion signal (Default: 2.0).
â—Ź DISCLAIMER
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità . Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Passionate technical analysts crafting unique, proprietary indicators. We deliver fresh insights designed to redefine your understanding of the market. We welcome new ideas—message us with your concept, and we’ll build it for you free of charge.
Declinazione di responsabilitĂ
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità . Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Passionate technical analysts crafting unique, proprietary indicators. We deliver fresh insights designed to redefine your understanding of the market. We welcome new ideas—message us with your concept, and we’ll build it for you free of charge.
Declinazione di responsabilitĂ
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.