Lot size

Created at 02 Dec 2019, 11:34
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
YA

yassineandich123

Joined 03.05.2019

Lot size
02 Dec 2019, 11:34


Is there a way to know the exacte lot size in relation to the capital risk ratio?


@yassineandich123
Replies

PanagiotisCharalampous
02 Dec 2019, 11:48

Hi Yassine, 

You can calculate the volume you need to trade in order to risk a certain percentage of your balance using the following formula.

(Percentage * Account.Balance) / (Stop Loss Value)

In a cBot you would use the following code line

var volume = Symbol.VolumeInUnitsToQuantity(Symbol.NormalizeVolumeInUnits(((RiskPercentage / 100) * Account.Balance) / (StopLossInPips * Symbol.PipValue)));

I hope this helps.

Best Regards,

Panagiotis


@PanagiotisCharalampous