Download MetaTrader 5

detect close order

To add comments, please log in or register
chinaski
922
chinaski  

Hello,

assume i do cycle over pending- or history orders. how do i know an order is intended as CLOSE-order ?

Thank you 

Jimmy
490
Jimmy  
chinaski:

Hello,

assume i do cycle over pending- or history orders. how do i know an order is intended as CLOSE-order ?

Thank you 

If open position is reduced or PositionSelect(symbol) returns false.
chinaski
922
chinaski  

Hello,

thank you for this workaround. I wonder why such orders can't have a position id

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
To add comments, please log in or register