---
id: "M:cAlgo.API.CustomSymbolLeverageTier.#ctor(System.Double,System.Double)"
kind: "constructor"
type: "T:cAlgo.API.CustomSymbolLeverageTier"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolLeverageTier/Constructor/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# CustomSymbolLeverageTier constructor

Member of [CustomSymbolLeverageTier](https://help.ctrader.com/ctrader-algo/references/Plugin/Symbol/Custom/CustomSymbolLeverageTier/index.md).

## CustomSymbolLeverageTier(double volume, double leverage)

Creates a new custom symbol leverage tier.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
public CustomSymbolLeverageTier(double volume, double leverage)
```

Python:

```python
CustomSymbolLeverageTier(volume: float, leverage: float)
```

### Parameters

- `volume` (`double`, Python `float`): Volume
- `leverage` (`double`, Python `float`): Leverage

Available since cAlgo.API 5.3.

### Examples

C#:

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

Python:

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

