Table of Contents

Class AwesomeOscillator

Namespace
StockSharp.Algo.Indicators
Assembly
StockSharp.Algo.dll

Awesome Oscillator.

[Display(ResourceType = typeof(LocalizedStrings), Name = "AO", Description = "AwesomeOscillator")]
public class AwesomeOscillator : BaseIndicator, IIndicator, IPersistable, ICloneable<IIndicator>, ICloneable
Inheritance
AwesomeOscillator
Implements
IPersistable
ICloneable<IIndicator>
Derived
Inherited Members
Extension Methods

Remarks

Constructors

AwesomeOscillator()

Initializes a new instance of the AwesomeOscillator.

public AwesomeOscillator()

AwesomeOscillator(SimpleMovingAverage, SimpleMovingAverage)

Initializes a new instance of the AwesomeOscillator.

public AwesomeOscillator(SimpleMovingAverage longSma, SimpleMovingAverage shortSma)

Parameters

longSma SimpleMovingAverage

Long moving average.

shortSma SimpleMovingAverage

Short moving average.

Properties

LongMa

Long moving average.

[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "LongMa", Description = "LongMaDesc", GroupName = "General")]
public SimpleMovingAverage LongMa { get; }

Property Value

SimpleMovingAverage

Measure

public override IndicatorMeasures Measure { get; }

Property Value

IndicatorMeasures

MedianPrice

Median price.

[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "MedPrice", Description = "MedianPrice", GroupName = "General")]
public MedianPrice MedianPrice { get; }

Property Value

MedianPrice

NumValuesToInitialize

Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals true). null if undefined.

public override int NumValuesToInitialize { get; }

Property Value

int

ShortMa

Short moving average.

[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "ShortMa", Description = "ShortMaDesc", GroupName = "General")]
public SimpleMovingAverage ShortMa { get; }

Property Value

SimpleMovingAverage

Methods

CalcIsFormed()

Calc IsFormed.

protected override bool CalcIsFormed()

Returns

bool

IsFormed

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnProcess(IIndicatorValue)

To handle the input value.

protected override IIndicatorValue OnProcess(IIndicatorValue input)

Parameters

input IIndicatorValue

The input value.

Returns

IIndicatorValue

The resulting value.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.