Liquidity Narrative Engine
- Indicatori
- Versione: 1.0
- Attivazioni: 5
Follows one Smart Money setup from start to finish: liquidity pool (EQH/EQL), sweep, CHoCH, EMA 9/15 cross and BOS. Stage labels, a READY arrow, a CONFIRMED mark, a live 5-stage panel and one alert per bar. Closed-bar logic, no repainting.
Liquidity Narrative Engine reads Smart Money Concepts as a story instead of a pile of separate signals. A setup only counts when the steps happen in order, on the same move:
1. Pool - a buy-side (BSL) or sell-side (SSL) liquidity pool above swing highs or below swing lows. Equal highs and lows (EQH / EQL) are merged and counted as touches.
2. Sweep - price trades through the pool and closes back inside it. An SSL sweep starts a bullish narrative, a BSL sweep a bearish one.
3. CHoCH - structure shifts in the new direction after the sweep (a change of character, or a market structure shift if you allow it).
4. EMA cross - the fast EMA crosses the slow EMA in the same direction (default 9 and 15). The cross may come a few bars before the sweep.
5. BOS - a further break of structure in the same direction completes the narrative.
What you see on the chart
- Dotted BSL / SSL pool lines with touch counts, marked "swept" or "run" when price reaches them.
- A box around the active narrative, from the sweep extreme to the furthest price since.
- Stage labels: SWEEP, CHoCH or MSS, EMA, BOS, and the final result (COMPLETE, FAILED, EXPIRED, REPLACED).
- A READY arrow when sweep + CHoCH + EMA cross are in place, and a CONFIRMED mark when the BOS completes the narrative.
- Fast and slow EMA lines (optional).
- A compact panel showing the bullish and bearish narrative side by side, with a 5-step progress bar and the stage names lit as they complete. Optional statistics line.
A clean chart
By default the chart shows only what matters: the setups in progress and your most recent completed setups (10 by default). Setups that fail, expire or are replaced are removed from the chart together with their pool lines, and labels are spaced so they do not sit on top of each other. Switch on "Show finished setups" if you want to study every attempt.
How a narrative ends
- Failed: price closes beyond the sweep extreme, or structure breaks the other way.
- Expired: no CHoCH within your bar limit, or no completion within the total bar limit.
- Replaced: a newer sweep in the same direction starts a fresh narrative.
No repainting
All decisions are made on closed bars only. Arrows, marks and labels on past bars do not change. Only the lines and the box of the narrative that is still active stretch to the current bar.
Alerts
Pop-up, sound and push notification. Choose the stage from which alerts start (default 3, the CHoCH). Everything that happens on one bar is sent as a single alert, for example "BULL 4/5 CHoCH at 2763.56 | READY (sweep + CHoCH + EMA)". You can switch off alerts for failed, expired and replaced narratives.
Inputs
Liquidity pools
- Swing strength: bars on each side that define a swing high or low (default 5).
- Equal high/low tolerance: how close two swings must be, as a fraction of ATR, to count as one pool (default 0.10).
- Max active pools per side (default 8) and retire a pool after N bars (default 500).
- Only start on EQH/EQL pools (2 or more touches), on or off.
- Draw BSL / SSL lines, on or off.
Structure
- Break confirmed by close, or by wick.
- Stage 3 must be a true CHoCH, or also accept a market structure shift.
EMA crossover
- Fast and slow EMA (default 9 and 15). Fast must be shorter than slow.
- Cross may occur up to N bars before the sweep (default 3).
- Accept fast/slow alignment without a fresh cross, on or off.
- Plot the EMAs, on or off.
Narrative rules
- Max bars from sweep to CHoCH (default 30) and from sweep to completion (default 120).
- ATR period (default 14) and bars of history to scan (default 5000).
Visuals
- Bullish, bearish, buy-side, sell-side and pending colours, narrative box and fill, stage labels, label font size, arrow offset.
- Show finished setups (failed / expired / replaced), off by default.
- Max completed setups kept on chart (default 10, 0 = all).
Panel
- Show panel, corner (any of the four), X and Y offset in pixels, font size, background and title colour.
- Panel background behind candles (on by default, gives a see-through look; the text stays on top).
- Show panel statistics: completed, failed, expired and replaced counts and completion rate on the loaded history (off by default).
Alerts
- Pop-up, push, sound, alert from stage (2 to 5), alerts for failed / expired / replaced narratives.
How to use it
- Attach it to any symbol and timeframe. It works on forex, gold, indices and other CFDs.
- Use the panel to see which side has a narrative in progress and how far it has got.
- A READY arrow means sweep, change of character and EMA cross are all in place. The CONFIRMED mark means a break of structure has followed. Many traders use READY to start planning and CONFIRMED as extra confirmation. Decide your own entry, stop and target rules and test them on a demo account first.
- You can run two copies on one chart (for example, different EMA settings). Each copy keeps its own objects and its panel is placed below the first.
Notes
- On a timeframe without enough history the panel says how many bars are still needed.
- The indicator draws only on the chart. It does not open, change or close trades.
- Risk warning: trading leveraged products such as forex and CFDs carries a high risk of loss. This indicator is an analysis tool, not financial advice. Past price behaviour and past signals do not guarantee future results.
Questions and suggestions are welcome in the comments section of this product.
