---
id: "M:cAlgo.API.Internals.IIndicatorsAccessor.TypicalPrice"
kind: "method"
type: "T:cAlgo.API.Internals.IIndicatorsAccessor"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/TypicalPrice/"
---

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

# IIndicatorsAccessor.TypicalPrice

Member of [IIndicatorsAccessor](https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/index.md).

## TypicalPrice()

The Typical Price indicator is the average of the high, low, and closing prices.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
TypicalPrice TypicalPrice()
```

Python:

```python
api.Indicators.TypicalPrice() -> TypicalPrice
```

### Returns

`TypicalPrice` — Typical Price indicator instance.

### Examples

C#:

```csharp
var typicalPrice = Indicators.TypicalPrice();
Print("Typical price of the last closed bar: {0}", typicalPrice.Result.Last(1));
```

Python:

```python
typicalPrice = api.Indicators.TypicalPrice()
api.Print(f"Typical price of the last closed bar: {typicalPrice.Result.Last(1)}")
```

## TypicalPrice(Bars bars)

The Typical Price indicator is the average of the high, low, and closing prices.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
TypicalPrice TypicalPrice(Bars bars)
```

Python:

```python
api.Indicators.TypicalPrice(bars: Bars) -> TypicalPrice
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars

### Returns

`TypicalPrice` — Typical Price indicator instance.

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyTypicalPrice = Indicators.TypicalPrice(dailyBars);
Print("Typical price of the last closed daily bar: {0}", dailyTypicalPrice.Result.Last(1));
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyTypicalPrice = api.Indicators.TypicalPrice(dailyBars)
api.Print(f"Typical price of the last closed daily bar: {dailyTypicalPrice.Result.Last(1)}")
```

