You may find this helpful.
How to calculate % lotSeize on Free Equity
- 2025.07.08
- Mattia Trabucchi
- www.mql5.com
Hi everyone, here posting on a simple apparently stupid topic for the mayority of y'all but still struggling in it...
Thank you very much! After all these attempts, I pretty much believe that yours is the only appropriate solution! But, you think this adds substantial load if and when the account size is high, or it's fine?
Finversia J #:
Thank you very much! After all these attempts, I pretty much believe that yours is the only appropriate solution! But, you think this adds substantial load if and when the account size is high, or it's fine?
Good point. Maybe you can adjust starting volume from a larger amount depending on your specific balance.
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 have been trying to write one function that would calculate LotSize regardless of the instrument, but it seems that despite all my efforts the program seems to throw weird lot sizes anytime I use it for index - ES or NQ. It's working good for forex, gold and crude. I am yet to try it fully on crypto but each have a different contract size so I was thinking it would throw errors, but on BTC, ETH, LTC it seems to be working soundly.
Please, if anyone has the key to this lock, please please help me! Thanks!
NOTE: I have a very basic knowledge about coding and this is not my code and I have found it on a YT tutorial.