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

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

# IIndicatorsAccessor.PositiveVolumeIndex

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

## PositiveVolumeIndex(DataSeries source)

The Positive Volume Index is a calculation of the percentage change in price on days when trading volume increased.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
PositiveVolumeIndex PositiveVolumeIndex(DataSeries source)
```

Python:

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

### Parameters

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

### Returns

`PositiveVolumeIndex` — Positive Volume Index indicator instance

### Examples

C#:

```csharp
var positiveVolumeIndex = Indicators.PositiveVolumeIndex(Bars.ClosePrices);
Print("Positive Volume Index: {0}", positiveVolumeIndex.Result.LastValue);
```

Python:

```python
positiveVolumeIndex = api.Indicators.PositiveVolumeIndex(api.Bars.ClosePrices)
api.Print(f"Positive Volume Index: {positiveVolumeIndex.Result.LastValue}")
```

