Recognize orders, if they were triggered or not.

 

Hi, my problem is probably very easy to solve, but i am really new to programming so i still cant solve it.

I need my EA to recognize wich of the pending orders he opened already has been triggered and wich not.



I need that to make the EA perform different actions on orders still pending and on orders that are live in the market.


thx for any help
 

Look for change in OrderType():

example, from OP_BUYLIMIT to OP_BUY

 
phy:

Look for change in OrderType():

example, from OP_BUYLIMIT to OP_BUY

yeah i had just figured it out..and felt pretty stupid for asking.

OrderType == 5 is a pending stop short and so on.

thanks aniway

Reason: