vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
511 stars 276 forks source link

[MT5] how can we get list of open trades & close trades like in MT4? #244

Open vadimt2 opened 3 years ago

vadimt2 commented 3 years ago

[MT5] how can we get list of open trades & close trades like in MT4?

vdemydiuk commented 3 years ago

You can use functions: OrderSelect, OrderGetTicket, OrderGetDouble, OrderGetInteger, OrderGetString, HistorySelect, etc. Similar with MQL5 functions: https://www.mql5.com/en/docs/trading.

I will try to add agrregated functions like GetOrder/GetOrders avaialble in MtApi MT4.

vadimt2 commented 3 years ago

https://www.mql5.com/en/code/27683 https://www.mql5.com/en/docs/trading/historyselect

Hope it will help you, Is it possible to change the repo to .net 5 ?

lazou commented 3 years ago

@vadimt2 Did you tried the sources provided in #203 already?