Account.PreciseLeverage

Created at 14 Jun 2021, 17:31
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!
EY

eynt

Joined 08.05.2020

Account.PreciseLeverage
14 Jun 2021, 17:31


The Account.PreciseLeverage property returns the account leverage. However, each symbol can potentially has a different leverage. Is there a way to know the leverage of a specific symbol?

 

Thanks


@eynt
Replies

PanagiotisCharalampous
15 Jun 2021, 08:06

Hi yuval.ein,

Check SymbolInfo.DynamicLeverage.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

eynt
15 Jun 2021, 08:42

RE:

Thank you

 

I was able to access the account leverage by this.Account.PreciseLeverage. How can I access the SymbolInfo.DynamicLeverage property?

 


@eynt

PanagiotisCharalampous
15 Jun 2021, 08:46

Hi yuval.ein,

Symbol.DynamicLeverage

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

eynt
15 Jun 2021, 09:16

RE:

I've printed my leverage using the code below and got the following prints:

15/06/2021 09:09:06.933 | vol: 1000000000 lev: 50
15/06/2021 09:09:06.933 | vol: 250000000 lev: 100
15/06/2021 09:09:06.933 | vol: 200000000 lev: 500
 

Which is not what I expected to get. My Pepperstne account leverage is 1:500 regardless of volume.

 

 

foreach (LeverageTier a in Symbol.DynamicLeverage)
            {
                Print("vol: " + a.Volume + " lev: " + a.Leverage);
            }

 

Thanks

 


@eynt

PanagiotisCharalampous
15 Jun 2021, 16:27

Hi yuval.ein,

If this is what is printed, then this is how the symbol is set up. Which symbol is this?

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

eynt
15 Jun 2021, 20:24

RE:

Many symbols, such as EURNZD, GBPCAD, GBPCHF, EURUSD etc.

 


@eynt

PanagiotisCharalampous
16 Jun 2021, 08:28 ( Updated at: 21 Dec 2023, 09:22 )

Hi yuval.ein,

You need to tell me the exact symbol and send me a screenshot of the Leverage section in the Symbol panel e.g.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

eynt
16 Jun 2021, 09:29 ( Updated at: 21 Dec 2023, 09:22 )

RE:

 


@eynt

PanagiotisCharalampous
16 Jun 2021, 09:33

Hi yuval.ein,

As you can see from your screenshot. your leverage has levels. The same as the ones printed by your cBot.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous