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

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

# BacktestingCompletedEventArgs.Process

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

## Process

Gets the backtesting process that has 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
public BacktestingProcess Process {get;}
```

Python:

```python
backtestingCompletedEventArgs.Process: BacktestingProcess
```

### Returns

`BacktestingProcess` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Backtesting.Completed += OnBacktestingCompleted;
}

private void OnBacktestingCompleted(BacktestingCompletedEventArgs args)
{
    Print("Process completed: {0}, error: {1}", args.Process.IsCompleted, args.Process.BacktestingError);
}
```

Python:

```python
def on_start(self):
    api.Backtesting.Completed += self.on_backtesting_completed

def on_backtesting_completed(self, args):
    api.Print(f"Process completed: {args.Process.IsCompleted}, error: {args.Process.BacktestingError}")
```

