OPEN-SOURCE SCRIPT
Elite S&D [By:CienF]

Elite Supply & Demand [Dynamic Scoring + Structure]
Description
Elite Supply & Demand is not just another zone indicator; it is a complete institutional trading system designed to identify high-probability imbalances in the market. Unlike standard indicators that flood the chart with weak zones, this script applies rigorous Price Action rules to filter, score, and validate only the most significant areas of interest.
The core philosophy of this tool is "Anormality". Institutional activity leaves a footprint in the form of explosive volatility relative to the recent context. This indicator detects these footprints, measures their intensity, and validates them against market structure.
Key Features
🔥 Dynamic Quality Scoring (The "Elite" Feature) The indicator doesn't just draw boxes; it rates them. It calculates a Volumetric Ratio comparing the explosive move against the historical average at the moment of creation.
Contextual Intelligence: It continues to track the initial move. If the momentum continues after a small pause, the score updates in real-time.
Visual Grades:
🔥 Fire: High Anormality (Institutional Imbalance).
⚡ Lightning: Moderate Anormality (Decent strength).
No Icon: Standard move.
🏗️ Advanced Structure Validation Includes a unique "Eventual Break" filter.
Latent Zones: You can choose to hide zones that haven't broken structure yet.
Auto-Validation: The zone remains invisible/transparent until price breaks a recent High/Low or Fractal Pivot. Once the break occurs, the zone "activates" on your chart.
🧠 Smart Mitigation Logic
No Zombie Zones: Once a zone is mitigated (touched), it is strictly processed. It can either turn gray (History Mode) or be removed instantly.
Priority Handling: Mitigated zones are never re-colored or re-validated, keeping your chart clean and accurate.
🚀 Performance Optimization
Date Lookback: Includes a "Days Back" filter to prevent the script from calculating thousands of historical candles, ensuring smooth performance even on lower timeframes (1m, 5m).
🔔 Integrated Alerts
Creation: Get notified immediately when a potential zone forms.
Validation: Get notified specifically when a latent zone breaks structure and becomes active.
How It Works ( The Logic)
Phase 1: The Base (Indecision): Identifies candles with small bodies (≤ 50% of range) representing equilibrium/accumulation.
Phase 2: The Explosion (Imbalance): Looks for a strong breakout candle (≥ 60% body) that moves away from the base.
Phase 3: The Follow-up: Verifies that the move continues. It allows for "Smart Pauses" (single indecision candles) within the trend but invalidates the zone if a reversal occurs immediately.
Phase 4: Structure Check: Verifies if the move broke the Recent Range (High/Low) or Fractal Pivots.
Settings & Configuration
1. Base & Exit Rules
Max % Body: Threshold to define an indecision candle (Default: 50%).
Explosive Min: Minimum strength required for the exit candle.
2. Structure Validation
Structure Type: Choose between Recent Range (more fluid) or Fractal Pivots (stricter).
Filter Eventual Break: Highly Recommended. If checked, zones appear only after they prove their strength by breaking structure.
3. Scoring (Quality)
High Quality Ratio: The multiplier required to earn the 🔥 icon (e.g., 2.0x larger than average).
Allow Pause: Allows the algorithm to capture larger moves even if there is a single small candle in the middle of the explosive leg.
4. Performance
Days Back: Limits how far back the indicator draws. Reduce this number on low timeframes to speed up loading.
Usage Recommendations
For Trend Trading: Look for "Follow-up" zones. If you see a 🔥 zone forming in the direction of the higher timeframe trend, it is a high-probability entry.
For Reversals: Use the "Filter Eventual Break" feature. Wait for the indicator to reveal a zone that has broken a major structure point.
Stop Loss Placement: The indicator draws the zone covering the entire "Base" (wicks included). A safe stop is typically just beyond the distal line (33% recommended) of the box.
🔔 How to Set Up Alerts
Since this indicator uses the dynamic alert() function to send detailed messages (Entry Price, Stop Zone, Type), you must configure it correctly:
Add the indicator to your chart and adjust the settings to your preference.
Click the "Create Alert" button (Clock Icon) on the right toolbar or press Alt + A.
Condition: Select "Elite S&D [By:CienF]" from the dropdown menu.
Trigger (CRITICAL): You must select "Any alert() function call".
Note: Do not select "Crossing" or other standard conditions, or the alerts will not trigger.
Expiration: Select "Open-ended" (if you have a Premium plan) or set a future date.
Alert Actions: Choose where you want to receive the alert (Notify on App, Show Popup, Send Email, etc.).
Message: You can leave this default. The script automatically generates a detailed message with the Ticker, Timeframe, Zone Type, and Coordinates.
Click Create.
Disclaimer: This tool is designed to assist in technical analysis and does not constitute financial advice. Always use proper risk management.
Description
Elite Supply & Demand is not just another zone indicator; it is a complete institutional trading system designed to identify high-probability imbalances in the market. Unlike standard indicators that flood the chart with weak zones, this script applies rigorous Price Action rules to filter, score, and validate only the most significant areas of interest.
The core philosophy of this tool is "Anormality". Institutional activity leaves a footprint in the form of explosive volatility relative to the recent context. This indicator detects these footprints, measures their intensity, and validates them against market structure.
Key Features
🔥 Dynamic Quality Scoring (The "Elite" Feature) The indicator doesn't just draw boxes; it rates them. It calculates a Volumetric Ratio comparing the explosive move against the historical average at the moment of creation.
Contextual Intelligence: It continues to track the initial move. If the momentum continues after a small pause, the score updates in real-time.
Visual Grades:
🔥 Fire: High Anormality (Institutional Imbalance).
⚡ Lightning: Moderate Anormality (Decent strength).
No Icon: Standard move.
🏗️ Advanced Structure Validation Includes a unique "Eventual Break" filter.
Latent Zones: You can choose to hide zones that haven't broken structure yet.
Auto-Validation: The zone remains invisible/transparent until price breaks a recent High/Low or Fractal Pivot. Once the break occurs, the zone "activates" on your chart.
🧠 Smart Mitigation Logic
No Zombie Zones: Once a zone is mitigated (touched), it is strictly processed. It can either turn gray (History Mode) or be removed instantly.
Priority Handling: Mitigated zones are never re-colored or re-validated, keeping your chart clean and accurate.
🚀 Performance Optimization
Date Lookback: Includes a "Days Back" filter to prevent the script from calculating thousands of historical candles, ensuring smooth performance even on lower timeframes (1m, 5m).
🔔 Integrated Alerts
Creation: Get notified immediately when a potential zone forms.
Validation: Get notified specifically when a latent zone breaks structure and becomes active.
How It Works ( The Logic)
Phase 1: The Base (Indecision): Identifies candles with small bodies (≤ 50% of range) representing equilibrium/accumulation.
Phase 2: The Explosion (Imbalance): Looks for a strong breakout candle (≥ 60% body) that moves away from the base.
Phase 3: The Follow-up: Verifies that the move continues. It allows for "Smart Pauses" (single indecision candles) within the trend but invalidates the zone if a reversal occurs immediately.
Phase 4: Structure Check: Verifies if the move broke the Recent Range (High/Low) or Fractal Pivots.
Settings & Configuration
1. Base & Exit Rules
Max % Body: Threshold to define an indecision candle (Default: 50%).
Explosive Min: Minimum strength required for the exit candle.
2. Structure Validation
Structure Type: Choose between Recent Range (more fluid) or Fractal Pivots (stricter).
Filter Eventual Break: Highly Recommended. If checked, zones appear only after they prove their strength by breaking structure.
3. Scoring (Quality)
High Quality Ratio: The multiplier required to earn the 🔥 icon (e.g., 2.0x larger than average).
Allow Pause: Allows the algorithm to capture larger moves even if there is a single small candle in the middle of the explosive leg.
4. Performance
Days Back: Limits how far back the indicator draws. Reduce this number on low timeframes to speed up loading.
Usage Recommendations
For Trend Trading: Look for "Follow-up" zones. If you see a 🔥 zone forming in the direction of the higher timeframe trend, it is a high-probability entry.
For Reversals: Use the "Filter Eventual Break" feature. Wait for the indicator to reveal a zone that has broken a major structure point.
Stop Loss Placement: The indicator draws the zone covering the entire "Base" (wicks included). A safe stop is typically just beyond the distal line (33% recommended) of the box.
🔔 How to Set Up Alerts
Since this indicator uses the dynamic alert() function to send detailed messages (Entry Price, Stop Zone, Type), you must configure it correctly:
Add the indicator to your chart and adjust the settings to your preference.
Click the "Create Alert" button (Clock Icon) on the right toolbar or press Alt + A.
Condition: Select "Elite S&D [By:CienF]" from the dropdown menu.
Trigger (CRITICAL): You must select "Any alert() function call".
Note: Do not select "Crossing" or other standard conditions, or the alerts will not trigger.
Expiration: Select "Open-ended" (if you have a Premium plan) or set a future date.
Alert Actions: Choose where you want to receive the alert (Notify on App, Show Popup, Send Email, etc.).
Message: You can leave this default. The script automatically generates a detailed message with the Ticker, Timeframe, Zone Type, and Coordinates.
Click Create.
Disclaimer: This tool is designed to assist in technical analysis and does not constitute financial advice. Always use proper risk management.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.