Platform differencesMQL5 to Quantower C#: What Changes and How We Handle It
MetaTrader 5 and Quantower handle instruments, positions and 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 MT5In QuantowerHow we handle it
Instruments
Forex, CFDs and other symbols from your MT5 broker
Symbols from your Quantower connection — futures, crypto, stocks or forex
If the instrument changes, we agree which one replaces each MT5 symbol and adapt sizes, price distances and sessions.
Trade size
Lots, sized by the MT5 symbol’s contract
Quantity in lots, with the lot size and step set by each symbol
Sizes are recalculated with the target symbol’s lot size, volume limits and step, and checked against your risk rules.
Positions
Separate positions on a hedging account; one shared position per symbol on a netting account
Position handling depends on your connection — one net position or separate positions
We map each entry and its exits, and agree how the strategy works alongside other strategies, manual trades and positions already open at start.
Reading history
Arrays and buffers that can be indexed in either direction
History that can be read from the newest or the oldest bar
We check the reading direction for every series, so values line up bar by bar.
Calculation
An EA reacts to tick events for its chart symbol; bar-close logic checks for a new bar
A strategy reacts to the quote, trade and bar events it subscribes to — new quotes and new trades are separate events
We keep the agreed conditions and calculation timing, and check historical and real-time behaviour separately.
Trading hours and time zone
Your MT5 broker’s server time
The session settings of your connection and the bar timestamps it provides
We compare sessions, bar timestamps and the time zone each version’s logic uses — matching chart clocks alone isn’t enough.
Backtesting
The MT5 Strategy Tester and its tick modelling
Quantower’s own backtesting and optimisation
We agree how both backtests are run, so they are compared on similar assumptions.
What may not carry over one to one
Some things depend on the platform itself: native DLLs the EA calls are checked one by one — .NET libraries can often be used directly; symbols your Quantower connection doesn’t provide; and real traded volume, which depends on your feed. We point these out before work starts and agree the closest Quantower equivalent with you.