You could use the CAccountInfo class.
It has methods for getting leverage, profit, balance, free margin etc.
It has methods for getting leverage, profit, balance, free margin etc.

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
Hello,
in MQL5 we have OnTick() to see that there was quote update.
But how ayout account information properties?
For example, if the balance, leverage or something else accounr related changes, how can one simply test this?
It would be a pain to test all properties explicitly.
Do you know of simple method?
Thanks in advance,
Juergen