---
id: "M:cAlgo.API.BacktestingSettings.#ctor"
kind: "constructor"
type: "T:cAlgo.API.BacktestingSettings"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Backtesting/BacktestingSettings/Constructor/"
---

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

# BacktestingSettings constructor

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

## BacktestingSettings()

Represents settings for configuring the backtesting process.

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 BacktestingSettings()
```

Python:

```python
BacktestingSettings()
```

### Examples

C#:

```csharp
var settings = new BacktestingSettings();
settings.Balance = 5000;
Print("Backtesting balance: {0}", settings.Balance);
```

Python:

```python
settings = BacktestingSettings()
settings.Balance = 5000
api.Print(f"Backtesting balance: {settings.Balance}")
```

