check MarketInfo("EURCHF",MODE_MARGINREQUIRED); (returns for 1 lot)
Hi qjol,
Thanks for the reply, but I still don't quite understand the purpose, can u kindly elaborate more about this. Thanks.
Currently I calculate my lot using the following code and does an Ordersend() with the calculated lot size.
lot=NormalizeDouble(AccountFreeMargin()*MaximumRisk/(StopLoss*PointValue),1);
How to use/insert this MarketInfo code.
Thanks for the helps.
Regards,
Sam
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 all,
I am a new beginner with MT4 EA and hope to get some helps in resolving a problem. Thanks.
I was approached by my broker that my MT4 margin is calculated wrongly for those non-USD based pairs.
Eg : if buy/sell USDJPY 1 mini lot, the margin shown is 200USD (which is correct)
but when buy/sell EURCHF 1 mini lot, the margin shown is still 200USD (which should be higher, like maybe 275USD)
It puzzles me coz my EA will not do any margin calculation, and I tot such margin is taken care by the MT4 apps itself.
What my EA does is just merely calculate the lot size and performs a Ordersend() command.
Is it because of my MT4 setups? Can anyone pls kindly advice me. Appreciate that.
Thanks,
Sam