In NinjaTraderIn MT4How we handle it
Instruments
Futures, forex or stocks from your NinjaTrader connection
Mostly forex and CFDs from your MT4 broker
If the instrument changes, we agree which one replaces each NinjaTrader instrument and adapt sizes, price distances and sessions.
Trade size
Contracts or units
Lots, rounded to the symbol’s lot step
Sizes are recalculated for the MT4 symbol and checked against your risk rules.
Positions
The strategy’s own position, tracked separately from the account’s
A separate order ticket for every entry, found by magic number
We map each entry and its exits to tickets, and agree how the EA works alongside other EAs, manual trades and orders already open at start — and with FIFO rules, if your broker applies them.
Trading hours and time zone
The trading hours template and the platform time zone
Your broker’s server time and the symbol’s sessions
We compare sessions, bar timestamps and the time zone each version’s logic uses — matching chart clocks alone isn’t enough.
Calculation
Calculation mode per script: on bar close, on each tick or on price change
An EA reacts to ticks of its chart symbol; ticks that arrive while one is being processed are skipped
We reproduce the agreed calculation mode and check intrabar behaviour — for multi-symbol strategies, also how data for other symbols is read.
Bar types
Tick, volume, range, Renko and other bar types
Nine standard time-based timeframes; other bars through offline charts or code
We agree how non-time bars are built — and, for strategies, that signals use them while orders go to the broker’s real symbol.
Backtesting
Strategy Analyzer, with order fill resolution settings
Strategy Tester: one symbol at a time, ticks modelled from 1-minute bars
We agree the tester settings and history, so both backtests are compared on similar assumptions.
What may not carry over one to one
Some things depend on the platform itself: NinjaTrader add-ons and third-party indicators the code relies on need their source or a replacement; .NET libraries need an MQL4 equivalent or a DLL — MT4 is a 32-bit platform, so each is checked one by one; and order-flow data, which MT4 doesn’t provide. We point these out before work starts and agree the closest MT4 equivalent with you.