GpuMovingAverageRibbonResult

StockSharp.Algo.Gpu.Indicators

GPU result for Moving Average Ribbon.

Реализует: IGpuIndicatorResult

Методы

GetAverage
public float GetAverage(int index)
result = gpuMovingAverageRibbonResult.GetAverage(index)

Get stored average value at the specified index.

index
Average index.

Возвращает: Average value.

SetAverage
public void SetAverage(int index, float value)
gpuMovingAverageRibbonResult.SetAverage(index, value)

Store average value at the specified index.

index
Average index.
value
Average value.
ToValue
public IIndicatorValue ToValue(IIndicator indicator)
result = gpuMovingAverageRibbonResult.ToValue(indicator)

Convert GPU result to appropriate indicator value.

indicator
The indicator to create value for.

Возвращает: Indicator value compatible with the specified indicator type.

Поля

Averages
public <Averages>e__FixedBuffer Averages
value = gpuMovingAverageRibbonResult.Averages

Ribbon average values.

IsFormed
public byte IsFormed
value = gpuMovingAverageRibbonResult.IsFormed

Is indicator formed (byte to be GPU-friendly).

MaxRibbonCount
public const int MaxRibbonCount
value = GpuMovingAverageRibbonResult.MaxRibbonCount

Maximum number of averages stored per result.

RibbonCount
public int RibbonCount
value = gpuMovingAverageRibbonResult.RibbonCount

Actual number of averages stored for the bar.

Time
public long Time
value = gpuMovingAverageRibbonResult.Time

Time in Ticks.