![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,
i am having a problem with the right calculation of the LotSize.
I just want the EA to open a new Position but with a LotSize accordingly calculated to my Freemargin.
For example if the margin for 1 Lot of GER30 is 60€ and the FreeMargin is at 1000€, he can only open a Position that equals 1.6 Lots. So that if the GER30 gains/loses 1 point my Equity gains/loses 1.6€.
But when i run the testing, my EA opens a position with the right number of Volume. But it seems the volume doesnt match the Lot that i intend the ea to open.
For Example a volume of 0.1 seems to be a Lotsize of 10.
What am i missing ?
Thanks in advance :)