Real exchange order book and order flow for chart traders, next to MetaTrader 5.
CFD brokers show their own synthetic depth. OrderflowDOM reads the futures feed from the exchange (CME, Eurex) as market-by-order data through Databento, rebuilds the book order by order, and shows it in its own window, built for people who trade 5 and 15 minute charts rather than ticks. An MT5 indicator and an include module put the key numbers on the matching CFD chart as plain text.
Both screenshots show the built-in simulator, not a market.
Part of the same toolset as SessionDesk and Market Analogy Studio.
This is a display and research tool. It contains no order functions and it is not a signal. The one claim that could be tested so far, "does the traded volume support or brake a breakout", came out negative on a year of data (see docs/RESEARCH.md). Live data needs a paid Databento plan; without one the simulator and replays of purchased days still work.
| Where | Content |
|---|---|
Window, 5 min / 15 min view |
Coarse price ladder (row height follows the typical bar range) and one line per bar: close, move, delta, volume, the price with the most volume, events. ! marks a bar that closed against its delta |
Window, Tick view |
Raw ladder at tick size, full time and sales with sweeps merged into one print |
| Ladder notes | Large resting orders with their age and the volume traded against them (12m f22), pulled / filled when they end, ICE 34 where more was filled than was visible |
| Alert line + sound | New iceberg fill, big print, old orders triggering (stops) |
| MT5 chart | Text only: status, basis, CVD, delta, bar delta with / against the move, tags for POC / VAH / VAL, large orders and iceberg fills at the right edge, converted to CFD prices |
| Files | Raw recording, event log (one row per second plus all events and finished bars), end-of-day report |
One window per market, each bound to its market, with its own remembered
place, size and view. On top keeps it above the MT5 charts; it can be as
narrow as about 360 pixels. With Follow MT5 a window switches between the
5 and 15 minute view when you change the timeframe of that market's chart.
Databento live (MBO, snapshot on connect) recorded or purchased files (replay)
│ one thread per dataset │ same callback, paced by exchange time
▼ ▼
Market = OrderBook (orders by id) + FlowStats (CVD, volume at price, prints)
+ bars (5 / 15 min) + iceberg, large-order and old-order tracking
│ │ │
▼ ▼ ▼
window (PySide6) bridge file for MT5 event log + recorder
Common\Files\OrderflowDOM\<feed>.txt (atomic, every 200 ms)
│
▼
OrderflowDOM.mq5 indicator / OrderflowLine.mqh module (read with FILE_COMMON)
MQL5 indicators cannot open sockets, so the bridge is a small text file in MT5's common folder. All terminals on the machine can read it.
Futures to CFD. The CFD trades at a different level than the future. The
indicator measures CFD mid − future mid on every refresh, smooths it and
shifts every futures price by it. In replay or simulator mode the levels are
pinned to the current CFD price and the basis is never stored.
Windows, Python 3.10+.
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
$env:DATABENTO_API_KEY = "<your key>" # only needed for live data and downloadsMT5 (optional): copy mql5/OrderflowDOM.mq5 to MQL5\Indicators\OrderflowDOM\,
compile, attach it to the CFD chart and set InpFeed:
| CFD chart | InpFeed |
Future |
|---|---|---|
| US100 / NAS100 | NQ |
CME E-mini Nasdaq-100 |
| US30 | YM |
CBOT E-mini Dow |
| GER40 | FDAX |
Eurex DAX future |
mql5/OrderflowLine.mqh is a small read-only class for your own EA or panel:
one text line with the bar delta, plus the timeframe report for Follow MT5.
.\.venv\Scripts\python.exe run.py --sim # simulator, no data, no cost
.\.venv\Scripts\python.exe run.py # live Databento, records by default
.\.venv\Scripts\python.exe run.py --feeds NQ YM # only these markets, one window each
.\.venv\Scripts\python.exe run.py --replay 2026-11-25 --start 14:25 --feeds YM
.\.venv\Scripts\python.exe run.py --no-gui # bridge and recording only--replay <UTC day> plays files from data/ through the same code path as
live data: your own recordings of that day, otherwise purchased files.
--start HH:MM (UTC) fast-forwards first so the book is complete, --speed
scales time. Historical market-by-order files must start at UTC midnight,
because that is where the vendor's full-book snapshot is.
| Script | Purpose |
|---|---|
tools/replay_cost.py |
price of a historical window, free to ask |
tools/replay_check.py |
download a window and compare the rebuilt book with the vendor's mbp-10 book |
tools/iceberg_probe.py |
how often hidden size is filled, with base rates |
tools/delta_history.py |
buy a period of trades once and turn it into one-minute delta bars (with a cost limit) |
tools/eod_report.py |
end-of-day report: iceberg prices, large orders that ended, old orders |
tools/sim_screenshot.py |
the screenshots above |
The report also writes data/reports/ice_levels.json (futures prices, side,
hidden size), which a chart script can draw as levels after shifting them by
the basis.
| Key | Meaning |
|---|---|
dataset, symbol, stype |
Databento dataset and symbol. NQ.v.0 = most traded contract, FDAX.c.0 = front month by calendar (set FDAX.c.1 by hand in roll week) |
tick |
minimum price increment (NQ 0.25, YM 1.0, FDAX 0.5, confirmed from definition data) |
big_print |
contracts at or above which a print counts as big |
wall_range_ticks, wall_mult, wall_skip_ticks, wall_min_age_s |
large resting orders: search range, multiple of the median level size, distance from the touch to ignore, minimum age before an end is reported |
ice_min, ice_minutes |
hidden contracts in one trade event that count as an iceberg, and how long the mark stays |
old_id_gap, old_min |
how far behind the newest order id an aggressor must be to count as an old order, and the minimum size of such an event |
session_tz, session_start |
when CVD and volume profile reset |
data_dir, record, rotate_utc, event_log |
where recordings and logs go, raw recording on or off, daily reconnect time for a fresh file, event log on or off |
All thresholds are starting values and have not been validated.
data/live/<dataset>/<UTC date>_<time>.dbn.zst: the raw stream of one connection, starting with the book snapshot, so it replays on its own.data/events/<live|replay>/<feed>/<UTC date>.csv:Sstate per second,Pbig print,Iiceberg fill,Oold orders,Xlarge order ended,Bfinished 5 / 15 minute bar,Ccontract. Formats are inorderflow/eventlog.py.- Bridge file for MT5: format in
orderflow/bridge.py.
Market data is licensed. data/ is ignored by git; do not publish recordings.
.\.venv\Scripts\python.exe -m pytest -q tests- The book logic matches the vendor's book on historical data for all three markets (one day each). The live connection itself (snapshot on connect, recording, daily rotation) has not run yet.
- FTSE 100 futures (ICE) are not included.
- Resting size can be spoofed or hidden; a large order is a snapshot, not a promise. On one measured day 94 % of them were cancelled.
- A recording that ends in a crash can miss its last seconds.
- Merged sweeps show the volume-weighted price, which can fall between ticks.
MIT. No affiliation with Databento, CME, Eurex or MetaQuotes. Nothing here is trading advice.

