problem with magic number
- How to get the maximum number of open positions
- Delete a pending order when other order with the same magic number touch SL/TP point
- Magic number in pending orders.
Once a pending order is triggered it becomes a position, not an order in MQL5.
Check the positions, not the orders.
When you quote somebody, do not post your reply inside the quote.
I have edited your post and moved the reply outside of the quote.
Show the relevant code if you want help.
Please don't edit your OP without making a note.
I see that you have now changed your OP because you did not mention positions before. You have also deleted a post that I referred to.
It makes my replies look a bit odd.