Download MetaTrader 5
To add comments, please log in or register
Having troubles understanding the code? Articles can help you!
Fa Cao
1141
Fa Cao 2013.11.28 01:36 

I mean whether we can get all the information about the orders which have been closed, such as how the orders are closed, by "stop loss " or by OrderClose(), if we can, which functions should be used?

Ian Flanagan
549
Ian Flanagan 2013.11.28 01:59  

any function starting with Order.

AFAIK, there's no function that tells you how an order was closed. You just have to keep a record if your EA does it (if not, it was stoploss). You can also check if OrderStoploss vaguaelly equals OrderClosePrice

/
To add comments, please log in or register