Platform differencesMQL5 to EasyLanguage: What Changes and How We Handle It
MetaTrader 5 and TradeStation usually trade different instruments, and they run code in different ways. These are the differences that decide whether a converted script behaves like the original — and what we do about each of them.
In MetaTrader 5In TradeStationHow we handle it
Instruments
Forex, CFDs, stocks or futures from your MT5 broker
US stocks, ETFs and futures through TradeStation
If the instrument changes, we agree which one replaces each MT5 symbol and adapt sizes, price distances and sessions.
Trade size
Lots, rounded to the symbol’s volume step
Shares or contracts — fixed, or from a dollar amount per trade
Sizes are recalculated for the TradeStation symbol and checked against your risk rules.
Positions
Separate positions on a hedging account; one shared position per symbol on a netting account
One strategy position — long, short or flat — built from named entries
Netting logic is rebuilt around TradeStation’s strategy position, with account synchronisation agreed separately; hedged positions are redesigned, and we agree how the strategy works alongside manual trades and positions already open at start.
Order timing
Pending orders stay until filled, cancelled or expired
Orders for the next bar or this bar on close; stop and limit orders last one bar unless sent again
We rebuild when each order becomes active, how long it stays and when it is cancelled, and check trade timing against the agreed criteria.
Calculation
An EA reacts to tick events for its chart symbol; ticks that arrive while one is being processed aren’t queued
Strategies calculate on bar close unless intrabar order generation is on
We keep the agreed calculation timing and check historical and real-time behaviour separately.
Time and sessions
Your broker’s server time and the symbol’s sessions
Bar times follow the chart’s setting — local or exchange time
We compare sessions, bar timestamps and the time zone each version’s logic uses — matching chart clocks alone isn’t enough.
Historical fills
The Strategy Tester on real ticks, 1-minute bars or open prices
Look-Inside-Bar Back-testing for intrabar fills
We choose how intrabar history is calculated and filled for each strategy, so both backtests are compared on similar assumptions.
What may not carry over one to one
Some things depend on the platform itself: forex and CFD symbols the EA trades, which TradeStation may not offer; MT5’s economic calendar functions, which need an external data source; order-book logic, which is assessed separately; and DLLs and web requests, which are checked one by one. We point these out before work starts and agree the closest TradeStation equivalent with you.