MQL4 - automated forex trading   /  

Forum

How to Detect Changes to order

Back to topics list To post a new topic, please log in or register

avatar
333
kimitrio 2011.01.15 16:47 

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?

Synchronization of Expert Advisors, Scripts and Indicators

Synchronization of Expert Advisors, Scripts and Indicators

The article considers the necessity and general principles of developing a bundled program that would contain both an Expert Advisor, a script and an indicator.


avatar
4328
WHRoeder 2011.01.15 21:18 
    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.

avatar
333
kimitrio 2011.01.29 19:41 

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


Back to topics list  

To add comments, please log in or register