Closed ackem closed 3 years ago
Hi Ackem,
What is _mt
?
This should work...
MtApi5Client _mt = new MtApi5Client(); bool boolResult = _mt.OrderSendAsync(request, out result);
This should work...
MtApi5Client _mt = new MtApi5Client(); bool boolResult = _mt.OrderSendAsync(request, out result);
Yes, I do so. Doesn't work, Bro.
did you add references to that project? and mt5api?
But the same code with OrderSend() works ok. !!!
yes, but you should be awaiting an async.. I don't have MT5 to test, but in the MT4 API, you'd do it like this:
await Execute(() => _mtapi.GetOrder(blah, blah));
@ackem In my opinion you haven't update MtApi5.ex5 in your Terminal's data folder for Expert Advisors (../MQL5/Experts). Please check it.
@vdemydiuk Works! You're magician!) Thank you, Bro)
Hi Vyacheslav.
Please help me.
In this simple code:
Method OrderSendAsync() throws exception:
But the same code with OrderSend() works ok.