OPEN-SOURCE SCRIPT

MJQ.Smart Money - Zones, Sweeps & Gaps

511
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

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.