MQL4. Help Making One Pending Order Cancel When The Other Is Triggered
MQL4. Help Making One Pending Order Cancel When The Other Is Triggered
Loading saved threads...
Jairus Knight · External communityPost link
External question — Stack Overflow Stack Exchange
Author: Jairus Knight
Original post: https://stackoverflow.com/questions/62740332
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
I have tried to make 2 orders that vary in direction. When one triggers make the other cancel but I am having trouble making the other cancel. I have been searching the web for hours and have no idea how to do it. I will link the Close order multifunction I have tried to use before as it seems promsing but dont no how to implement it. If you guys could point me in the right direction that would be great.
Thanks
My EA
//Close pending orders
case OP_BUYLIMIT : result = OrderDelete( OrderTicket() );
case OP_BUYSTOP : result = OrderDelete( OrderTicket() );
case OP_SELLLIMIT : result = OrderDelete( OrderTicket() );
case OP_SELLSTOP : result = OrderDelete( OrderTicket() );
The EA that I need to implement
Quote
Report
Post Reply
Quoted from Forex.com.bd-Editorial External question — Stack Overflow Stack Exchange Author: Jairus Knight Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/questions/62740332 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I have tried to make 2 orders that vary in direction. When one triggers make the other cancel but I am having trouble making the other cancel. I have been searching the web for hours and have no idea how to do it. I will link the Close order multifunction I have tried to use before as it seems promsing but dont no how to implement it. If you guys could point me in the right direction that would be great. Thanks My EA //Close pending orders case OP_BUYLIMIT : result = OrderDelete( OrderTicket() ); case OP_BUYSTOP : result = OrderDelete( OrderTicket() ); case OP_SELLLIMIT : result = OrderDelete( OrderTicket() ); case OP_SELLSTOP : result = OrderDelete( OrderTicket() ); The EA that I need to implement
Checking account access…