Skip to content

NegativeVolumeIndex.Result

property · NegativeVolumeIndex · cAlgo.API.Indicators

DesktopCLICloud

The time series of the Negative Volume Index indicator.

Definition

IndicatorDataSeries Result {get; set;}
negativeVolumeIndex.Result: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

private NegativeVolumeIndex _negativeVolume;

protected override void OnStart()
{
    _negativeVolume = Indicators.NegativeVolumeIndex(Source);
}
protected override void OnBar()
{
    var currentValue = _negativeVolume.Result.LastValue;
    Print("Negative Volume Index: {0}", currentValue);
}
def on_start(self):
    self.negativeVolume = api.Indicators.NegativeVolumeIndex(api.Source)

def on_bar(self):
    currentValue = self.negativeVolume.Result.LastValue
    api.Print(f"Negative Volume Index: {currentValue}")
{
  "Parameters": [
    {
      "Name": "Source",
      "Type": "DataSeries"
    }
  ]
}