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

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

# BacktestingSettings.SpreadPips

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

## SpreadPips

Gets or sets the spread in pips.

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 double SpreadPips {get; set;}
```

Python:

```python
backtestingSettings.SpreadPips: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var settings = new BacktestingSettings { SpreadPips = 1.2 };
Print("Backtesting spread: {0} pips", settings.SpreadPips);
```

Python:

```python
settings = BacktestingSettings()
settings.SpreadPips = 1.2
api.Print(f"Backtesting spread: {settings.SpreadPips} pips")
```

