---
id: "T:cAlgo.API.Indicators.RelativeVigorIndex"
kind: "interface"
namespace: "cAlgo.API.Indicators"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/RelativeVigorIndex/"
---

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

# RelativeVigorIndex (interface)

The RVI is a momentum oscillator, measuring the strength of a trend.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public interface RelativeVigorIndex
```

## Examples

C#:

```csharp
private RelativeVigorIndex _relativeVigorIndex;

protected override void OnStart()
{
    _relativeVigorIndex = Indicators.RelativeVigorIndex(10);
}

protected override void OnBar()
{
    Print("RVI: {0}, Signal: {1}", _relativeVigorIndex.Result.Last(1), _relativeVigorIndex.Signal.Last(1));
}
```

Python:

```python
def on_start(self):
    self.relativeVigorIndex = api.Indicators.RelativeVigorIndex(10)

def on_bar(self):
    api.Print(f"RVI: {self.relativeVigorIndex.Result.Last(1)}, Signal: {self.relativeVigorIndex.Signal.Last(1)}")
```

## Properties

- `IndicatorDataSeries Result {get;}` — Gets the resulting time series of the Relative Vigor Index calculation (blue line). [details](https://help.ctrader.com/ctrader-algo/references/Indicators/RelativeVigorIndex/Result/index.md)
- `IndicatorDataSeries Signal {get;}` — Gets the Signal line of RVI (red line). [details](https://help.ctrader.com/ctrader-algo/references/Indicators/RelativeVigorIndex/Signal/index.md)

## Inherited members

- `ChartIndicator AddToChart()` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/AddToChart/index.md)
- `Symbol Symbol {get;}` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/Symbol/index.md)
- `TimeFrame TimeFrame {get;}` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/TimeFrame/index.md)
- `Bars Bars {get;}` (from StandardIndicator) [details](https://help.ctrader.com/ctrader-algo/references/General/StandardIndicator/Bars/index.md)

