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

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

# BacktestingProcess.IsCompleted

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

## IsCompleted

Gets a value indicating whether the backtesting process is completed.

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
bool IsCompleted {get;}
```

Python:

```python
backtestingProcess.IsCompleted: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
if (AlgoRegistry.Get("Sample Trend cBot", AlgoKind.Robot) is not RobotType robotType)
    return;
var settings = new BacktestingSettings { StartTimeUtc = new DateTime(2025, 1, 1), EndTimeUtc = new DateTime(2025, 2, 1), Balance = 10000 };
var process = Backtesting.Start(robotType, "EURUSD", TimeFrame.Hour, settings);
if (process.IsCompleted)
    Print("Backtesting already completed with error {0}", process.BacktestingError);
```

Python:

```python
from System import DateTime
algoType = api.AlgoRegistry.Get("Sample Trend cBot", AlgoKind.Robot)
if algoType is None:
    return
settings = BacktestingSettings()
settings.StartTimeUtc = DateTime(2025, 1, 1)
settings.EndTimeUtc = DateTime(2025, 2, 1)
settings.Balance = 10000
process = api.Backtesting.Start(RobotType(algoType), "EURUSD", TimeFrame.Hour, settings)
if process.IsCompleted:
    api.Print(f"Backtesting already completed with error {process.BacktestingError}")
```

