PROTECTED SOURCE SCRIPT
SMC Range Box + HTF Matrix [AMD]

# SMC Range Box + HTF Matrix [AMD]
## Overview
**SMC Range Matrix** is a comprehensive Smart Money Concepts (SMC) indicator designed for ICT/SMC traders. It combines multi-timeframe range analysis with advanced Fair Value Gap detection, Inverted FVG tracking, Volume Imbalance zones, and AMD (Accumulation-Manipulation-Distribution) phase detection — all in one powerful tool.
---
## 🔥 Key Features
### 📦 Multi-Timeframe Range Boxes
- Display **1H, 4H, and Daily** candle ranges as visual boxes
- Up to **5 boxes per timeframe** for historical context
- **Bullish/Bearish color coding** based on candle direction
- **Time labels** showing when each range started
- **Range size display** in pips/points
- **Sweep markers** when previous highs/lows are taken
### 📊 Fair Value Gaps (FVG)
- **Auto Threshold Filter** — Only shows significant FVGs, filters out noise
- **Multi-Timeframe Support** — Display FVGs from any timeframe on your current chart
- **Smart Mitigation** — FVGs automatically removed when filled (customizable fill %)
- **Near Price Filter** — Only shows FVGs within X ATR of current price
- **Bullish & Bearish FVG** detection with customizable colors
### 🔄 Inverted Fair Value Gaps (IFVG)
- **Automatic IFVG Detection** — When price closes through an FVG, it converts to IFVG
- **Role Reversal Logic**:
- Bullish FVG → Price closes below → Becomes **Bearish IFVG** (Resistance)
- Bearish FVG → Price closes above → Becomes **Bullish IFVG** (Support)
- **Consequent Encroachment (CE) Line** — 50% level marked for optimal entry (ICT concept)
- **IFVG Invalidation** — Automatically removes IFVG when broken
### 📈 Volume Imbalance (VI)
- Detects gaps between consecutive candle bodies
- **Auto-removal** when mitigated
- Separate color settings for bullish/bearish VI
### ⚖️ Equilibrium Lines
- **50% level** of each range box
- Dynamic color based on price position (support/resistance)
- Helps identify premium/discount zones
### 🎯 AMD Phase Detection
- **Accumulation** — Tight range, consolidation phase
- **Manipulation** — Liquidity sweep with rejection
- **Distribution** — Strong directional move
- Labels displayed on each range box
---
## 🎨 Customization
### Theme Presets
- **Ocean** — Cool blue tones
- **Forest** — Natural green shades
- **Monochrome** — Clean grayscale
- **Neon** — Vibrant colors
- **Custom** — Full color control
### Fully Customizable
- Individual colors for each timeframe
- Border width and styles
- Label sizes and visibility toggles
- FVG/VI transparency and borders
---
## ⚙️ Settings Guide
### FVG Settings
| Setting | Description |
|---------|-------------|
| FVG Timeframe | Leave blank for current TF, or select specific timeframe |
| Auto Threshold | Filters insignificant FVGs based on bar movement % |
| Fill % to Remove | FVG removed when filled by this percentage (default 50%) |
| Near Price Filter | Only show FVGs within X ATR from current price |
| Show CE Line | Display 50% Consequent Encroachment line on IFVGs |
### Range Box Settings
| Setting | Description |
|---------|-------------|
| Boxes to Show | Number of historical boxes (1-5) per timeframe |
| Show Sweep Markers | Highlight when previous high/low is swept |
| Show Time Label | Display start time of each range |
---
## 📖 How to Use
### For ICT/SMC Trading:
1. **Identify the range** — Use 4H or Daily boxes to see the current dealing range
2. **Watch for FVGs** — These are potential entry zones
3. **Monitor IFVG formation** — When FVG fails, it becomes support/resistance
4. **Use CE level** — 50% of IFVG is optimal entry per ICT methodology
5. **Check AMD phase** — Understand current market phase before entry
### For Liquidity Trading:
1. Look for **sweep markers** on range boxes
2. Wait for **manipulation phase** detection
3. Enter on **IFVG retest** at CE level
4. Target opposite side of the range
---
## 🔔 Best Practices
- Use **4H boxes** for swing trading context
- Use **1H boxes** for intraday entries
- Enable **Auto Threshold** to reduce FVG clutter
- Set **Fill % to 50-70%** based on your trading style
- Combine with your own bias analysis (HTF trend, news, etc.)
---
## ⚠️ Disclaimer
This indicator is for educational purposes only. It does not constitute financial advice. Always do your own analysis and manage your risk properly. Past performance does not guarantee future results.
---
## 📝 Release Notes
**v8**
- Added LuxAlgo-style FVG detection with Auto Threshold
- Added Multi-Timeframe FVG support
- Improved IFVG logic — proper inversion detection
- Added Consequent Encroachment (CE) line for IFVGs
- Fixed fill tracking to not interfere with inversion
- Added Volume Imbalance detection
- Added AMD phase detection
- Multiple theme presets
---
## 💬 Feedback
If you find this indicator helpful, please leave a like and comment! Your feedback helps improve future versions.
**Tags:** #SMC #ICT #FVG #IFVG #SmartMoney #OrderFlow #LiquiditySweep #AMD #PriceAction #InstitutionalTrading
## Overview
**SMC Range Matrix** is a comprehensive Smart Money Concepts (SMC) indicator designed for ICT/SMC traders. It combines multi-timeframe range analysis with advanced Fair Value Gap detection, Inverted FVG tracking, Volume Imbalance zones, and AMD (Accumulation-Manipulation-Distribution) phase detection — all in one powerful tool.
---
## 🔥 Key Features
### 📦 Multi-Timeframe Range Boxes
- Display **1H, 4H, and Daily** candle ranges as visual boxes
- Up to **5 boxes per timeframe** for historical context
- **Bullish/Bearish color coding** based on candle direction
- **Time labels** showing when each range started
- **Range size display** in pips/points
- **Sweep markers** when previous highs/lows are taken
### 📊 Fair Value Gaps (FVG)
- **Auto Threshold Filter** — Only shows significant FVGs, filters out noise
- **Multi-Timeframe Support** — Display FVGs from any timeframe on your current chart
- **Smart Mitigation** — FVGs automatically removed when filled (customizable fill %)
- **Near Price Filter** — Only shows FVGs within X ATR of current price
- **Bullish & Bearish FVG** detection with customizable colors
### 🔄 Inverted Fair Value Gaps (IFVG)
- **Automatic IFVG Detection** — When price closes through an FVG, it converts to IFVG
- **Role Reversal Logic**:
- Bullish FVG → Price closes below → Becomes **Bearish IFVG** (Resistance)
- Bearish FVG → Price closes above → Becomes **Bullish IFVG** (Support)
- **Consequent Encroachment (CE) Line** — 50% level marked for optimal entry (ICT concept)
- **IFVG Invalidation** — Automatically removes IFVG when broken
### 📈 Volume Imbalance (VI)
- Detects gaps between consecutive candle bodies
- **Auto-removal** when mitigated
- Separate color settings for bullish/bearish VI
### ⚖️ Equilibrium Lines
- **50% level** of each range box
- Dynamic color based on price position (support/resistance)
- Helps identify premium/discount zones
### 🎯 AMD Phase Detection
- **Accumulation** — Tight range, consolidation phase
- **Manipulation** — Liquidity sweep with rejection
- **Distribution** — Strong directional move
- Labels displayed on each range box
---
## 🎨 Customization
### Theme Presets
- **Ocean** — Cool blue tones
- **Forest** — Natural green shades
- **Monochrome** — Clean grayscale
- **Neon** — Vibrant colors
- **Custom** — Full color control
### Fully Customizable
- Individual colors for each timeframe
- Border width and styles
- Label sizes and visibility toggles
- FVG/VI transparency and borders
---
## ⚙️ Settings Guide
### FVG Settings
| Setting | Description |
|---------|-------------|
| FVG Timeframe | Leave blank for current TF, or select specific timeframe |
| Auto Threshold | Filters insignificant FVGs based on bar movement % |
| Fill % to Remove | FVG removed when filled by this percentage (default 50%) |
| Near Price Filter | Only show FVGs within X ATR from current price |
| Show CE Line | Display 50% Consequent Encroachment line on IFVGs |
### Range Box Settings
| Setting | Description |
|---------|-------------|
| Boxes to Show | Number of historical boxes (1-5) per timeframe |
| Show Sweep Markers | Highlight when previous high/low is swept |
| Show Time Label | Display start time of each range |
---
## 📖 How to Use
### For ICT/SMC Trading:
1. **Identify the range** — Use 4H or Daily boxes to see the current dealing range
2. **Watch for FVGs** — These are potential entry zones
3. **Monitor IFVG formation** — When FVG fails, it becomes support/resistance
4. **Use CE level** — 50% of IFVG is optimal entry per ICT methodology
5. **Check AMD phase** — Understand current market phase before entry
### For Liquidity Trading:
1. Look for **sweep markers** on range boxes
2. Wait for **manipulation phase** detection
3. Enter on **IFVG retest** at CE level
4. Target opposite side of the range
---
## 🔔 Best Practices
- Use **4H boxes** for swing trading context
- Use **1H boxes** for intraday entries
- Enable **Auto Threshold** to reduce FVG clutter
- Set **Fill % to 50-70%** based on your trading style
- Combine with your own bias analysis (HTF trend, news, etc.)
---
## ⚠️ Disclaimer
This indicator is for educational purposes only. It does not constitute financial advice. Always do your own analysis and manage your risk properly. Past performance does not guarantee future results.
---
## 📝 Release Notes
**v8**
- Added LuxAlgo-style FVG detection with Auto Threshold
- Added Multi-Timeframe FVG support
- Improved IFVG logic — proper inversion detection
- Added Consequent Encroachment (CE) line for IFVGs
- Fixed fill tracking to not interfere with inversion
- Added Volume Imbalance detection
- Added AMD phase detection
- Multiple theme presets
---
## 💬 Feedback
If you find this indicator helpful, please leave a like and comment! Your feedback helps improve future versions.
**Tags:** #SMC #ICT #FVG #IFVG #SmartMoney #OrderFlow #LiquiditySweep #AMD #PriceAction #InstitutionalTrading
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Korumalı komut dosyası
Bu komut dosyası kapalı kaynak olarak yayınlanmaktadır. Ancak, ücretsiz ve herhangi bir sınırlama olmaksızın kullanabilirsiniz – daha fazla bilgiyi buradan edinebilirsiniz.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.