in MT5 the history of the trading deals with Deals, Orders and Positions, see here: https://www.mql5.com/en/docs/trading/historyselect.
There is an example script for deals. You can use it as a template.
BTW here is the list of all functions and you can easily search for keywords with ctrl+f: https://www.mql5.com/en/docs/function_indices
Documentation on MQL5: Trade Functions / HistorySelect
- www.mql5.com
HistorySelect - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Carl Schreiber #:
Thanksin MT5 the history of the trading deals with Deals, Orders and Positions, see here: https://www.mql5.com/en/docs/trading/historyselect.
There is an example script for deals. You can use it as a template.
BTW here is the list of all functions and you can easily search for keywords with ctrl+f: https://www.mql5.com/en/docs/function_indices
I'll give that a go and let you know.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I need a little help and other eyes.
I have converted an MT4 indicator to MT5, which only displays info eg. account balances, profits % and a few other things.
I got most to work but the calculation of the profit and commission is not working, no error, just not picking up the figures.
this is the main section for the profit calc. any help would be gratefully appreciated.