Download MetaTrader 5

OrderType() == 6, 7 in the history pool?

To add comments, please log in or register
gordon
2328
gordon  

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.


Questions:

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?

mindful FX UG (haftungsbeschraenkt)
122
Cristof Ensslin  
I'd love to know this, as well. The issue has just come up in a client project...
Alain Verleyen
Moderator
33816
Alain Verleyen  

1. Not documented.

2. No other type.

3. With WinAPI call, search the forum...

Carl Schreiber
7679
Carl Schreiber  
I vaguely remember that this could be (not documented - why?) IDs for deposits/withdrawals.
gustavodemelo
15
gustavodemelo  

Hi!

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.


Regards.

whroeder1
16575
whroeder1  
Some brokers don't use the Commission/Swap fields. Instead the add balance entries.
To add comments, please log in or register