---
id: "P:cAlgo.API.Bar.Close"
kind: "property"
type: "T:cAlgo.API.Bar"
url: "https://help.ctrader.com/ctrader-algo/references/MarketData/Bars/Bar/Close/"
---

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

# Bar.Close

Member of [Bar](https://help.ctrader.com/ctrader-algo/references/MarketData/Bars/Bar/index.md).

## Close

Gets the Close price.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public double Close {get;}
```

Python:

```python
bar.Close: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var closedBar = Bars.Last(1);
Print("Last closed bar close price: {0}", closedBar.Close);
```

Python:

```python
closedBar = api.Bars.Last(1)
api.Print(f"Last closed bar close price: {closedBar.Close}")
```

