Download MetaTrader 5
To add comments, please log in or register
Do you have a trading signal? Publish it in your blog as well!
chinaski
823
chinaski 2011.09.20 19:45 

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 2011.09.21 04:43  
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
823
chinaski 2011.09.22 04:36  

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