Is this Return Code: 10008 (TRADE_RETCODE_PLACED) Error or not? I understand 10008 shows that my order has been placed. I am not 100% sure if it is error or not? Please confirm with me. Thank you.
I found this on the forum, maybe it's enough to clarify your doubts
"10008 - TRADE_RETCODE_PLACED" vs "10009 - TRADE_RETCODE_DONE"
phi.nuts, 2013.01.16 19:30
10008 is for OrderSendAsync.
This is language problem. For example, a boss tell his employee to do something and his employee reply "considered done", when the employee finish with what his boss was asked him to do, he tell his boss, "It's done, Sir"
In this case, "10009 - TRADE_RETCODE_DONE" means successful, that your request is completely done . There's also 10010 - TRADE_RECODE_DONE_PARTIAL, for example only half of the lot is opened, usually for IOC (Immediate Or Cancel) type of order (IOC- Investopedia)
I guess 10008 is not an error. Correct me if I am wrong. Thanks.
Is this Return Code: 10008 (TRADE_RETCODE_PLACED) Error or not? I understand 10008 shows that my order has been placed. I am not 100% sure if it is error or not? Please confirm with me. Thank you.
You only have to read the documentation :
Returns true if the request is sent to a trade server. In case the request is not sent, it returns false. In case the request is sent, in the result variable the response code contains TRADE_RETCODE_PLACED value (code 10008) "order placed". Successful execution means only the fact of sending, but does not give any guarantee that the request has reached the trade server and has been accepted for processing. When processing the received request, a trade server sends a reply to a client terminal notifying of change in the current state of positions, orders and deals, which leads to the generation of the Trade event.
Your guess is correct, 10008 is not an error it's a return code for a correctly placed "command".
Unfortunately, if we follow the documentation, that doesn't mean a correctly placed order, but a correctly sent order. The name of the code seems poorly chosen. It would have been better to use TRADE_RETCODE_SENDED.
Unfortunately, if we follow the documentation, that doesn't mean a correctly placed order, but a correctly sent order. The name of the code seems poorly chosen. It would have been better to use TRADE_RETCODE_SENDED.
Unfortunately, if we follow the documentation, that doesn't mean a correctly placed order, but a correctly sent order. The name of the code seems poorly chosen. It would have been better to use TRADE_RETCODE_SENDED.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is this Return Code: 10008 (TRADE_RETCODE_PLACED) Error or not? I understand 10008 shows that my order has been placed. I am not 100% sure if it is error or not? Please confirm with me. Thank you.