GpuDetrendedSyntheticPriceCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Detrended Synthetic Price indicator.

Inherits: GpuIndicatorCalculatorBase<DetrendedSyntheticPrice, GpuDetrendedSyntheticPriceParams, GpuIndicatorResult>

Constructors

GpuDetrendedSyntheticPriceCalculator
public GpuDetrendedSyntheticPriceCalculator(Context context, Accelerator accelerator)
gpuDetrendedSyntheticPriceCalculator = GpuDetrendedSyntheticPriceCalculator(context, accelerator)

Initializes a new instance of the GpuDetrendedSyntheticPriceCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

Methods

Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuDetrendedSyntheticPriceParams[] parameters)
result = gpuDetrendedSyntheticPriceCalculator.Calculate(candlesSeries, parameters)
DetrendedSyntheticPriceParamsSeriesKernel
private static void DetrendedSyntheticPriceParamsSeriesKernel(Index3D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuDetrendedSyntheticPriceParams> parameters)
GpuDetrendedSyntheticPriceCalculator.DetrendedSyntheticPriceParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel for DSP computation supporting multiple series and parameter sets.