GpuSchaffTrendCycleCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Schaff Trend Cycle (STC).

Erbt von: GpuIndicatorCalculatorBase<SchaffTrendCycle, GpuSchaffTrendCycleParams, GpuIndicatorResult>

Konstruktoren

GpuSchaffTrendCycleCalculator
public GpuSchaffTrendCycleCalculator(Context context, Accelerator accelerator)
gpuSchaffTrendCycleCalculator = GpuSchaffTrendCycleCalculator(context, accelerator)

Initializes a new instance of the GpuSchaffTrendCycleCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

Methoden

Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuSchaffTrendCycleParams[] parameters)
result = gpuSchaffTrendCycleCalculator.Calculate(candlesSeries, parameters)
SchaffTrendCycleKernel
private static void SchaffTrendCycleKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<float> normHistory, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuSchaffTrendCycleParams> parameters)
GpuSchaffTrendCycleCalculator.SchaffTrendCycleKernel(index, flatCandles, flatResults, normHistory, offsets, lengths, parameters)

ILGPU kernel computing Schaff Trend Cycle for multiple series and parameter sets.