VolumeOscillator


Summary

The Volume Oscillator identifies trends in volume using a two moving average system. A strong trend is signaled when it is positive. Falling volume indicates trend weakness.

Syntax

public interface VolumeOscillator

Members

NameTypeSummary
Result PropertyGets or sets the time series of the Volume Oscillator indicator.

Example 1

private VolumeOscillator _volumeOscillator;
[Parameter("Short Term", DefaultValue = 9)]
public int ShortTerm { get; set; }
[Parameter("Long Term", DefaultValue = 21)]
public int LongTerm { get; set; }
protected override void Initialize()
{
   _volumeOscillator = Indicators.VolumeOscillator(ShortTerm, LongTerm);
}
public override void Calculate(int index)
{
   // Display Result of Indicator
   Result[index] = _volumeOscillator.Result[index];
}
Reference