Help EA - When opening BUYSTOP delete pending SELLSTOP and conversely.
What have you tried ?
Make a loop to walk through orderstotal() if you found a new order with magicnumber that belongs to your buy/sell stop orders. Then its a new trade. then make another loop and deletes all opposite pending trades
I need help with setting up a waiting instruction. When system opening OP_BUYSTOP => OP_BUY, i need delete pending order OP_SELLSTOP. How?