---
id: "P:cAlgo.API.BacktestingSettings.CommissionType"
kind: "property"
type: "T:cAlgo.API.BacktestingSettings"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Backtesting/BacktestingSettings/CommissionType/"
---

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

# BacktestingSettings.CommissionType

Member of [BacktestingSettings](https://help.ctrader.com/ctrader-algo/references/Plugin/Backtesting/BacktestingSettings/index.md).

## CommissionType

Gets or sets the commission type that defines how the Commission property value is interpreted. It is ignored when ApplyCommissionAutomatically is set to true. The default value is SymbolCommissionType.UsdPerMillionUsdVolume.

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 SymbolCommissionType CommissionType {get; set;}
```

Python:

```python
backtestingSettings.CommissionType: SymbolCommissionType
```

### Returns

`SymbolCommissionType` — 

Available since cAlgo.API 5.10.

### Examples

C#:

```csharp
var settings = new BacktestingSettings
{
    Commission = 3.5,
    CommissionType = SymbolCommissionType.UsdPerOneLot
};
Print("Commission type: {0}", settings.CommissionType);
```

Python:

```python
settings = BacktestingSettings()
settings.Commission = 3.5
settings.CommissionType = SymbolCommissionType.UsdPerOneLot
api.Print(f"Commission type: {settings.CommissionType}")
```

