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
Hello all!
I'm working on a EA that uses Money Management, I found this code very useful:
As it does what I just needed to, the problem I'm facing is pretty specific:
This part of the code is useless when I put the EA on a JPY pair, as the Ask is ussualy over 100, then if I do the math for a 0.05 lots order: (112.00 * 0.05 * 100000)/200 it returns $2,800 margin required for a 0.05 trade (Which is obviously not true) but if I set a part with something like
It would be just lik a hot fix, becuase if I put the EA on XAUUSD for example, it has 3 digits too so the formula would be useless, any ideas on how to fix this?
I took the code from here: https://wetalktrade.com/money-management-lot-sizing-mql-tutorial/