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

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

# BacktestingSettings.EndTimeUtc

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

## EndTimeUtc

Gets or sets the end time in UTC for the backtesting period.

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 DateTime EndTimeUtc {get; set;}
```

Python:

```python
backtestingSettings.EndTimeUtc: DateTime
```

### Returns

`DateTime` — 

### Examples

C#:

```csharp
var settings = new BacktestingSettings { EndTimeUtc = Server.TimeInUtc.Date };
Print("Backtesting ends at {0:u}", settings.EndTimeUtc);
```

Python:

```python
settings = BacktestingSettings()
settings.EndTimeUtc = api.Server.TimeInUtc.Date
api.Print(f"Backtesting ends at {settings.EndTimeUtc}")
```

