---
id: "P:cAlgo.API.CustomBar.Close"
kind: "property"
type: "T:cAlgo.API.CustomBar"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/TimeFrame/Custom/CustomBar/Close/"
---

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

# CustomBar.Close

Member of [CustomBar](https://help.ctrader.com/ctrader-algo/references/Plugin/TimeFrame/Custom/CustomBar/index.md).

## Close

Gets close price of bar.

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

Python:

```python
customBar.Close: float
```

### Returns

`double` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var bar = new CustomBar(Server.Time, 1.1000, 1.1050, 1.0980, 1.1020, 1500);
Print("Bar is bullish: {0}", bar.Close > bar.Open);
```

Python:

```python
bar = CustomBar(api.Server.Time, 1.1000, 1.1050, 1.0980, 1.1020, 1500)
api.Print(f"Bar is bullish: {bar.Close > bar.Open}")
```

