OPEN-SOURCE SCRIPT
MJQ.Smart Money - Zones, Sweeps & Gaps

MJQ Smart Money — multi-timeframe supply/demand, liquidity and structure toolkit
One overlay that maps where smart money is likely positioned, across your entry, setup and bias timeframes.
What it draws
- Supply / Demand zones (unified engine) — finds a quiet consolidation base and only stamps a zone when price departs
from it with an impulse ≥ 1.2× ATR. Covers all four patterns (rally-base-rally, rally-base-drop, drop-base-drop,
drop-base-rally). Zones are detected on the chart TF plus Daily, 4H and 1H simultaneously, with a proximity filter so
only actionable levels near price are drawn.
- Zone lifecycle — fresh zones are protected by a grace period, fade to dimmed/dashed on first proximal touch
("tested", still tradeable), and are removed when the distal edge breaks. Daily+ zones mitigate on first touch since
daily tests are real mitigations.
- Liquidity sweeps — pin-bar or engulfing rejections that run stops above confirmed highs (BSL) or below confirmed
lows (SSL).
- Market structure — BOS and CHoCH on the chart timeframe, plus an HTF bias engine (auto-mapped or manual HTF) that
tracks higher-timeframe structure; optionally filter signals to align with HTF bias.
- Fair Value Gaps — unfilled FVGs with automatic removal once filled.
- Price gap detector — unfilled session/daily gaps, auto-removed on fill.
- Round numbers — psychological levels marked inside zones.
- Dashboard — at-a-glance HTF bias, structure state and module status.
Trading profiles — pick Swing (Daily bias / 4H setup / 1H entry) or Intraday (1H bias / 15m setup / 3m entry) and the
zone timeframes configure themselves; Custom uses your own TF slots.
Alerts — bullish/bearish liquidity sweeps, LTF CHoCH, HTF BOS and HTF CHoCH (8 conditions).
---
Release notes for this version (from recent work)
- Unified S/D engine: order blocks merged into one base-plus-departure detector across all four patterns
- Chop filter: minimum departure raised to 1.2× ATR to kill sideways-market zone spam
- Fixed zone-bound inflation bug (backward loop) that overstated all zone heights
- New touch handling: Fade/Remove modes, wick-vs-close distal failure, Daily+ first-touch removal
- Zone proximity filter (15× ATR default) keeps the chart to actionable levels only
- Trading Profile presets (Swing / Intraday) for automatic timeframe selection
One overlay that maps where smart money is likely positioned, across your entry, setup and bias timeframes.
What it draws
- Supply / Demand zones (unified engine) — finds a quiet consolidation base and only stamps a zone when price departs
from it with an impulse ≥ 1.2× ATR. Covers all four patterns (rally-base-rally, rally-base-drop, drop-base-drop,
drop-base-rally). Zones are detected on the chart TF plus Daily, 4H and 1H simultaneously, with a proximity filter so
only actionable levels near price are drawn.
- Zone lifecycle — fresh zones are protected by a grace period, fade to dimmed/dashed on first proximal touch
("tested", still tradeable), and are removed when the distal edge breaks. Daily+ zones mitigate on first touch since
daily tests are real mitigations.
- Liquidity sweeps — pin-bar or engulfing rejections that run stops above confirmed highs (BSL) or below confirmed
lows (SSL).
- Market structure — BOS and CHoCH on the chart timeframe, plus an HTF bias engine (auto-mapped or manual HTF) that
tracks higher-timeframe structure; optionally filter signals to align with HTF bias.
- Fair Value Gaps — unfilled FVGs with automatic removal once filled.
- Price gap detector — unfilled session/daily gaps, auto-removed on fill.
- Round numbers — psychological levels marked inside zones.
- Dashboard — at-a-glance HTF bias, structure state and module status.
Trading profiles — pick Swing (Daily bias / 4H setup / 1H entry) or Intraday (1H bias / 15m setup / 3m entry) and the
zone timeframes configure themselves; Custom uses your own TF slots.
Alerts — bullish/bearish liquidity sweeps, LTF CHoCH, HTF BOS and HTF CHoCH (8 conditions).
---
Release notes for this version (from recent work)
- Unified S/D engine: order blocks merged into one base-plus-departure detector across all four patterns
- Chop filter: minimum departure raised to 1.2× ATR to kill sideways-market zone spam
- Fixed zone-bound inflation bug (backward loop) that overstated all zone heights
- New touch handling: Fade/Remove modes, wick-vs-close distal failure, Daily+ first-touch removal
- Zone proximity filter (15× ATR default) keeps the chart to actionable levels only
- Trading Profile presets (Swing / Intraday) for automatic timeframe selection
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.