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
Hi.
Using my MT5 release provided from my Broker, the values for balance / equity and free margin remains zero all time until the trade not finish.
For example, if I got $ 100 of profit during a succesfully closed trade I will have $ 100 available for balance / equity and free margin. And so on...
But, thinking about an EA execution, can this cause some issues to start a trade ? The EA will starts with a balance variable equal zero...
If positive, basing on MQL5 API we have a method called "AccountFreeMargin()" that returns a double value that I think that can be handled inside the code.
Basing on this, is it possible to declare fixed values for Balance / Equity and Free Margin as a variable or something like this to run in my real execution for EA ?