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?