How to get the latest OrderOpenPrice() of certain magic number that is currently open?

For example,

I have 3 open orders with magic number 1111, but I want to select the order that is the latest. I know that i can select the latest order, but I have other strategies that marked with other magic number.

Thank you in advance.

So you also select the youngest order by filtering order open time.
Marco vd Heijden:
So you also select the youngest order by filtering order open time.
is it possible to filter order open time and magic number?
Of course.
Marco vd Heijden:
Of course.

could you give a example of code? I tried to find it but it doesn't work.

You didn't specify any language.
petchpanu:

could you give a example of code? I tried to find it but it doesn't work.

Sorry, its metatrader 4