Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
Lot size by risk http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=200&t=56960 |
Page 1 of 1 |
Author: | jlno [ Thu 14 Mar, 2019, 13:28 ] |
Post subject: | Lot size by risk |
How to calculate lot size by risk, checking min and max lot available to symbol? |
Author: | fprophet [ Thu 02 May, 2019, 08:06 ] |
Post subject: | Re: Lot size by risk |
I use this to calculate amount to trade, where EPC_lever = percentage Equity to leverage, & with a Fixed_Amount override double amount = 0.001; if (Fixed_Amount > 0) {amount = Fixed_Amount;} else if (EPC_lever > 0) {amount = (account.getEquity() / oneMill) * EPC_lever;} if (amount < minAmt) amount = minAmt; if (amount > maxAmt) amount = maxAmt; // millions to trade in Base (Primary) currency amount = new BigDecimal(amount).setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue(); But if you want to calculate the % of your Equity to Risk then that's a different story ... what would you base that on? |
Author: | Platform Support [ Wed 08 May, 2019, 09:30 ] |
Post subject: | Re: Lot size by risk |
BTW, there is a user interface added since the version 3.5.9 for this. We call it Amount calculator and it is available next to the amount spinner. |
Page 1 of 1 |