PriceOscillator


Summary

The Price Oscillator calculates the spread between a short-period moving average and a long-period moving average.

Syntax

public interface PriceOscillator

Members

NameTypeSummary
Result PropertyThe resulting time series of the PriceOscillator Indicator calculation

Example 1

//...
private PriceOscillator priceOscillator;
 
protected override void Initialize()
{
    priceOscillator = Indicators.PriceOscillator
        (Price, LongCycle, ShortCycle, MAType);
}
public override void Calculate(int index)
{
    double current = priceOscillator.Result[index];
}