Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi Vladimir,
I had a look to the sourcecode and tried to find out, how the lotsize will be calculated by the given risk value in percent.
your code:
ACTM = AccountFreeMargin()*Risk/100 = no your have your max loss in account currency.
lotsize = ACTM / SL value * pip value
From my point of view, this calculation would be correct, by its not the same result as of your script.
Can you please tell me, how your script exactly calculated the lotsize?
Thanks for your help and have nice day, Tom.