MovingAverageRibbon
StockSharp.Algo.Indicators
Moving Average Ribbon indicator.
Inherits: BaseComplexIndicator<IMovingAverageRibbonValue>
Constructors
MovingAverageRibbon
public MovingAverageRibbon()
movingAverageRibbon = MovingAverageRibbon()
Initializes a new instance of the MovingAverageRibbon.
Properties
LongPeriod
public int LongPeriod { get; set; }
value = movingAverageRibbon.LongPeriod
movingAverageRibbon.LongPeriod = value
Longest Moving Average period.
RibbonCount
public int RibbonCount { get; set; }
value = movingAverageRibbon.RibbonCount
movingAverageRibbon.RibbonCount = value
Number of Moving Averages in the ribbon.
ShortPeriod
public int ShortPeriod { get; set; }
value = movingAverageRibbon.ShortPeriod
movingAverageRibbon.ShortPeriod = value
Shortest Moving Average period.
Methods
CreateValue
protected override IMovingAverageRibbonValue CreateValue(DateTime time)
result = movingAverageRibbon.CreateValue(time)
Create .
- time
- Time
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = movingAverageRibbon.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
Reset
public override void Reset()
movingAverageRibbon.Reset()
To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = movingAverageRibbon.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
ToString
public override string ToString()
result = movingAverageRibbon.ToString()
Returns a string representation of the tuple, with values separated by commas.
Returns: A string representing the tuple's values.