Connection of MATLAB and MetaTrader 4 or 5 via ZeroMQ

MQL5 积分 C++

指定

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.

相似订单
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA. THREE TYPES OF ENTRIES 1: AGGRESSIVE 2: DIVERGENCE 3
Indicator in use: Bollinger Bands Mechanism (See diagrams provided for help) Sells: 1. Trigger candle: When candle low is above the top Bollinger band - accurate to the lowest point scale (e.g. On EURUSD if candle low is 1.07915 and the value of top bollinger is 1.07914 - this is a sell signal; or if on Futures if the increment is .25 or .10 then this is used) 2. Enter sell ONLY on the next candle if price breaks
I need a simple panel to execute both buy and sell operations with very basic things like stopp loss take profit that functions for both market orders such as buy stop sell stop buy limit sell limit I don't care about colors or design I just want how you can do it what interests me most are the functions
I want to create an EA that can take bids according to information of a logic I have developed to give indication of a BUY or SELL opportunity. The EA will then be able to activate the BUY at the lowest possible position once the indicator clears it for a BUY and take bid upwards or identify the highest point and clears it for a SELL and take bids downwards. As you can see from example of JULY 2024 data to see how
Hello, I‘m interested in an indicator to predict the next candles probability (bullish or bearish). But honestly I have no idea how to do this. Would be interested in your opinion how we can create such an indicator. Please let me know if you‘ve done similar work
Hey greetings. Am in need of a developer that has already made profitable MT4 or MT5 EA that I can buy with the backtesting and proven result. How is the draw down ? What is the winning rate ? Kindly reply and let proceed
I need a TradingView script (not mine) converted to an Mt5 EA. There is some specifications for the robots on when to be able to take a trade. Attached bellow is the file of the script I want translated and converted to MT5 then EA
GOODAY TO YOU I AM NEED OF A FAST, TALENTED AND HIGH QUALITY CODER TO THIS JOB FOR ME. THE EA TRADE MANAGER WILL HAVE THE FOLLOWING: STOPLOSS & TAKEPROFIT IN PIPS LOT SIZE IN PIPS NUMBER OF TRADES (1-30 TRADES MAXIMUM) PLEASE LOOK AT THE PICTURE ABOVE FOR A GUIDE
evalq({ #نوع دالة التنشيط. الحقيقة <- c( "sig" , #: sigmoid "sin" , #: sine "radbas" , #: radial basis "hardlim" , #: hard-limit "hardlims" , #: symmetric hard-limit "satlins" , #: satlins "tansig" , #: tan -sigmoid "tribas" , #: triangular basis "poslin" , #: positive linear "purelin" ) #: linear السندات
Hello, I want to create an EA with the belowspecification. EA will check conditions based on following input parameters: ● High Price ● Low Price ● Move Value (in Price) ● Gap (in price) After start, EA will mark High and Low prices based on input parameters. EA will start trading when the current price will hit any of the price POSITION at High , Low, Control Buy or Control Sell . EA will open

项目信息

预算
50 - 100 USD
开发人员
45 - 90 USD
截止日期
 7 天