Dynamic leverage

Created at 26 Sep 2018, 11:21
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!
alexander.n.fedorov's avatar

alexander.n.fedorov

Joined 02.01.2018

Dynamic leverage
26 Sep 2018, 11:21


Dear Panagiotis,

 

I am trying to find a leverage for the Symbol (let us say Barclays)

the API telss me this:

 

var symbolLeverage = Symbol.DynamicLeverage[0]; 
var realLeverage = Math.Min(symbolLeverage, Account.Leverage);

 

when I try to use it I get this:

and the printout is 

 

26/09/2018 11:04:20.142 | 1, cTrader.CrossDomain.PCL.Symbols.LeverageTier, 30

How do I find a leverage for a Symbol, so I could implement Risk?

Best regards

Sasha


@alexander.n.fedorov
Replies

PanagiotisCharalampous
26 Sep 2018, 11:27

Hi Sasha,

Here it is

var symbolLeverage = Symbol.DynamicLeverage[0].Leverage; 

You should also have in mind that as the volume of open positions for the specific symbol increases, the leverage might change. This is why the leverage is provided in a tiered structure with parameters the volume and the applicable leverage for each tier. So if you trade large volumes then you should also check at which tier you are at that moment.

Best Regards,

Panagiotis


@PanagiotisCharalampous

alexander.n.fedorov
26 Sep 2018, 11:57

Thank you Panagiotis, and let God me be in large positions


@alexander.n.fedorov

alexander.n.fedorov
26 Sep 2018, 11:59

So , it was a misprint in API reference?

 


@alexander.n.fedorov

PanagiotisCharalampous
26 Sep 2018, 12:01

RE:

alexander.n.fedorov said:

So , it was a misprint in API reference?

 

Yes we will fix

Best Regards,

Panagiotis


@PanagiotisCharalampous

alexander.n.fedorov
26 Sep 2018, 12:04

I calculate on Tick availabel margin, before I plasce market order

So, the

"

private void CalculatePosition()

{

}

"

mast check the dynamic leverage

 


@alexander.n.fedorov