MT 4
MetaTrader 4 MQL Connector The MetaTrader 4 MQL connector links StockSharp to a MetaTrader 4 terminal through the packaged MQL expert and local native/FIX bridge. It converts terminal data, account st...
Install-Package StockSharp.MT4 -Version 5.0.167
MetaTrader 4 MQL Connector
The MetaTrader 4 MQL connector links StockSharp to a MetaTrader 4 terminal through the packaged MQL expert and local native/FIX bridge. It converts terminal data, account state, and commands into the standard StockSharp message model.
Key capabilities
- Symbol discovery and instrument properties from the connected terminal.
- Real-time Level 1 quotes and time-frame candle subscriptions.
- Historical candle requests supported by MetaTrader 4.
- Account, balance, margin, position, order, and execution updates.
- Market, limit, and pending-order submission with cancellation and terminal-supported protective parameters.
- Separate local market-data and transaction sessions between StockSharp and the terminal bridge.
Typical use
Use this connector for live FX/CFD strategies, legacy MetaTrader 4 integrations, terminal automation, charting, and account monitoring.
Available symbols, history, order types, account fields, and trading permissions depend on the MetaTrader 4 terminal, broker, and connected account.