NegativeVolumeIndex


Summary

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

Syntax

public NegativeVolumeIndex NegativeVolumeIndex(DataSeries source)

Parameters

NameDescription

Example 1

private NegativeVolumeIndex _negativeVolume;
[Parameter]
public DataSeries Source { get; set; }
[Output("Main")]
public IndicatorDataSeries Result { get; set; }
protected override void Initialize()
{
   _negativeVolume = Indicators.NegativeVolumeIndex(Source);
}
public override void Calculate(int index)
{
   // Display Result of Indicator
   Result[index] = _negativeVolume.Result[index];
}