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

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

# Bar.Open

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

## Open

Gets the open price.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
bar.Open: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var bar = Bars.LastBar;
Print("Price moved {0} pips since the bar opened at {1}", (bar.Close - bar.Open) / Symbol.PipSize, bar.Open);
```

Python:

```python
bar = api.Bars.LastBar
api.Print(f"Price moved {(bar.Close - bar.Open) / api.Symbol.PipSize} pips since the bar opened at {bar.Open}")
```

