GpuOscillatorOfMovingAverageCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Oscillator of Moving Average (OMA).

继承自: GpuIndicatorCalculatorBase<OscillatorOfMovingAverage, GpuOscillatorOfMovingAverageParams, GpuIndicatorResult>

构造函数

GpuOscillatorOfMovingAverageCalculator
public GpuOscillatorOfMovingAverageCalculator(Context context, Accelerator accelerator)
gpuOscillatorOfMovingAverageCalculator = GpuOscillatorOfMovingAverageCalculator(context, accelerator)

Initializes a new instance of the GpuOscillatorOfMovingAverageCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

方法

Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuOscillatorOfMovingAverageParams[] parameters)
result = gpuOscillatorOfMovingAverageCalculator.Calculate(candlesSeries, parameters)
OmaParamsSeriesKernel
private static void OmaParamsSeriesKernel(Index3D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuOscillatorOfMovingAverageParams> parameters)
GpuOscillatorOfMovingAverageCalculator.OmaParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel: Oscillator of Moving Average computation for multiple series and multiple parameter sets. Results are stored as [param][globalIdx].