Skip to content

CustomSymbolLeverageTier constructor

constructor · CustomSymbolLeverageTier · cAlgo.API Since 5.3

DesktopCLICloud

Creates a new custom symbol 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 CustomSymbolLeverageTier(double volume, double leverage)
CustomSymbolLeverageTier(volume: float, leverage: float)

Parameters

Name C# type Python type Description
volume double float Volume
leverage double float Leverage

Examples

var tier = new CustomSymbolLeverageTier(1000000, 500);
Print("Up to {0} volume the leverage is 1:{1}", tier.Volume, tier.Leverage);
tier = CustomSymbolLeverageTier(1000000, 500)
api.Print(f"Up to {tier.Volume} volume the leverage is 1:{tier.Leverage}")