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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need help with setting up a waiting instruction. When system opening OP_BUYSTOP => OP_BUY, i need delete pending order OP_SELLSTOP. How?