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

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

# IIndicatorsAccessor.PriceVolumeTrend

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

## PriceVolumeTrend(DataSeries source)

The Price Volume Trend indicator shows the relationship between price and volume.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
PriceVolumeTrend PriceVolumeTrend(DataSeries source)
```

Python:

```python
api.Indicators.PriceVolumeTrend(source: DataSeries) -> PriceVolumeTrend
```

### Parameters

- `source` (`DataSeries`, Python `DataSeries`): The price source data used for the calculation.

### Returns

`PriceVolumeTrend` — Price Volume Trend indicator instance

### Examples

C#:

```csharp
var priceVolumeTrend = Indicators.PriceVolumeTrend(Bars.ClosePrices);
Print("Price Volume Trend: {0}", priceVolumeTrend.Result.LastValue);
```

Python:

```python
priceVolumeTrend = api.Indicators.PriceVolumeTrend(api.Bars.ClosePrices)
api.Print(f"Price Volume Trend: {priceVolumeTrend.Result.LastValue}")
```

