Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vadimt2 opened this issue Dec 20, 2020 · 3 comments
Open

Comments

@vadimt2
Copy link

vadimt2 commented Dec 20, 2020

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

@vdemydiuk
Copy link
Owner

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
Copy link
Author

vadimt2 commented Jan 4, 2021

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
Copy link

lazou commented Jan 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants