GpuBollingerBandsCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Bollinger Bands indicator.
Hereda de: GpuIndicatorCalculatorBase<BollingerBands, GpuBollingerBandsParams, GpuBollingerBandsResult>
Constructores
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.
Métodos
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)