How do you find out the ticket quantity of an open order in mql4?
I know that there are magical numbers, but are these used?
I guess im wondering, how do you shut an order if the magic number is 123?
How do you find out the ticket quantity of an open order in mql4?
I know that there are magical numbers, but are these used?
I guess im wondering, how do you shut an order if the magic number is 123?
Create a loop with the orderselect function that chooses based on position. As you select each one you can check to find out whether the magic number matches with the one you're looking for.