GpuPercentagePriceOscillatorHistogramCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Percentage Price Oscillator Histogram indicator.

Наследует: GpuIndicatorCalculatorBase<PercentagePriceOscillatorHistogram, GpuPercentagePriceOscillatorHistogramParams, GpuPercentagePriceOscillatorHistogramResult>

Конструкторы

GpuPercentagePriceOscillatorHistogramCalculator
public GpuPercentagePriceOscillatorHistogramCalculator(Context context, Accelerator accelerator)
gpuPercentagePriceOscillatorHistogramCalculator = GpuPercentagePriceOscillatorHistogramCalculator(context, accelerator)

Initializes a new instance of the GpuPercentagePriceOscillatorHistogramCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

Методы

Calculate
public override GpuPercentagePriceOscillatorHistogramResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuPercentagePriceOscillatorHistogramParams[] parameters)
result = gpuPercentagePriceOscillatorHistogramCalculator.Calculate(candlesSeries, parameters)
PpoHistogramParamsSeriesKernel
private static void PpoHistogramParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuPercentagePriceOscillatorHistogramResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuPercentagePriceOscillatorHistogramParams> parameters)
GpuPercentagePriceOscillatorHistogramCalculator.PpoHistogramParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel: PPO histogram computation for multiple series and parameter sets. One thread handles one (parameter, series) pair and iterates sequentially over bars.