GpuBollingerBandsCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Bollinger Bands indicator.

继承自: GpuIndicatorCalculatorBase<BollingerBands, GpuBollingerBandsParams, GpuBollingerBandsResult>

构造函数

GpuBollingerBandsCalculator
public GpuBollingerBandsCalculator(Context context, Accelerator accelerator)
gpuBollingerBandsCalculator = GpuBollingerBandsCalculator(context, accelerator)

Initializes a new instance of the GpuBollingerBandsCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

方法

BollingerParamsSeriesKernel
private static void BollingerParamsSeriesKernel(Index3D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuBollingerBandsResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuBollingerBandsParams> parameters)
GpuBollingerBandsCalculator.BollingerParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel: Bollinger Bands computation for multiple series and multiple parameter sets.

Calculate
public override GpuBollingerBandsResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuBollingerBandsParams[] parameters)
result = gpuBollingerBandsCalculator.Calculate(candlesSeries, parameters)