Hello Coders,
I am working on an EA that places two (2) pending orders under certain market conditions. One Buy Stop above current price and one Sell Stop below current price. With that said, I am trying to write some code that DELETES the opposing order, once one is triggered. I know it's possible - probably something along the lines of OrderSelect function. I am just new to the logic of coding.
I sincerely appreciate any time that anyone will take to assist with this.
Regards,
-Casey
I am working on an EA that places two (2) pending orders under certain market conditions. One Buy Stop above current price and one Sell Stop below current price. With that said, I am trying to write some code that DELETES the opposing order, once one is triggered. I know it's possible - probably something along the lines of OrderSelect function. I am just new to the logic of coding.
I sincerely appreciate any time that anyone will take to assist with this.
Regards,
-Casey