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
-
IPersistableICloneable<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
SimpleMovingAverageLong moving average.
shortSma
SimpleMovingAverageShort 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
Measure
public override IndicatorMeasures Measure { get; }
Property Value
MedianPrice
Median price.
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "MedPrice", Description = "MedianPrice", GroupName = "General")]
public MedianPrice MedianPrice { get; }
Property Value
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
ShortMa
Short moving average.
[TypeConverter(typeof(ExpandableObjectConverter))]
[Display(ResourceType = typeof(LocalizedStrings), Name = "ShortMa", Description = "ShortMaDesc", GroupName = "General")]
public SimpleMovingAverage ShortMa { get; }
Property Value
Methods
CalcIsFormed()
Calc IsFormed.
protected override bool CalcIsFormed()
Returns
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnProcess(IIndicatorValue)
To handle the input value.
protected override IIndicatorValue OnProcess(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The resulting value.
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.