Connection of MATLAB and MetaTrader 4 or 5 via ZeroMQ

MQL5 Integração C++

Termos de Referência

After some days of research, I've come to the conclusion that the probably best and fastest communication protocol between MT4/5 and MATLAB, is by ZeroMQ. After testing its development on Python by Darwinex (https://github.com/darwinex/DarwinexLabs/tree/master/tools/dwx_zeromq_connector), it seems to be even more reliable and functional that MQL5's official py wrapper itself. This is because of its asynchronous PUB/SUB messaging pipeline: the ability for MQL5 (server) to send and force market tick appending on a DataFrame (for example) without Python (client) explicitly requesting for it. On the other hand, it also has a Push/Pull channel by which Python (client) can send commands (buy/stop/limit, sell/stop/limit, request market/trade/account data, modify/close order, etc) to MQL5 (server) and expect the latter to respond if necessary.

I've got my strategies and mathematical tools installed in MATLAB. My experience in MATLAB is solid but doesn't go beyond some toolboxes, GUIs and application-specific functions. I do not have knowledge about C++ compiling, Java class usage and sockets. So...

I need a function/class library with pretty much the same capabilities and syntax of the aforementioned Pythonic one created by Darwinex. The more similar, the better. It should be preferably be able to synchronize with the MQL expert advisor created by Darwinex too. It should have a "Connector" class which links to the MetaTrader expert advisor. The "Connector" should have the following methods:

  • "Subscribe to data": Ask for MQL EA to start sending (PUBlishing) tick data from a certain quote, so that it gets automatically logged onto a timetable or array. "Unsuscribe to data" too.
  • "Get market data": Request MQL EA for a certain quote's market history data between a start date and an end date, in a defined timeframe.
  • "Trade": Send trading orders, buy/sell, market/stop/limit, being able to specify lot size, magic number, slippage, stop loss, take profit (and stop/limit price when applicable).
  • "Modify": Modify order's stop loss, take profit (and stop/limit price when applicable).
  • "Close": Close positions by ticket number, either partially or totally. Also cancel pending orders. 
  • "Get account data": Request summary of account details... At least: balance, equity, margin, margin level, leverage.
  • "Get open positions" and "Get pending orders".
  • "Disconnect": Total shutdown of communication lines when necessary.
  • Data flow speed is essential. 

The most that can be done from Matlab without depending from stuff in other languages, the best. I know this work has been done in the past with imports from Java classes (https://la.mathworks.com/matlabcentral/answers/269061-how-do-i-integrate-zeromq-library-with-matlab-i-want-my-matlab-program-to-be-a-subscriber-of-zeromq) or from MEX compilers (https://github.com/fagg/matlab-zmqhttps://github.com/smcgill3/zeromq-matlab) but I just can't make them work, and I don't think that they could have the simplicity of syntax that I need.

Pedidos semelhantes
ICT, SMC, PAMETNI NOVAC KONCEPTI, PAMETNI NOVAC, koncept pametnog novca, podrška i otpor, analiza trenda, radnja cijena, tržišna struktura, blokovi naloga, BOS/CHoCH, blokovi razbijača , pomak momentuma, zona ponude i potražnje/blokovi naloga , jaka neravnoteža, HH/LL/HL/LH, jaz fer vrijednosti, FVG, Zone premije i popusta , Fibonacci retracement, OTE, Likvidnost na strani kupnje, Likvidnost na strani prodaje
The future of the traders be a good traders and patient and humble person faithful loyalty to your job and last be a professional traders and helping a dream of us how to trade and etc,,,,,,,,,,,,,,,,,🤑
Firstly Indicator (1) or the first part \\ Draw a red line at the top of the zero candle _ M1 \\ Draw a blue line at the bottom of the zero _ M1 candle \\ Draw a red line at the top of the zero _ M2 candle \\ Draw a blue line at the bottom of the zero _ M2 candle \\ Draw a red line at the top of the zero candle _ M3 \\ Draw a blue line at the bottom of the zero _ M3 candle \\ Draw a red line at the top of the zero
HFT Scalper EA needed 50 - 500 USD
Overview Develop a high-frequency trading scalper EA for Forex markets Goal: exploit small price movements for rapid profits Key Requirements Trading Strategy Scalping strategy: buy/sell quickly to capture small price movements Use technical indicators (e.g., Moving Averages, RSI) to identify trading opportunities Risk Management Set stop-loss and take-profit levels Implement risk-reward ratio (e.g., 1:2) Order
Trend killer 30 - 200 USD
I Will thanks for allowing me to create and that's good for me and u thanks u very muchand I Will make a good job to work and no to scheme people
Hello, developer is requested to work only remotely by anydesk who has rich experience in debugging and generic variables I need to convert my code to mq5 For more information in private, thank you
I am looking to have a specific strategy of mine based off a mean reversion indicator in trading view, developed into a EA on MQL5. An understanding of pine script and MQL5 is mandatory for this project. It is a martingale strategy. I am only using one indicator off of trading view, no more
Please convert the TradingView strategy Pine Script into an MT5 Expert Advisor (EA) auto trader. (Ill provide the pine script) The EA should be based on identifying order blocks and imbalances. Trades should trigger whenever there's a wick candle break in an imbalance area or within an order block area
Please convert the TradingView strategy Pine Script into an MT5 Expert Advisor (EA) auto trader. (I'll provide pine script code) The EA should be based on identifying order blocks and imbalances. Trades should trigger whenever there's a wick candle break in an imbalance area or within an order block area
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it

Informações sobre o projeto

Orçamento
50 - 100 USD
Desenvolvedor
45 - 90 USD
Prazo
para 7 dias