Account.PreciseLeverage
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
Replies
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
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
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
PanagiotisCharalampous
15 Jun 2021, 08:06
Hi yuval.ein,
Check SymbolInfo.DynamicLeverage.
Best Regards,
Panagiotis
Join us on Telegram and Facebook
@PanagiotisCharalampous