GpuChandeKrollStopCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Chande Kroll Stop.

Inherits: GpuIndicatorCalculatorBase<ChandeKrollStop, GpuChandeKrollStopParams, GpuChandeKrollStopResult>

Constructors

GpuChandeKrollStopCalculator
public GpuChandeKrollStopCalculator(Context context, Accelerator accelerator)
gpuChandeKrollStopCalculator = GpuChandeKrollStopCalculator(context, accelerator)

Initializes a new instance of the GpuChandeKrollStopCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

Methods

Calculate
public override GpuChandeKrollStopResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuChandeKrollStopParams[] parameters)
result = gpuChandeKrollStopCalculator.Calculate(candlesSeries, parameters)
ChandeKrollStopKernel
private static void ChandeKrollStopKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuChandeKrollStopResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuChandeKrollStopParams> parameters)
GpuChandeKrollStopCalculator.ChandeKrollStopKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel to compute Chande Kroll Stop for multiple series and parameter sets.