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
MT5:
Retrieving History Positions - General - MQL5 programming forum #3 (2020)
Hmmm... Thanks Willian. At least a couple of interesting libraries there. Although for relatively simple tasks (which I think this one should be...?) I prefer to roll my own... if I've at least understood what's required correctly for this (per my response to Fernando above)...?
That is quite a bit to read and answer, so I will just summarise.
Yes, the deals are the "things" that affect everything to do with the money in your account (profit or loss, commission, swap costs, and fees), regarding your actual trading activity.
However, deals are not just related to the actual trading orders. There are also other activities that affect your balance, such as deposits, withdrawals, additional charges or bonuses, interest, dividends, commissions calculated separately from individual trades, etcetera. All these things are still reflected in the "deals" history but have a different Deal Type (ENUM_DEAL_TYPE).
So, in essence you only need to analyse the Deal History to calculate your Balance over time but you need to consider all the data, not just the trading ones.
That is quite a bit to read and answer, so I will just summarise.
Yes, the deals are the "things" that affect everything to do with the money in your account (profit or loss, commission, swap costs, and fees), regarding your actual trading activity.
However, deals are not just related to the actual trading orders. There are also other activities that affect your balance, such as deposits, withdrawals, additional charges or bonuses, interest, dividends, commissions calculated separately from individual trades, etcetera. All these things are still reflected in the "deals" history but have a different Deal Type (ENUM_DEAL_TYPE).
So, in essence you only need to analyse the Deal History to calculate your Balance over time but you need to consider all the data, not just the trading ones.
Ok. I'm pretty sure all that makes sense. Thank you so much.
I'll review all that and try it out, and I'll come back if there's anything else I'm confused about, but it sounds like you've covered everything. Thank you again!