OPEN-SOURCE SCRIPT
Zaktualizowano [MAD] SMC

1. OVERVIEW
[MAD] SMC Event Markers is a complete Smart-Money-Concepts toolkit that draws every major institutional footprint on the chart — and then ranks every zone by relevance so you instantly see which ones actually matter.
Most SMC indicators have the same problem: they paint dozens of FVGs, order blocks, and liquidity lines, and leave you to decide what to trade. After ten zones the chart looks like a dropped Lego set. This indicator solves that. Every active zone is scored 0–100 against five independent factors. Low-scoring zones fade or disappear automatically. A compact dashboard pins the top-ranked setups to a chart corner so you always know where the high-probability opportunities are.
The indicator detects 14+ SMC event types — FVG, IFVG, Order Blocks, Breaker Blocks, BSL/SSL, BPR, EQH/EQL, BOS/CHoCH, Sweep, IDM, Reversal Confirmed, Premium/Discount/Equilibrium, OTE, Volume Imbalance, SMT Divergence, PDH/PDL/PWH/PWL/PMH/PML, and ICT killzones. Every zone is ranked 0–100 by a relevance score built from five factors; opacity scales with that score so the eye is drawn to the bright zones while weak ones recede, and a threshold filter deletes the weakest zones entirely to free chart drawing budget. A top-N dashboard ranks the strongest setups by price, direction, age, and score. Three colour schemas — Default (customizable), Dark, and Light — are switchable globally, with all 22 default colours exposed as individual inputs. Per-type drawing caps and an FVG merge engine keep performance steady on busy timeframes.

2. HOW IT WORKS
SMC Event Detection
The script identifies institutional footprints in real time. Every event has its own creation logic and mitigation logic — once price returns and fills the inefficiency, the zone is removed from the chart.
Fair Value Gaps are 3-bar imbalances where the wicks don't touch, rendered as semi-transparent boxes with a centre-line at the consequent encroachment (CE). Order Blocks are the last opposite-coloured candle before a structure break, gated by minimum displacement (× ATR). Breaker Blocks are Order Blocks that flip side after price violates them, indicating role reversal. Liquidity (BSL / SSL) lines mark confirmed swing highs and lows where retail stops cluster, while BPR (Balanced Price Range) zones are detected as overlaps between opposing FVGs — high-probability institutional pivots.
EQH / EQL marks equal highs and lows within an ATR tolerance, identifying magnet liquidity. BOS / CHoCH distinguishes Break of Structure (continuation) from Change of Character (reversal); when a CHoCH prints shortly after a liquidity sweep, it is auto-tagged as Reversal Confirmed. The script also detects Sweep, IDM (Inducement), and SMT divergence against a configurable reference symbol, and shades Killzones for the Asia, London, NY-AM, and NY-PM sessions in the timezone of your choice.

Confluence Scoring
For every active zone, the script counts how many other zones overlap its price range within an ATR-based tolerance. Confluence between an Order Block, a Fair Value Gap, and a previous-day high is the textbook setup smart-money traders look for — this metric quantifies it.
Composite Relevance Score
Each zone is scored 0–100 from five normalised factors with user-editable weights: Confluence (default 30%) measuring how many other zones overlap, Freshness (20%) decaying exponentially with bars since creation, Displacement (20%) capturing the size of the impulse that created the zone divided by ATR, Trend Alignment (15%) rewarding zones that match the current swing-structure direction, and Proximity (15%) favouring zones near current price normalised by ATR reach. Weights don't have to sum to 100 — normalisation happens internally. The score recalculates every bar, so as price moves the proximity factor updates and the ranking shifts in real time.

Visual Hierarchy
Opacity scales with score — a zone at score 90 is vivid; at score 35 it's nearly transparent. Same colours, different volume. The threshold filter takes this further: anything below a configurable score (default 30) is deleted, not just dimmed — this frees drawing slots and prevents drawing-limit overflow on busy charts. Every zone label optionally appends its score, e.g. "Bull OB 82".
Dashboard Panel
On the last bar, a compact table renders in the chart corner showing the top N zones ranked by score. Each row displays rank, type, price, direction, age in bars, and score with star rating and tier colour (≥80 green, ≥60 teal, ≥40 amber, <40 grey). The table updates with every new bar.
3. HOW TO USE
The Dashboard Workflow
Glance at the dashboard. The top 2–3 zones are your high-probability watchlist for this chart — combine the price level shown with the type and direction to plan your entries. If nothing has a score above 60, the market isn't offering quality setups; wait.
Trading Reversals
Look for this sequence on the chart. First, price sweeps a BSL or SSL line and a sweep label appears. Within a few bars, CHoCH prints — a close back through the opposing swing — and a Reversal Confirmed label fires at that CHoCH point. From there, look for a fresh Order Block or FVG in the direction of the new bias, ideally inside the Discount or Premium zone or the OTE. Enter on retracement to that zone, place your stop beyond the swept extreme, and target the opposite liquidity pool (the BSL or SSL on the other side).
Trading Continuations
After a BOS in the direction of the current trend, the OB or FVG that produced the break becomes a high-probability retracement entry. The dashboard will surface it automatically if its score is in the top tier.
Decluttering for Clarity
The Threshold input is your declutter dial. On a busy 1H chart with 50+ historical zones, set it to 60 — only the cream stays visible. On a clean 15m intraday, set it to 30 to keep more context. At 0, every detected zone is drawn (legacy mode).
Combine With Other Confluence
The scoring system already integrates intra-indicator confluence. For external confluence, overlay your higher-timeframe levels, a volume profile, or session VWAPs — anything that aligns with a high-score zone is a stronger setup.
4. SETTINGS
Settings are organised into logical groups in the dialog.
5. DESIGN DECISIONS
This indicator was built around three principles.
Decluttering is more valuable than detection. Anyone can detect an FVG — the hard part is knowing which of the twelve currently on screen is the one you should care about. The scoring system exists because the trader's biggest enemy is signal-to-noise, not missing signals.
Every zone should justify its space. Opacity scaling and the threshold-delete behaviour mean that low-conviction zones don't merely fade — they're erased from the drawing pool, so the chart stays performant even on minute-tick instruments with thousands of bars of history. The drawing-limit caps (configurable per event type) reinforce this.
Customisation should be opt-in. The Default schema is the production-ready palette. Most traders won't touch the 22 colour inputs. But for designers who care, every base colour is individually editable. Dark and Light schemas exist as one-click presets for OLED users and light-theme users respectively.
6. CREDITS AND ATTRIBUTION
The Smart Money Concepts framework is a community-developed body of knowledge built on the work of Richard Wyckoff (1930s — accumulation / distribution cycles, composite-man theory), Charles Dow (higher-highs / higher-lows market structure), Michael J. Huddleston / ICT (modern SMC terminology — BOS, CHoCH, Liquidity, Breaker, FVG, OTE, Killzones), and the wider SMC trading community that refined, tested, and disseminated these ideas.
7. DISCLAIMER
For educational and informational purposes only — not financial advice. Past performance does not guarantee future results, and all trading decisions are made at your own risk. The author accepts no liability for any loss arising from use of or reliance on this script.
[MAD] SMC Event Markers is a complete Smart-Money-Concepts toolkit that draws every major institutional footprint on the chart — and then ranks every zone by relevance so you instantly see which ones actually matter.
Most SMC indicators have the same problem: they paint dozens of FVGs, order blocks, and liquidity lines, and leave you to decide what to trade. After ten zones the chart looks like a dropped Lego set. This indicator solves that. Every active zone is scored 0–100 against five independent factors. Low-scoring zones fade or disappear automatically. A compact dashboard pins the top-ranked setups to a chart corner so you always know where the high-probability opportunities are.
The indicator detects 14+ SMC event types — FVG, IFVG, Order Blocks, Breaker Blocks, BSL/SSL, BPR, EQH/EQL, BOS/CHoCH, Sweep, IDM, Reversal Confirmed, Premium/Discount/Equilibrium, OTE, Volume Imbalance, SMT Divergence, PDH/PDL/PWH/PWL/PMH/PML, and ICT killzones. Every zone is ranked 0–100 by a relevance score built from five factors; opacity scales with that score so the eye is drawn to the bright zones while weak ones recede, and a threshold filter deletes the weakest zones entirely to free chart drawing budget. A top-N dashboard ranks the strongest setups by price, direction, age, and score. Three colour schemas — Default (customizable), Dark, and Light — are switchable globally, with all 22 default colours exposed as individual inputs. Per-type drawing caps and an FVG merge engine keep performance steady on busy timeframes.
2. HOW IT WORKS
SMC Event Detection
The script identifies institutional footprints in real time. Every event has its own creation logic and mitigation logic — once price returns and fills the inefficiency, the zone is removed from the chart.
Fair Value Gaps are 3-bar imbalances where the wicks don't touch, rendered as semi-transparent boxes with a centre-line at the consequent encroachment (CE). Order Blocks are the last opposite-coloured candle before a structure break, gated by minimum displacement (× ATR). Breaker Blocks are Order Blocks that flip side after price violates them, indicating role reversal. Liquidity (BSL / SSL) lines mark confirmed swing highs and lows where retail stops cluster, while BPR (Balanced Price Range) zones are detected as overlaps between opposing FVGs — high-probability institutional pivots.
EQH / EQL marks equal highs and lows within an ATR tolerance, identifying magnet liquidity. BOS / CHoCH distinguishes Break of Structure (continuation) from Change of Character (reversal); when a CHoCH prints shortly after a liquidity sweep, it is auto-tagged as Reversal Confirmed. The script also detects Sweep, IDM (Inducement), and SMT divergence against a configurable reference symbol, and shades Killzones for the Asia, London, NY-AM, and NY-PM sessions in the timezone of your choice.
Confluence Scoring
For every active zone, the script counts how many other zones overlap its price range within an ATR-based tolerance. Confluence between an Order Block, a Fair Value Gap, and a previous-day high is the textbook setup smart-money traders look for — this metric quantifies it.
Composite Relevance Score
Each zone is scored 0–100 from five normalised factors with user-editable weights: Confluence (default 30%) measuring how many other zones overlap, Freshness (20%) decaying exponentially with bars since creation, Displacement (20%) capturing the size of the impulse that created the zone divided by ATR, Trend Alignment (15%) rewarding zones that match the current swing-structure direction, and Proximity (15%) favouring zones near current price normalised by ATR reach. Weights don't have to sum to 100 — normalisation happens internally. The score recalculates every bar, so as price moves the proximity factor updates and the ranking shifts in real time.
Visual Hierarchy
Opacity scales with score — a zone at score 90 is vivid; at score 35 it's nearly transparent. Same colours, different volume. The threshold filter takes this further: anything below a configurable score (default 30) is deleted, not just dimmed — this frees drawing slots and prevents drawing-limit overflow on busy charts. Every zone label optionally appends its score, e.g. "Bull OB 82".
Dashboard Panel
On the last bar, a compact table renders in the chart corner showing the top N zones ranked by score. Each row displays rank, type, price, direction, age in bars, and score with star rating and tier colour (≥80 green, ≥60 teal, ≥40 amber, <40 grey). The table updates with every new bar.
3. HOW TO USE
The Dashboard Workflow
Glance at the dashboard. The top 2–3 zones are your high-probability watchlist for this chart — combine the price level shown with the type and direction to plan your entries. If nothing has a score above 60, the market isn't offering quality setups; wait.
Trading Reversals
Look for this sequence on the chart. First, price sweeps a BSL or SSL line and a sweep label appears. Within a few bars, CHoCH prints — a close back through the opposing swing — and a Reversal Confirmed label fires at that CHoCH point. From there, look for a fresh Order Block or FVG in the direction of the new bias, ideally inside the Discount or Premium zone or the OTE. Enter on retracement to that zone, place your stop beyond the swept extreme, and target the opposite liquidity pool (the BSL or SSL on the other side).
Trading Continuations
After a BOS in the direction of the current trend, the OB or FVG that produced the break becomes a high-probability retracement entry. The dashboard will surface it automatically if its score is in the top tier.
Decluttering for Clarity
The Threshold input is your declutter dial. On a busy 1H chart with 50+ historical zones, set it to 60 — only the cream stays visible. On a clean 15m intraday, set it to 30 to keep more context. At 0, every detected zone is drawn (legacy mode).
Combine With Other Confluence
The scoring system already integrates intra-indicator confluence. For external confluence, overlay your higher-timeframe levels, a volume profile, or session VWAPs — anything that aligns with a high-score zone is a stronger setup.
4. SETTINGS
Settings are organised into logical groups in the dialog.
- Structure: swing and internal pivot lengths, BOS / CHoCH toggles, HH/HL/LH/LL labels
- Liquidity: BSL/SSL/INT_LQ toggles, sweep window, IDM, Reversal Confirmed
- Order Blocks: minimum displacement (× ATR), Breaker conversion on violation
- EQH / EQL: ATR tolerance for equal levels
- Fair Value Gap: small-gap filter, extension bars, mitigation-on-close, BPR detection
- FVG Merge: consolidates old overlapping FVGs by age and ATR tolerance
- Volume Imbalance: body-to-body gap detection
- Premium / Discount: range plot and OTE zone (62–79% retrace)
- Previous H/L: PDH/PDL, PWH/PWL, PMH/PML toggles
- SMT: divergence reference symbol (default NQ futures)
- Killzones: session backgrounds in selectable timezone
- Drawing Limits: per-type caps to control total draw count
- Scoring: confluence tolerance, freshness decay, proximity reach, five weights, threshold, opacity toggle, score-in-label toggle
- Dashboard: show / rows / position / cell size
- Colors: schema enum (Default / Dark / Light) plus 22 individual colour inputs
- Style: label size, extension bars, all event label text
5. DESIGN DECISIONS
This indicator was built around three principles.
Decluttering is more valuable than detection. Anyone can detect an FVG — the hard part is knowing which of the twelve currently on screen is the one you should care about. The scoring system exists because the trader's biggest enemy is signal-to-noise, not missing signals.
Every zone should justify its space. Opacity scaling and the threshold-delete behaviour mean that low-conviction zones don't merely fade — they're erased from the drawing pool, so the chart stays performant even on minute-tick instruments with thousands of bars of history. The drawing-limit caps (configurable per event type) reinforce this.
Customisation should be opt-in. The Default schema is the production-ready palette. Most traders won't touch the 22 colour inputs. But for designers who care, every base colour is individually editable. Dark and Light schemas exist as one-click presets for OLED users and light-theme users respectively.
6. CREDITS AND ATTRIBUTION
The Smart Money Concepts framework is a community-developed body of knowledge built on the work of Richard Wyckoff (1930s — accumulation / distribution cycles, composite-man theory), Charles Dow (higher-highs / higher-lows market structure), Michael J. Huddleston / ICT (modern SMC terminology — BOS, CHoCH, Liquidity, Breaker, FVG, OTE, Killzones), and the wider SMC trading community that refined, tested, and disseminated these ideas.
7. DISCLAIMER
For educational and informational purposes only — not financial advice. Past performance does not guarantee future results, and all trading decisions are made at your own risk. The author accepts no liability for any loss arising from use of or reliance on this script.
Informacje o Wersji
Better screenshot...Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
telegram - @djmad_0815
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 open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
telegram - @djmad_0815
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.