![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
Hi staff, How can I calculate the margin required for CFD GE30Dec20?. I make a script to write the “NormalizeDouble(MarketInfo(Symbol(),MODE_MARGINREQUIRED),2)” and (MarketInfo(Symbol(),MODE_LOTSIZE)*ask/AccountInfoInteger(ACCOUNT_LEVERAGE)) in a file.
If I test my script on CFD GE30Dec20 chart I get this result, but there is a big difference on the results that I don’t know why? Can you help me to understand that?
this is the result of my test.