Skip to content

CustomSymbolLeverageTier.Leverage

property · CustomSymbolLeverageTier · cAlgo.API Since 5.3

DesktopCLICloud

Leverage of dynamic leverage tier.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public double Leverage {get;}
customSymbolLeverageTier.Leverage: float

Returns double

Examples

var tier = new CustomSymbolLeverageTier(1000000, 500);
Print("Tier leverage: 1:{0}", tier.Leverage);
tier = CustomSymbolLeverageTier(1000000, 500)
api.Print(f"Tier leverage: 1:{tier.Leverage}")