try
double Lots = Your_Lot_Size; AccountFreeMargin() + (MarketInfo(Symbol(),MODE_MARGINREQUIRED) * Lots);
of course it's not accurate but +-
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,
we have AccountFreeMarginCheck()
that will calculate the free margin that remains after the specified position has been opened.
But how to calculate what will be the free margin
if we close a certain position (not all of them)?
Thank you