I couldn't find an appropriate channel for bugreport soI'm posting it here. Maybe the community can confirm this as a bug and hopefully someone could forward thisthreadto the developers.
The issue I'm facing is with theOrderSendResultstructure returned after anorder_send() request using the Python API. One of the fields returned is the"comment",whichshould contain broker's comment to operation. However, this field is returning the same comment that was passed to the request, and not the broker return, as it should.
To reproduce the bug do the following:
1. Create a request that will generate a comment as a result. Fill the request"comment"with a dummy commentary.
2. Send the request using theorder_send() command from the Python API.
3. On the OrderSendResult object returned, check the "comment" field.
The"comment"field will have thesamecomment passed, when it should have thecommentreturned by the broker,whichcan be checked in the Journal tab of the MT5 Terminal.
Can someone confirm this? Is there any workaround to get the broker's comment?
Trade Request Structure - Data Structures - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi all,
I couldn't find an appropriate channel for bug report so I'm posting it here. Maybe the community can confirm this as a bug and hopefully someone could forward this thread to the developers.
The issue I'm facing is with the OrderSendResult structure returned after an order_send() request using the Python API. One of the fields returned is the "comment", which should contain broker's comment to operation. However, this field is returning the same comment that was passed to the request, and not the broker return, as it should.
To reproduce the bug do the following:
1. Create a request that will generate a comment as a result. Fill the request "comment" with a dummy commentary.
2. Send the request using the order_send() command from the Python API.
3. On the OrderSendResult object returned, check the "comment" field.
The "comment" field will have the same comment passed, when it should have the comment returned by the broker, which can be checked in the Journal tab of the MT5 Terminal.
Can someone confirm this? Is there any workaround to get the broker's comment?