Scripts: OpenOrderMarketExecution - page 2

 

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.

Reason: