OrderFlowAi / Features / CORTEX Neural Engine
● ONE CORTEX · ONE BRAIN · LEARNS ON YOUR FEED

One brain that thinks the order flow

ONE CORTEX is a single self-learning AI brain: an LSTM network with several heads on one shared backbone. It learns from your own Level-2 feed and feeds the Dashboard, the Heatmap, the DOM and the NinjaTrader 8 strategy the same read.

OrderFlowAi Research Updated September 2026 ~10 min read Advanced

Earlier versions ran separate logic per panel: the Dashboard computed one thing, the Heatmap another, the NT8 strategy a third. The result was conflicting readouts — green in one window, red in the next. ONE CORTEX is exactly one brain: a self-learning Long Short-Term Memory (LSTM) network that learns from the order book and the tape of the E-mini S&P 500 and hands the identical read to every surface.

This article explains how the one brain is built, what its heads predict, what it learns from — and how it honestly shows whether it is any good right now.

IN SHORT

CORTEX runs locally in the OrderFlowAi desktop app. It starts from zero — there is no pretrained model and no one else's trades. It learns from your own Level-2 feed while the heatmap is open; your closed trades additionally train a head of their own.

One brain, not many separate signals

There is one central model. It makes the call, and the Dashboard, Heatmap, DOM, Journal and strategy read exactly the same output. No panel contradicts another, because there are no parallel second opinions.

One brain with several heads is more consistent than many separate detectors overruling each other. Every head sees the same features — each one answers a different question.

The heads on one backbone

The heads sit on the same LSTM backbone. Each is trained on its own clearly defined target — none of them is an opinion, every one is answered by the market after the fact:

SCALP
Which side comes first?
Predicts whether price reaches ±8 ticks up or down first within 30 seconds. The scalp head sets the direction of the live signal; while it is still learning, the drift head steps in.
30 s horizon ±8 ticks Drives the signal
DRIFT
The calm underlying direction
Predicts whether price first reaches a barrier scaled to current volatility on the upside or the downside — over a longer span than the scalp head. UP / FLAT / DOWN with a probability.
Volatility-scaled UP / FLAT / DOWN Fallback
TARGET ODDS
Target before stop?
Estimates, separately for long and short, how likely the profit target is reached before the stop. It is measured in traded volume, not minutes — so quiet and hectic phases count equally fairly. In the strategy this head is an entry gate.
Long + short separately Volume, not clock time Entry gate
TRADE PnL
What is a trade worth?
Learns from your actually closed trades what result an entry in this situation can be expected to bring (in R). It only starts once there are enough of your own trades — until then it stays silent instead of guessing.
Real fills Result in R Your own trades

One more head measures how often a signal flips before a trade resolves. It deliberately runs as a measurement only and influences no decision. The Swing readout on the Dashboard is not a learned head of its own: it combines regime and trend direction and shows the target zone as a VWAP band with an invalidation price.

Features, backbone and what CORTEX learns from

At every time step ONE CORTEX processes a vector of several dozen microstructure features: delta over several windows with acceleration and divergence, order-book imbalance across several levels, walls, pulls and refills, absorption and sweeps, iceberg and spoof traces, large prints, tape speed, distance to VWAP, value area and VPOC, Wyckoff phase and gamma-pin traces. Deliberately no clock time — the model should read the market, not the calendar.

A sequence covering roughly the last minute and a half runs through two stacked LSTM layers and a compact dense block, with the heads on top. Training runs in its own background process, so the live signal never waits for learning.

SELF-LEARNING · NO PRETRAINED MODEL

CORTEX learns from your Level-2 feed: while the heatmap is open, market samples are taken continuously, and each one is later answered by the market itself. Your closed trades — from the journal and from the strategy — additionally train the trade-PnL head. There is no bundled model and no one else's trades; a new model generation deliberately starts from zero again.

The same read everywhere — Dashboard, Heatmap, DOM, strategy

The app produces exactly one signal and distributes it to every window. That is the real point of ONE CORTEX:

  • Dashboard. SCALP and SWING readouts with confidence, plus Bid/Ask Pulse — the real-time pressure gauge of aggressive buyers and sellers.
  • Heatmap. This is where CORTEX runs and learns. The signals are embedded visually, together with sweep/absorption, reversal and event pills.
  • CORTEX DOM. The PRESS HUD at the inside market shows who is pushing and who is winning.
  • NT8 strategy (Pro). The Cortex OEM AI Strategy receives the same read about ten times per second. The direction comes from CORTEX alone; an entry additionally needs enough confidence, confirmation from the order book and the gate of the target-odds head. If CORTEX flips firmly to the other side before the first target, the strategy goes flat.

Signal format (simplified)

{
  "v": "cortex-signal/0.2",
  "seq": 48213,
  "modelAge": { "sessions": 6, "samples": 41870 },
  "regime": { "label": "TREND", "conf": 0.61 },
  "scalp": { "dir": "LONG", "conf": 0.58, "ttlSec": 30, "entryReady": true, "exitCue": "NONE" },
  "swing": { "bias": "BULL", "targetZone": [5412.25, 5418.50], "invalidation": 5403.75 },
  "bracket": { "pLong": 0.54, "pShort": 0.41, "live": true },
  "provenance": { "health": { "balAcc": 0.37, "mcc": 0.06 } }
}

New in 0.5.30: CORTEX DOM and CORTEX LEARNING

Two additions make the CORTEX read easier to follow in real time. CORTEX DOM puts the pressure around the inside market into one compact display, and CORTEX LEARNING shows — step by step — that the model is learning from your own feed.

CORTEX DOMNEW

PRESS HUD: a DOM that tells you who is winning

A normal DOM shows sizes. At the inside market the PRESS HUD joins who is pushing with what price does about it — BUYERS IN CONTROL or SELLERS ABSORBED — and shows the state of liquidity at bid and ask: ABSORB, RELOAD, BLOCK or EXHAUST.

DISCOVER CORTEX DOM →
ES FOCUS
Only the book and the signals
One click hides every control and side panel in all windows. What remains is the order book and the CORTEX signals — built for the moments when you need to read, not configure. Press again to leave.
One click All windows Book + CORTEX
PRE / RTH
Session presets
The overnight book is thin, the regular session is busy — the same display filters cannot fit both. PRE loosens the display filters for the pre-market, RTH tightens them for the regular session from 09:30 to 16:00 ET. The preset is shared by dashboard, heatmap and CORTEX DOM, and a dot marks the current session. Detection thresholds never change — only what is displayed.
Pre-market Regular session Display only
CORTEX LEARNING
Watch it learn
A network graphic in the strategy panel: every pulse is a real training step of one of the CORTEX heads, every wave back through the network is a fresh set of weights. A learning curve counts the market samples, and the status reads LEARNING, WAITING FOR DATA or HEATMAP CLOSED. It shows that CORTEX learns — deliberately not how good it is.
Real training steps Learning curve Pro
AVAILABILITY

CORTEX DOM, ES FOCUS and the session presets are part of the analysis layer and included in Pro and Trial. CORTEX LEARNING sits in the strategy panel, which appears while the Cortex OEM AI Strategy is running — the automated strategy is part of Pro.

None of these displays is a trading signal on its own and none of them promises an edge. CORTEX DOM makes the order flow at the inside readable; CORTEX LEARNING makes the learning visible. What CORTEX learns from, and how fast, depends on your own Level-2 feed.

Honest, not green — self-test and learning curve

A learning system does not always have an edge — and ONE CORTEX does not pretend it does. Two readouts say openly where it stands. Both measure the quality of the model, not the market direction — they are not a buy or sell signal.

Model self-test

Based on the balanced accuracy and the Matthews correlation coefficient (MCC) of the predictions:

StatusMeaning
WARMUPToo few samples for a verdict yet. The model is collecting.
OKBetter than chance, and the MCC is positive.
WEAKBorderline — barely better than chance.
OFFNo usable prediction at the moment.

Learning curve per trading day

The learning curve checks whether CORTEX gets better over the days instead of just counting sessions: for each trading day, the hit rate of the target-odds head is measured against the trivial baseline — using predictions that were fixed before the market answered them. If the 95 % band lies entirely above zero, the verdict is EDGE; entirely below, BELOW; in between, OPEN.

Both readouts stay visible, even when they are uncomfortable. A tool that honestly reports WEAK, OFF or BELOW is worth more than one that always glows green.

What ONE CORTEX is NOT

  • Not a ChatGPT wrapper. No large language model — a dedicated LSTM with numerical inputs and numerical outputs.
  • Not a black-box oracle. Every signal, every output and the Cortex Ledger are traceable.
  • Not a guaranteed edge. ONE CORTEX promises no performance and no profits. When no edge is measurable, the self-test and the learning curve show exactly that.
  • Not an autonomous bot without controls. Auto-trading exists only with the NT8 strategy in Pro and Ultra — with a daily limit, pause and flat-all right in the chart.

Foundations and testability

ONE CORTEX is built from well-studied components, not from a secret recipe. Whether they hold up in the market is decided by data: pre-registered and public, even when the result goes against us.

The components and their sources

  • A sequence core of LSTM layers. It reads the order book as a sequence in time, not as isolated snapshots. Hochreiter & Schmidhuber (1997), Long Short-Term Memory, Neural Computation 9(8).
  • Learning with a replay buffer. Each head trains from a buffer of stored examples so that consecutive, very similar market moments do not skew the learning. Mnih et al. (2015), Human-level control through deep reinforcement learning, Nature 518.
  • Order-book features, not just price. Pressure and imbalance in the book carry more information than price alone. Cont, Stoikov & Talreja (2010), Operations Research 58(3); Lehalle & Laruelle (2018), Market Microstructure in Practice; Sirignano & Cont (2019), Quantitative Finance 19(9).
  • Your model, your feed. CORTEX starts without a pre-trained model and learns on your machine from your own feed. It learns trade outcomes only from the strategy's trades, never from manual, test or copied trades.

How we test

  • Pre-registered. Question, data set, metric and threshold are fixed before anything is computed.
  • Against chance. The baseline is always chance, in the model self-test above as well as in every pre-registration.
  • Public. Results, negative ones included, are in the lab notebook.

CORTEX is an analysis and decision-support tool, not investment advice. Trading futures carries substantial risk of loss, up to the total loss of the capital employed.

Frequently asked questions

How many heads does CORTEX have, and how do they differ?
Each head answers a different, clearly defined question: Scalp (which side comes first within 30 seconds), Drift (the calmer, volatility-scaled underlying direction), Target Odds (target before stop, separately for long and short) and Trade PnL (what an entry can be expected to bring, learned from your own trades). A measurement head without influence runs alongside. All share one backbone and the same features.
Why "one brain"? What was it before?
Before, each surface computed on its own, which led to conflicting readouts. Today there is exactly one model feeding the Dashboard, Heatmap, DOM and strategy identically — the same read everywhere.
Does ONE CORTEX promise profits or a certain hit rate?
No. There is no performance guarantee. The self-test (WARMUP / OK / WEAK / OFF) and the learning curve (EDGE / BELOW / OPEN) honestly show how good the model is right now — including the cases where no edge is measurable.
What data does the model learn from?
From your own Level-2 feed while the heatmap is open, and — for the trade-PnL head — from your own closed trades. There is no pretrained model and no bundle of other people's trades — CORTEX starts from zero.
Is CORTEX included in the Trial?
Yes — the analysis layer. CORTEX, the GPU heatmap, chart analysis and the detectors are the same in the 14-day Trial as in Pro. Two differences: the automated Cortex OEM AI Strategy for NinjaTrader 8 is Pro and Institutional only, and the Trial journal comes without the CORTEX AI tabs (AI Review, ML Data) and without export/import.
Does the PRE/RTH preset change what CORTEX detects?
No. The presets only change display filters — minimum sizes, trails, time spans and how long events stay visible. The detection thresholds are the same in both presets.
Why does CORTEX LEARNING say "WAITING FOR DATA"?
CORTEX learns only while the heatmap is open and market data is flowing. Outside the session, or with the heatmap closed, there is nothing to learn from; the status says so instead of pretending progress.

Related articles

Test ONE CORTEX live

14 days free — the full analysis layer with CORTEX, no credit card required. The automated strategy is part of Pro.

Requires NinjaTrader 8 with a Level-2 market-data subscription (dxFeed, Rithmic, or CQG)

START TRIAL ▶ Auto-trading in detail