VolumeOscillator


Summary

The Volume Oscillator indicator is the difference between two moving averages.

Syntax

public VolumeOscillator VolumeOscillator(int shortTerm, int longTerm)
public VolumeOscillator VolumeOscillator(MarketSeries marketSeries, int shortTerm, int longTerm)

Parameters

NameDescription

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 OnStart()
{
    _volumeOscillator = Indicators.VolumeOscillator(ShortTerm, LongTerm);;
}
protected override void OnBar()
{
    var currentValue = _volumeOscillator.Result.LastValue;
    //...
}