Skip to content

RelativeVigorIndex

interface cAlgo.API.Indicators

DesktopCLICloud

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

Definition

public interface RelativeVigorIndex

Namespace: cAlgo.API.Indicators · Group: Indicators · Implements: StandardIndicator

Examples

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));
}
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

Name Description
ResultDesktopCLICloudIndicatorDataSeries Gets the resulting time series of the Relative Vigor Index calculation (blue line).
SignalDesktopCLICloudIndicatorDataSeries Gets the Signal line of RVI (red line).

Inherited members

From StandardIndicator: AddToChart, Symbol, TimeFrame, Bars