MT 5_Sources

by StockSharp

You receive an archive containing the C# source code of the S#.MT5 bridge and the MQL5 Expert Advisor source that connect applications based on API to a running MetaTrader 5 terminal. The source lets ...

20 Downloads
☆☆☆☆☆ Rating
0 Reviews
NuGet 5.0.35 Install-Package StockSharp.MT5_Sources -Version 5.0.35
MT 5_Sources

You receive an archive containing the C# source code of the S#.MT5 bridge and the MQL5 Expert Advisor source that connect applications based on API to a running MetaTrader 5 terminal. The source lets you inspect how terminal data and trading requests are converted to StockSharp messages and adapt the integration to your requirements. The connector is also available as a separate product: MT 5.

The project contains an x64 DLL with functions exported through DllExport, the MQL5 Expert Advisor, and a local FIX server. The Expert Advisor passes native MetaTrader structures to C#, polls the command queue, and invokes terminal functions.

  • Instruments and accounts: the code obtains symbol and contract properties, account and margin values, positions, orders, and deals.
  • Market data: Level1, tick trades, market depth, and time-frame candles are supported.
  • History: ticks and candles are requested for a specified date range through CopyTicksRange and CopyRates; actual depth is controlled by the terminal.
  • Trading commands: order registration, replacement, and cancellation are implemented together with fill, expiration, and protective-condition fields.
  • Current conditional-order mapping: an outgoing Conditional order is currently mapped to an MQL5 stop-limit order. This code path does not separately select a plain stop order.
  • Integration settings: the FIX server address, credentials, board code, primary symbol, polling interval, and order-history depth are configurable.

The native bridge targets x64 and is intended for MetaTrader 5 on Windows. Data availability, account mode, supported order types, and trading permissions depend on the terminal and broker.

Pricing Plans

User Reviews

Login to write a review

No reviews yet