The base Meridian lattice, with a genuine order-flow upgrade. Instead of approximating flow from bar-level volume, the OFI Engine reads TradingView's native diagonal footprint — walking every price row, comparing bid against ask diagonally, and stacking consecutive same-side imbalances into stacked imbalance events (lattice type 10): the strongest initiative signal in the system.
This is what separates the OFI Engine from the base Meridian Engine. Instead of approximating order flow from bar-level volume, it reads TradingView's native per-row bid/ask footprint — comparing diagonally, then stacking consecutive same-side imbalances into one high-conviction lattice event.
At any moment the best bid and best ask sit one tick apart — a market buy lifts the ask, a market sell hits the bid. Comparing bid vs ask on the same row mixes both sides of the spread and is dominated by microstructure noise. So the engine compares diagonally: a buy imbalance flags when a row's buy volume ≥ threshold% of the sell volume of the row below it (3:1 default); a sell imbalance mirrors it above. TradingView's request.footprint(ticks, 70, 300) implements exactly this.
request.footprint(fpTicks, 70, fpImbPct) pulls true bid/ask at each price row. It walks all rows tracking consecutive same-side runs; the best run ≥ minStackRows (default 3) becomes a stacked imbalance. Needs Premium / Ultimate.
The event bitmask extends to types 1–10. A stack pushes direction-aware into the existing density → grade → Gate 3 pipeline, and earns a +1 grade nudge when it aligns — high-conviction initiative.
Optionally the stack bottom (buy) / top (sell) registers into the Liquidity Memory Map as a high-intensity magnet, with intensity scaled by stack length × volume ratio.
When footprint data is na or native is off, the engine counts consecutive bars with strong same-side delta. Coarser — not diagonal — but it keeps the feature alive on all plans and symbols.
Green/red square markers, an optional translucent stack-zone box, a dashboard OFI row (Stk↑3·FP / Stk↓4·px), and alertconditions for stacked buy/sell at ≥ PRIME density.
CVD (the primitive), absorption (type 8), and imbalance (type 9) keep firing underneath. Stacks sit on top as the strongest initiative read — they don't replace the layer, they crown it.
| Input | Default | Role |
|---|---|---|
| Prefer native footprint | true | Use request.footprint when available |
| Footprint ticks/row | 100 | Row height (tune per symbol) |
| Imbalance threshold % | 300 | Diagonal ratio (3 : 1) |
| Min stacked rows | 3 | Run length to qualify |
| Show stacked zones | true | Zone boxes |
| Register stack as magnet | true | Feed the Liquidity Memory Map |
Tuning. ES/NQ: try ticks/row 4–20. Crypto / large-range bars: 50–200. Target ~15–40 rows per bar for useful stacks; raise the threshold to 400–500% if stacks fire too often. Honest scope: stacked imbalance needs a Premium/Ultimate plan — on lower plans it silently falls back to the CVD proxy (the dashboard tags every read ·FP native or ·px proxy).
Meridian OFI never takes a trade off one signal. Three gates must clear in order — a regime-aware bias, a liquidity arm, and an untapped zone retest — before the engine commits a managed path from entry to TP3.
The engine classifies every bar TREND, RANGE, or TRANSITION. In TREND it trades only with the ribbon and cloud; in RANGE it fades premium and discount extremes; in TRANSITION it demands a denser lattice before anything fires.
A setup only arms on a confirmed liquidity sweep, a volume-backed VWAP reclaim, or a bullish/bearish CHoCH. The arm expires after a preset number of bars — stale setups are dropped automatically.
Price must tap an untapped FVG (or order block) while the event lattice reads at least your minimum grade. No-chase blocks stretched entries in TREND; RANGE gets a fade-into-extremes exception.
On entry, Meridian OFI plots a structural stop and three targets. PATH CONFIRM fires when TP1 is touched; PATH BREAK fires if price closes beyond the stop first. One path per direction, tracked live.
Mutual exclusion built in. If both long and short fire on the same bar, Meridian OFI keeps the higher-density side — or stands aside entirely on a tie. It will not hand you a conflicting pair.
Each pillar replaces a flat rule with a dynamic read — regime context, a decaying memory of liquidity, clustered evidence, and a tracked trade path.
Every bar is classified TREND, RANGE, or TRANSITION from ATR relative strength, a manual ADX(14), and EMA ribbon 9/21/50 alignment. Bias, risk-reward, and no-chase logic all shift with the regime.
Confirmed sweeps push liquidity pools into a rolling memory — each with a price, direction, intensity, and a decaying magnet. Revisit with volume and the magnet strengthens; TP3 can target the opposing pool.
Not a flat score. Sweeps, CHoCH, BOS, VWAP reclaims, band touches, session tags, absorption, imbalance, and stacked imbalance land in a rolling lattice. Density is measured in time and price — each of the ten event types counted once — then graded WATCH to SINGULAR.
Entry at the close, a structural stop beyond the sweep or zone invalidation, and three targets: TP1 at VWAP or the nearest sigma band, TP2 by risk × RR, and TP3 at the opposing magnet or 1.5× TP2.
On every signal Meridian OFI stores the entry, stop, and targets, then follows the trade. TP1 touched first is a PATH CONFIRM; price closing beyond the stop first is a PATH BREAK. Both print labels and fire alerts.
America/New_York windows — Asia, London, the NY killzone, and a configurable Silver Bullet — act as amplifiers, not mandatory AND-gates. A setup in-window gets a lattice density boost, never a forced wait.
The full Order Flow Intelligence layer. Stacked imbalance (type 10) is the flagship — native diagonal footprint. Underneath it, cumulative volume delta is the primitive, and absorption (type 8) + imbalance (type 9) keep firing at the same SMC/VWAP/magnet levels. All direction-aware, all feeding density → grade → Gate 3 with no new gates.
Every bar's volume is split up/down by close vs. prior close — robust on feeds without true bid-ask — then accumulated into a running CVD. A 3-bar slope sets the rising/falling state; session high and low are tracked live.
Large opposing volume that fails to continue — price stalls or rejects at an FVG/order block, a magnet, or a VWAP band. A bullish close on heavy selling delta marks demand absorbing supply; a bearish close on heavy buying delta marks supply absorbing demand.
Aggressive continuation — a strong delta bar with rising/falling CVD plus a BOS/CHoCH, VWAP reclaim, or zone tap. It flags the side with conviction momentum, not just a level reaction.
request.footprint() reads true bid/ask at every price row. A buy imbalance flags when a row's buy volume ≥ threshold% of the sell volume of the row below it (diagonal, 3:1 default); a sell imbalance mirrors it above. Three or more consecutive same-side rows form a stacked zone — the strongest initiative read in the lattice, pushed as type 10 and optionally registered as a high-intensity magnet.
No new gates. Absorption, imbalance, and stacked imbalance raise density at the levels you already trade. A stacked run that aligns with the lattice gets a small extra grade nudge — the existing gradeOK and mutual-exclusion logic consume all of it automatically.
Honest data source. Stacked imbalance prefers TradingView's native request.footprint() (Premium/Ultimate). When footprint data is unavailable, the engine falls back to a multi-bar CVD proxy — coarser, not diagonal. The dashboard tags every read ·FP (native) or ·px (proxy).
Stacked imbalance is step one. These are the highest-value follow-ups, ranked by edge gain — only #1 is shipped today.
Native request.footprint(), consecutive same-side runs ≥ 3 → lattice type 10. SHIPPED — v2.2
Mark the extreme row where two-sided volume remains — the market is likely to return. Projects as TP3 / magnet candidates. Next
Z-score |delta| against price range, so absorption is statistically significant — not just "big delta that went nowhere." Works on both true delta and the CVD proxy. Next
Price makes a new swing extreme while CVD / bar delta does not → early path-break warning or grade penalty. Next
Footprint's point-of-control and value-area extremes feed the Liquidity Memory Map directly. Next
Weight absorption heavier in RANGE, imbalance heavier in TREND — partially handled today by the existing regime gates. Next
The lattice counts how many of the ten event types cluster near price — structure, VWAP, session, and now order-flow absorption, imbalance, and stacked imbalance — then grades the setup. Session windows amplify, and a high-magnet pool in range can push a setup to the top.
Five or more distinct event types clustered in time and price — with a high-magnet pool in range. The rarest, highest-conviction read. Maximum size and RR.
Four event types in the lattice — sweep, structure, VWAP, and session alignment converging at one level. Full position size.
The standard smart-money stack — a sweep, a structure shift, and a fresh imbalance. Standard position size.
Core confirmation only. Valid for research and tracking — raise the minimum grade to PRIME before taking live size.
Each institutional session tags the lattice for a density boost. Unlike rigid AND-gates, a setup never has to wait for the "right" window — it simply scores higher inside one.
A sweep of the prior London high or low inside the Silver Bullet window, tagged for a lattice boost. A clean reversal read.
A volume-spike test of the prior New York extreme with trend alignment — institutional defense of a session high or low.
The London session's range and liquidity form the reference for the Silver Bullet sweep later in the morning.
A break of the prior Asia range after it closes, with structure alignment — the earliest read on the day's directional intent.
Meridian OFI isn't a reskin — it's a synthesis that keeps what both engines do well and replaces their flat scoring with a regime-aware lattice, a liquidity memory map, and path tracking.
| Capability | Pro v3 | USME v2 | Meridian OFI |
|---|---|---|---|
| 3-gate bias → arm → zone | ✓ Yes | No — flat AND | ✦ Regime-aware |
| True VWAP σ bands (vPV2) | ✓ Yes | ✓ Yes | ✦ + anchors |
| No-chase / band confluence | ✓ Yes | ◐ Partial | ✦ + RANGE fade |
| BOS / CHoCH | — No | ✓ AND gates | ✦ Lattice & arm |
| Conviction grading | — No | ◐ Flat score | ✦ Lattice → SINGULAR |
| Session SB / NYDef / Asia | — No | ◐ AND-heavy | ✦ Amplifier tags |
| Liquidity memory | — No | — No | ✦ Signature |
| Path integrity | — No | — No | ✦ Yes |
| Structural SL + TP1–3 | ◐ ATR only | Labels only | ✦ Dynamic geometry |
| Regime engine | — No | — No | ✦ TREND / RANGE / TRANSITION |
| Order flow (CVD / Abs / Imb / Stack) | — No | — No | ✦ OFI + native footprint |
Nothing is left to interpretation. Each bubble, arrow, and path marker has a fixed meaning and a matching alert.
Bar-close only. Entry signals confirm on a closed bar — no mid-candle signal that can vanish before the close. Arm bubbles and stage indicators update live by design, but they are state reads, never trade triggers.
Add the script, let the Auto preset derive your timeframe, and trade the read — regime, then arm, then zone.
Paste the Meridian OFI Engine Pine Script v6 into the TradingView Pine editor, save, and add it to your chart.
Auto derives Scalp, Intraday, Swing, or Position from your chart timeframe — so stop, RR, and lattice sensitivity match the timeframe you're actually trading.
PRIME filters out weak lattices for live trading. Keep WATCH for research, and let ELITE and SINGULAR surface your highest-conviction reads.
Enter only when the dashboard shows Armed + a matching Lattice grade + an aligned Regime and Bias. Then manage via Path Confirm and Break.
Create alerts from the script's alertconditions — BUY/SELL, sweep arm, ELITE/SINGULAR, Path Break/Confirm, regime change, and bias flip.
Read the regime, read the order flow, and follow the liquidity — every signal carries a grade and a tracked path from entry to TP3. Built for TradingView Pine Script v6.