Demand and Supply MTF with SMC By StockFusion - 3.0

Concepts
What is Supply & Demand?
Supply and Demand are foundational forces driving market dynamics. Demand reflects the presence of buyers willing to purchase a security, while Supply indicates sellers offering it for sale. These forces create zones on the chart where price tends to react—either reversing or continuing—based on the balance between buying and selling pressure. This indicator identifies these zones using price action patterns, focusing on impulsive moves (strong directional momentum) and retracement phases (consolidation or pullbacks).
What is SMC (Smart Money Concepts)?
Smart Money Concepts (SMC) revolve around tracking the behavior of institutional traders, often called "smart money." By analyzing price action, market structure shifts, and liquidity, SMC helps retail traders align with the moves of larger players. Key SMC signals like Change of Character (CHoCH), Break of Structure (BOS), liquidity sweeps, and swing points provide insights into potential trend changes or continuations.
Overview
Demand and Supply MTF with SMC By StockFusion - 3.0 is a sophisticated, price action-based indicator designed to plot real-time Supply and Demand zones across multiple timeframes (MTF) directly on your chart. It goes beyond simple zone plotting by integrating Smart Money Concepts (SMC) and Inside Candle detection, offering traders a powerful tool for spotting high-probability reversal or continuation areas. The indicator highlights zones with customizable boxes, labels them for clarity, and provides additional SMC-driven insights such as CHoCH, BOS, liquidity sweeps, and swing high/low levels. This combination of multi-timeframe analysis, SMC, and consolidation detection creates a unique and highly practical tool for traders seeking an edge in the markets.
How It Works
The indicator operates by analyzing price action across two user-defined timeframes (Higher TF and Lower TF) to detect Supply and Demand zones. It identifies these zones based on specific price patterns:
Rally Base Rally (RBR): A bullish impulsive move, followed by consolidation, then another bullish move—indicating a Demand zone.
Drop Base Drop (DBD): A bearish impulsive move, consolidation, then another bearish move—indicating a Supply zone.
Drop Base Rally (DBR): A bearish move, consolidation, then a bullish reversal—indicating a Demand zone.
Rally Base Drop (RBD): A bullish move, consolidation, then a bearish reversal—indicating a Supply zone.
These patterns are detected using criteria like explosive candle movements (based on range-to-body ratios and ATR multipliers), volume thresholds, and base candle counts (configurable from 1 to 5 candles). Zones are plotted as horizontal bands, with Higher TF zones taking precedence to avoid overlap with Lower TF zones, ensuring clarity on the chart.
Smart Money Integration:
The indicator enhances zone analysis with SMC features:
CHoCH (Change of Character): Detects shifts in market sentiment by comparing price action against recent swing highs/lows over a customizable period.
BOS (Break of Structure): Identifies when price breaks key structural levels, signaling a potential trend shift.
Liquidity Sweeps: Marks areas where price briefly exceeds swing points before reversing, often targeting stop-loss orders.
Swings: Highlights significant swing highs and lows to track momentum and structure.
Inside Candle Detection:
Inside Candles—smaller candles contained within the range of a prior candle—are plotted to indicate consolidation or indecision, often preceding breakouts. Optional lines can be drawn around these candles for better visibility.
Key Features & How to Use
Real-Time Zone Plotting:
Automatically identifies and marks Supply and Demand zones as they form, using the RBR, RBD, DBR, and DBD patterns. Zones are color-coded (e.g., green for Demand, red for Supply) and can extend rightward for visibility.
Multi-Timeframe Analysis:
Operates on all timeframes, with separate settings for Higher TF (e.g., weekly) and Lower TF (e.g., daily) zones. This allows traders to see both macro and micro levels of market structure.
Automatic Detection:
No manual input is required—zones are plotted based on price action, volume, and SMA trends. Live candle volume is displayed for context.
Tested Zone Management:
Optionally removes zones after they’re tested (price revisits and reverses) or after a second leg-out move, keeping the chart uncluttered.
Customizable Display:
Choose which patterns to detect (RBR, RBD, etc.).
Adjust base candle counts (1-5), explosive candle parameters (Range-Body Ratio, Multiplier), and quality filters (SMA length, Volume Multiplier).
Customize colors for zones, borders, labels, and candles (boring, bullish explosive, bearish explosive).
Enable/disable labels and pattern names on boxes.
Alerts:
Set notifications for zone formation, CHoCH, BOS, and liquidity sweeps on your chosen timeframe.
Inside Candle Visualization:
Highlights consolidation phases with color-coded candles and optional lines, aiding breakout anticipation.
SMC Insights:
Visualizes CHoCH, BOS, liquidity sweeps, and swings with distinct lines and labels, helping traders follow institutional moves.
How to Use It:
Approaching Zones: When price nears a Supply or Demand zone, watch for reversal patterns (e.g., pin bars, engulfing candles) or SMC signals (e.g., BOS, liquidity sweeps) to confirm entries. Combine with your tested strategy—don’t trade zones blindly.
SMC Signals: Use CHoCH for early trend reversal clues, BOS for trend continuation, and liquidity sweeps to gauge manipulation.
Inside Candles: Monitor for breakouts after consolidation periods marked by Inside Candles.
Why It’s Unique & Valuable
This indicator stands out by blending multi-timeframe Supply and Demand analysis with Smart Money Concepts and Inside Candle detection into a single, cohesive tool. While it uses classic elements like price action and volume, its proprietary logic—combining specific pattern detection (RBR, RBD, DBR, DBD), SMC signals (CHoCH, BOS, etc.), and consolidation tracking—offers a fresh approach. Unlike generic trend-following or scalping tools, it provides actionable insights into market structure and institutional behavior, making it worth considering for traders willing to invest in a premium tool. The flexibility of customization and MTF functionality further enhances its utility across trading styles, from scalping to swing trading.
- **Style Tab Name Updates**: Renamed elements in the style tab for clarity and consistency.
- **DZ and SZ Checkbox Label Adjustments**: Adjusted the font style and timeframe display for Demand Zone (DZ) and Supply Zone (SZ) labels in the chart.
- **50 SMA-Based Trend Meter Addition**: Integrated a 50 Simple Moving Average (SMA)-based Trend Meter into the previous Trend Meter Chart code. The Trend Meter now displays in the right corner of the chart, showing trend direction (up or down) across three timeframes simultaneously using triangles:
- **Up Trend**: Indicated when the candle closes above the 50 SMA (bullish trend).
- **Down Trend**: Indicated when the candle closes below the 50 SMA (bearish trend).
- **Trend Meter Purpose**: This feature helps identify the trend direction across multiple timeframes (using the 50 SMA) to assist in trading decisions. It enables traders to align trades with the prevailing trend by showing whether an uptrend or downtrend is dominant, improving trend-based trade accuracy.
- **Zone Marking and Identification Fixes**: Corrected errors in the Demand Zone (DZ) and Supply Zone (SZ) marking and identification logic for more accurate zone representation on the chart.
- **Demand and Supply Zone Breach Marking**: Added a feature where a red downward triangle is plotted on the candle that breaches a Demand Zone (DZ), and a green upward triangle is plotted on the candle that breaches a Supply Zone (SZ). This allows for clear identification of Demand Zone Achievement Marking and Supply Zone Achievement Marking. This function helps confirm the quality and strength (good/best) of DZ and SZ zones.
- **Demand and Supply Zone Marking Style Options**: Introduced an option in the marking style settings to choose how DZ and SZ are marked on the chart—either "Wick to Wick" or "Body to Wick." This functionality is useful for demand and supply traders, supporting both risky and conservative trading approaches by providing flexibility in zone visualization.
These updates enhance the script's functionality by combining the 50 SMA-based Trend Meter, Demand and Supply Zone Breach Marking, and Demand and Supply Zone Marking Style Options with improved zone breach identification and customizable marking styles alongside the existing chart features, providing a comprehensive tool for trend analysis, zone strength evaluation, and trade direction identification.
Issue Fixed: Corrected the problem where Lower Timeframe (LTF) zones were hidden when overlapping with Higher Timeframe (HTF) zones by removing the overlaps with higher check from LTF logic.
Result: HTF and LTF zones now display together on the chart, even if they overlap, using distinct colors for clarity.
Benefit: Ensures all zones are visible for better analysis, with no overlap errors hiding LTF zones.
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente aquasonic1987.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente aquasonic1987.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.