I'm working on an ea that places both a BuyStop and SellStop order. I need a piece of code that will close one of the pending orders if an order in the other direction is filled.
For example: A BuyStop order is placed 10 pips above current price, and a SellStop order 10 pips below current price. The market goes up and the pending BuyStop order is filled. At that point, I want the SellStop order removed.
Thanks in advance for the help



Reply With Quote

