![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hey , I've been trying to work with OrderCalcMargin which does a good job of obtaining the Margin Used by Each Order , But I'm trying to get the total of all margin Outside at the Margin Variable definition level but I'm getting same value outside the block and correct value inside the block but when I try to add them to get their total It seems the same value is been adding to its own self
Someone explain to me how, why and what should be done I'm pretty sure something is wrong at Margin Variable storage of value its a double& since I haven't Used it before in situation Like this , and I don't fully understand how it works