Besides the 6 basic trade operations as detailed here https://docs.mql4.com/constants/trading, I've noticed that when selecting from the history pool, there are also: type 6 which is a 'balance' line and type 7 which is a 'credit' line.
1. Where is this documented? I simply can't find it anywhere.
2. Are there any other types or are the possible types only 0-7?
3. I have noticed that selecting from the history pool depends on user settings of how long a history to show... Is there some way to override this and read all history regardless of the user setting?
1. Not documented.
2. No other type.
3. With WinAPI call, search the forum...
6 is balance
7 is credit
8 is rebate
Some brokers pay the rebates when you invite some people to open an account. If the broker have the rebate option, you will receive a % of spread for each order opened. It doesn't mather if the order close with profit or not.