PriceOscillator


Summary

The Price Oscillator calculates the difference between two moving averages.

Syntax

public PriceOscillator PriceOscillator(DataSeries source, int longCycle, int shortCycle, MovingAverageType maType)

Parameters

NameDescription

Example 1

//...
private PriceOscillator priceOscillator;
        
protected override void OnStart()
{
    priceOscillator = Indicators.PriceOscillator
        (MarketSeries.Close, 14, 5, MovingAverageType.Simple);
    //...
}
protected override void OnTick()
{
    double result = priceOscillator.Result[index];
    //...
}
Reference