Closed atillayurtseven closed 5 years ago
Hi @atillayurtseven ,
1) You need to introduce a delay between each order send, otherwise your code will send orders faster than MetaTrader can process them.
2) To access returned values from MetaTrader, you can either access self._thread_data_output
directly or call self._get_response_()
3) To access market data, you need to use self._DWX_MTX_SEND_MARKETDATA_REQUEST_()
Please also watch the following video in its entirety for more information on troubleshooting: https://www.youtube.com/watch?v=7aAsFZ_r5zU&t=1236s
Hi,
I have just installed required server and client.
the strange thing is, only second half of my orders are executed. If i set "trades" variable to 20, MT4 will open only 10 orders. If I set 2, only one order will be opened. This may help you to find the problem and possible solution.
I have not changed any default parameters. I have updated EA properties and changed Maximum orders to 10 and maximum lot size to 10.
_verbose is set to True. I can send orders anyway, the problem is totally different here.
NOTE: I have reinstalled VC++ reps. and after rebooting my PC, i am only getting this error message. Can not send any commands.
I have two more questions
tt = _zmq._DWX_MTX_GET_ALL_OPEN_TRADES_()