Converted an MT4 to MT5 indicator, but some of the accounting definitions don't work
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
- www.mql5.com
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
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.