Vollautomatischer Orderflow-Trading-Bot für Micro-Futures (MNQ, MES, M2K, MGC, MCL) — inklusive Copy-Bot, mit dem Partner die Trades automatisch auf ihrem eigenen Konto mitnehmen.
Worum geht's?
NEO Orderflow V2 ist ein Handelsroboter für die NinjaTrader-8-Plattform. Er liest Live-Marktdaten,
erkennt Orderflow-Muster (Delta / CVD, Footprint, Value-Area-Profile aus echten Tick-Daten) und
platziert daraufhin automatisch Trades — mit Stop-Loss, Teilverkäufen (Partials) und Break-Even-Logik.
Es muss niemand davorsitzen.
Das System ist bewusst in zwei Hälften aufgeteilt, damit es robust bleibt:
🧠 Die Engine (das «Gehirn»)
Läuft auf einem Server (Node.js). Bekommt die Marktdaten von Databento
(professioneller Datenfeed), berechnet daraus die Orderflow-Signale und entscheidet:
kaufen, verkaufen, Stop nachziehen, teilweise schliessen, ganz raus.
🦾 NinjaTrader (die «Hand»)
Die Strategie NEOOrderflowV2 in NinjaTrader macht keine eigene Analyse.
Sie führt nur die Befehle der Engine aus, überwacht den Stop-Loss in Echtzeit und meldet
Fills, Position und Kontostand zurück an die Engine.
So fliesst ein Trade durch das System
DatabentoLive Tick-Daten
→
NEO EngineOrderflow-Analyse + Entscheidung
→
NinjaTrader V2führt aus Stop bewacht
→
Broker / Kontoechte Order
↺
RückmeldungFill · Position · P&L an Engine
Welche Befehle die Engine schickt
Befehl
Bedeutung
BUY:lots:SLpts
Long eröffnen, mit Stop-Loss in Punkten
SELL:lots:SLpts
Short eröffnen, mit Stop-Loss in Punkten
PARTIAL:n
n Kontrakte aus der laufenden Position nehmen (Teilgewinn)
SETSTOP:price
Stop auf einen festen Kurs nachziehen (nur in Trade-Richtung «verbessern»)
SETBE
Stop auf den Einstiegskurs setzen (Break-Even — der Trade kann nicht mehr ins Minus)
CLOSE
Position komplett schliessen
Bewusst weggelassen: kein Pyramiding (Nachkaufen) und kein Parameter-Lernen —
genau wie im Backtest-Harness, damit Live-Verhalten und Backtest deckungsgleich sind.
Sicherheits-Mechanik
Harter Stop intra-bar: NinjaTrader prüft bei jedem Tick, ob der Kurs den Stop gerissen hat — es wird nicht auf den Bar-Schluss gewartet.
Sync-Wächter (fail-closed): Passt die Position der Strategie nicht mehr zur tatsächlichen Konto-Position (z. B. nach manuellem Eingriff), wird das Trading gesperrt — nur noch CLOSE ist erlaubt.
Lot-Caps pro Symbol: z. B. max. 4× MNQ/MES/M2K, 7× MGC, 3× MCL — auch wenn ein Befehl mehr verlangt, wird gekappt.
«Ein Trade zur Zeit»: Ein neues BUY/SELL wird ignoriert, solange schon eine Position offen ist.
Eigene Auto-Port-Registry: läuft sauber parallel zur produktiven NEO-Engine, ohne Port-Konflikte.
Der Copy-Bot — NEOFollower
Damit Partner dieselben Trades automatisch auf ihrem eigenen Konto mitnehmen können,
ohne Zugriff auf die Engine oder den Server zu brauchen.
NEO Engine(Original)
→
neo-relayCloudflare Worker Befehls-Log
→
NEOFollowerNinjaTrader beim Partner
→
Konto des Partners
Wie es funktioniert
Die Engine schreibt jeden Befehl (BUY/SELL/PARTIAL/SETSTOP/SETBE/CLOSE) in ein kleines Online-Log (den neo-relay, einen Cloudflare Worker).
Der NEOFollower in NinjaTrader fragt dieses Log ~jede Sekunde per HTTPS ab (mit einem persönlichen Sub-Token) und führt neue Befehle auf dem Konto aus, auf dem er läuft.
Funktioniert unabhängig vom Original-NinjaTrader — Hauptsache die Engine läuft. Beim Partner müssen keine NEO-Original-Strategien laufen.
Eigene Lotgrösse: Das Original gibt seine Lotzahl mit; der Follower nimmt das Minimum aus (Original-Lots, eigener «max. Lots»-Parameter, Symbol-Cap). So kann jeder kleiner traden als das Original.
Sauberer Start: Beim Einschalten merkt sich der Follower nur den aktuellen Stand — alte Trades werden nicht nachgespielt. Er steigt erst beim nächsten frischen Signal ein.
Lücken-Schutz: Verpasst der Follower mal Befehle (PC aus, Internet weg), überspringt er die verpassten Commands sauber, statt veraltete Trades zu öffnen.
Heartbeat: Alle ~12 s meldet der Follower Symbol, Position, Tages-P&L und Kontoname zurück ans Relay — so ist sichtbar, wer mitläuft.
Gleiche Sicherheits-Mechanik wie das Original: harter Stop bei jedem Tick, Sync-Wächter, Symbol-Whitelist (nur MNQ, MES, M2K, MGC, MCL).
Einrichtung — in 4 Schritten
NEOFollower.cs nach Documents\NinjaTrader 8\bin\Custom\Strategies kopieren, F5 (kompilieren).
Strategie auf einen Chart eines erlaubten Symbols legen (MNQ, MES, M2K, MGC, MCL).
In den Strategie-Einstellungen eintragen: Relay-URL + Sub-Token (beides vom Strategie-Betreiber), Konto wählen, eigene max. Lots setzen, Enable.
Pro Symbol eine eigene Strategie-Instanz — genau wie beim Original.
Wichtig: Der Follower handelt mit echtem Geld auf dem Konto, auf dem er läuft. Erst auf einem Sim-Konto testen. Der Sub-Token ist persönlich und sollte nicht weitergegeben werden. Trading birgt Verlustrisiken — vergangene Performance ist keine Garantie für die Zukunft.
Erlaubte Instrumente & Lot-Limits
Symbol
Instrument
Max. Lots (Original)
Max. Lots (Follower)
MNQ
Micro E-mini Nasdaq-100
4
4
MES
Micro E-mini S&P 500
4
4
M2K
Micro E-mini Russell 2000
4
4
MGC
Micro Gold
7
7
MCL
Micro Crude Oil
3
3
Beim Follower zusätzlich durch den selbst gesetzten «Eigene max. Lots»-Parameter begrenzt — es gilt immer der kleinste Wert.
Factsheet · Copy-Trading
NEO Orderflow V2
A fully automated orderflow trading bot for micro futures (MNQ, MES, M2K, MGC, MCL) — including a copy bot that lets partners mirror the trades automatically on their own account.
What is it?
NEO Orderflow V2 is a trading robot for the NinjaTrader 8 platform. It reads live market data,
detects orderflow patterns (delta / CVD, footprint, value-area profiles from real tick data) and
places trades automatically — with stop-loss, partial exits and break-even logic. Nobody has to sit in front of it.
The system is deliberately split into two halves so it stays robust:
🧠 The engine (the "brain")
Runs on a server (Node.js). Receives market data from Databento
(a professional data feed), computes the orderflow signals and decides:
buy, sell, trail the stop, take partials, or fully exit.
🦾 NinjaTrader (the "hand")
The NEOOrderflowV2 strategy in NinjaTrader does no analysis of its own.
It only executes the engine's commands, enforces the stop-loss in real time and reports
fills, position and account balance back to the engine.
How a trade flows through the system
Databentolive tick data
→
NEO Engineorderflow analysis + decision
→
NinjaTrader V2executes guards the stop
→
Broker / accountreal order
↺
Feedbackfill · position · P&L to engine
The commands the engine sends
Command
Meaning
BUY:lots:SLpts
open long, with stop-loss in points
SELL:lots:SLpts
open short, with stop-loss in points
PARTIAL:n
take n contracts off the running position (partial profit)
SETSTOP:price
trail the stop to a fixed price (only ever "improved" in trade direction)
SETBE
move the stop to the entry price (break-even — the trade can no longer go negative)
CLOSE
close the position entirely
Deliberately omitted: no pyramiding (adding to positions) and no parameter learning —
exactly like the backtest harness, so live behaviour matches the backtest.
Safety mechanics
Hard intra-bar stop: NinjaTrader checks on every tick whether price has hit the stop — it does not wait for the bar to close.
Sync guard (fail-closed): if the strategy's position no longer matches the actual account position (e.g. after a manual intervention), trading is locked — only CLOSE is allowed.
Per-symbol lot caps: e.g. max. 4× MNQ/MES/M2K, 7× MGC, 3× MCL — even if a command asks for more, it is capped.
"One trade at a time": a new BUY/SELL is ignored while a position is already open.
Own auto-port registry: runs cleanly alongside the production NEO engine without port conflicts.
The copy bot — NEOFollower
So partners can mirror the same trades automatically on their own account,
without needing any access to the engine or the server.
NEO Engine(original)
→
neo-relayCloudflare Worker command log
→
NEOFollowerNinjaTrader at the partner
→
Partner's account
How it works
The engine writes every command (BUY/SELL/PARTIAL/SETSTOP/SETBE/CLOSE) into a small online log (the neo-relay, a Cloudflare Worker).
The NEOFollower in NinjaTrader polls that log roughly once a second over HTTPS (with a personal sub-token) and executes new commands on the account it runs on.
Works independently of the original NinjaTrader — all that matters is that the engine is running. No NEO original strategies need to run at the partner's end.
Own lot size: the original ships its lot count along; the follower takes the minimum of (original lots, your own "max lots" parameter, symbol cap). So everyone can trade smaller than the original.
Clean start: on startup the follower just remembers the current position in the log — old trades are not replayed. It only enters on the next fresh signal.
Gap protection: if the follower misses commands (PC off, internet down), it cleanly skips the missed commands instead of opening stale trades.
Heartbeat: every ~12 s the follower reports symbol, position, daily P&L and account name back to the relay — so it's visible who is mirroring.
Same safety mechanics as the original: hard stop on every tick, sync guard, symbol whitelist (only MNQ, MES, M2K, MGC, MCL).
Setup — in 4 steps
Copy NEOFollower.cs into Documents\NinjaTrader 8\bin\Custom\Strategies, press F5 (compile).
Put the strategy on a chart of an allowed symbol (MNQ, MES, M2K, MGC, MCL).
In the strategy settings enter: Relay URL + sub-token (both from the strategy operator), pick your account, set your own max lots, Enable.
One strategy instance per symbol — exactly like the original.
Important: the follower trades real money on the account it runs on. Test on a sim account first. The sub-token is personal and should not be shared. Trading involves the risk of loss — past performance is no guarantee of future results.
Allowed instruments & lot limits
Symbol
Instrument
Max lots (original)
Max lots (follower)
MNQ
Micro E-mini Nasdaq-100
4
4
MES
Micro E-mini S&P 500
4
4
M2K
Micro E-mini Russell 2000
4
4
MGC
Micro Gold
7
7
MCL
Micro Crude Oil
3
3
At the follower additionally bounded by the "own max lots" parameter you set yourself — the smallest value always wins.