How to Detect Changes to order

 

Hi Im working on My EA to something like Copier,Not exact the same

any one had any idea how to detect changes to order?Like opening new order,Modify Orders,Closing (Partial Closing),...


How to detect Changes in Orders?

 
    for(pos = OrdersTotal()-1; pos >= 0 ; pos--) if (
        OrderSelect(pos, SELECT_BY_POS)                 // Only my orders w/
    &&  OrderMagicNumber() == magic.number              // my magic number, and
    &&  OrderSymbol()      == Symbol() ){               // period and symbol
Compare internal data to actual.
 

Thanks,But how about partial close,how can i detect them?