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
There's a problem with AccountInfoDouble(ACCOUNT_BALANCE) function. When I close a position inside OnTick() and then execute AccountInfoDouble(ACCOUNT_BALANCE), it returns the account balance before the position was closed.
It's easy to reproduce by calling the function immediately before and after closing a position inside OnTick().
If it's not a bug, how do I effectively get the current account balance after I've closed a position inside OnTick()?