GpuMomentumOfMovingAverageCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Momentum of Moving Average (MOMA).

継承元: GpuIndicatorCalculatorBase<MomentumOfMovingAverage, GpuMomentumOfMovingAverageParams, GpuIndicatorResult>

コンストラクター

GpuMomentumOfMovingAverageCalculator
public GpuMomentumOfMovingAverageCalculator(Context context, Accelerator accelerator)
gpuMomentumOfMovingAverageCalculator = GpuMomentumOfMovingAverageCalculator(context, accelerator)

Initializes a new instance of the GpuMomentumOfMovingAverageCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

メソッド

Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuMomentumOfMovingAverageParams[] parameters)
result = gpuMomentumOfMovingAverageCalculator.Calculate(candlesSeries, parameters)
MomentumParamsSeriesKernel
private static void MomentumParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<float> circBuf, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuMomentumOfMovingAverageParams> parameters, ArrayView<int> maxLenArr)
GpuMomentumOfMovingAverageCalculator.MomentumParamsSeriesKernel(index, flatCandles, flatResults, circBuf, offsets, lengths, parameters, maxLenArr)

ILGPU kernel: Momentum of Moving Average computation for multiple series and multiple parameter sets. Sequential loop over candles to simulate the CPU circular buffer behavior exactly. Results are stored as [param][globalIdx].