How to know the ticket number converted by the pending order?

 

Hi :

I am trying to write a EA which keeps track of my mannually open orders.

I am wondering if it is possible to know the ticket number which is converted by a pending order for example sell limit, buy stop order etc.

I want to make the pending order mannually, and then input the pending order ticket number as a parameter to the EA.

Once the pending order is executed, I want EA to manage that order.


Thanks

 
asuralm:

Hi :

I am trying to write a EA which keeps track of my mannually open orders.

I am wondering if it is possible to know the ticket number which is converted by a pending order for example sell limit, buy stop order etc.

I want to make the pending order mannually, and then input the pending order ticket number as a parameter to the EA.

Once the pending order is executed, I want EA to manage that order.


Thanks


make another EA that makes it possible to place new trade with ordermagicnumber same as the EA you have already

now you make it yourself only difficult 

 
asuralm:
I want to make the pending order mannually, and then input the pending order ticket number as a parameter to the EA.
Once the pending order is executed, I want EA to manage that order.
Just do an orderSelect loop looking for OrderMagicNumber()==0 and OrderSymbol()==Symbol(). That's the manual order and then you have its OrderTicket() and OrderType().
Reason: