UltimateOscillator


Summary

The Ultimate Oscillator is a technical analysis oscillator based on a notion of buying or selling "pressure".

Remarks

It uses the weighted average of three different time periods to reduce the volatility and false transaction signals that are associated with many other indicators that mainly rely on a single time period.

Syntax

public interface UltimateOscillator

Members

NameTypeSummary
Result PropertyThe resulting time series of the UltimateOscillator Indicator calculation

Example 1

private UltimateOscillator ultimateOscillator;
[Parameter("Cycle 1", DefaultValue = 7)]
public int Cycle1 { get; set; }
[Parameter("Cycle 2", DefaultValue = 14)]
public int Cycle2 { get; set; }
[Parameter("Cycle 3", DefaultValue = 28)]
public int Cycle3 { get; set; }
[Output("Main", Color = Colors.Green)]
public IndicatorDataSeries Result { get; set; }
protected override void Initialize()
{
    ultimateOscillator = Indicators.UltimateOscillator(Cycle1,Cycle2,Cycle3);
}        
public override void Calculate(int index)
{
    Result[index] = ultimateOscillator.Result[index];
}