Removing a pending order (metatrader for PYTHON)
Trex pro:
https://www.mql5.com/en/docs/constants/structures/mqltraderequestI'm trying to remove a previously placed pending order using the below python script but for an unknown reason it returns retcode 10013 which translates to "invalid request"...
any suggestions would be very appreciated, thank you.You are setting a value for position. As you are trying to close an order.
La_patates:
https://www.mql5.com/en/docs/constants/structures/mqltraderequest
thank you very much my friend, your comment helped now the problem is solved.
https://www.mql5.com/en/docs/constants/structures/mqltraderequest
You are setting a value for position. As you are trying to close an order.
Trex pro:
thank you very much my friend, your comment helped now the problem is solved.
How did you solve this. l ran into the same issue as well
replace
"position": position_id on request 1 with
"order": your_ticket_id
I'm trying to remove a previously placed pending order using the below python script but for an unknown reason it returns retcode 10013 which translates to "invalid request"...
any suggestions would be very appreciated, thank you.