Ctrade ResultRetcode return TRADE_RETCODE_PLACED, but ResultOrder is 0, why?
It means that the trade server has checked and placed a trade order and this order went further - to the exchange.
Reference: Basic Principles

- www.metatrader5.com
It means that the trade server has checked and placed a trade order and this order went further - to the exchange.
Reference: Basic Principles
Thanks for you answer. Buy I have an other issue, in that case the ResultOrder return zero, how can I get relation with MqlTradeTransaction
Thanks for you answer. Buy I have an other issue, in that case the ResultOrder return zero, how can I get relation with MqlTradeTransaction
How I do it: I issue a trade order (' OpenBuy ') and do minimal checks. If all is well, I am waiting for confirmation in OnTRadeTransaction.
This pattern can be seen in my recent advisors.
How I do it: I issue a trade order (' OpenBuy ') and do minimal checks. If all is well, I am waiting for confirmation in OnTRadeTransaction.
This pattern can be seen in my recent advisors.
However ,I want from OnTRadeTransaction find the corresponding relationship of the previous OpenBuy . Originally, I used tick ,buy in this case tick is zeor

- www.mql5.com
However ,I want from OnTRadeTransaction find the corresponding relationship of the previous OpenBuy . Originally, I used tick ,buy in this case tick is zeor
I showed you the solution. But your desires are not clear to me - you do not know what you want (or you do not know how to explain your thoughts). Please describe in detail what you are doing and what you want to receive.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use