GpuPercentagePriceOscillatorHistogramCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Percentage Price Oscillator Histogram indicator.
Herda de: GpuIndicatorCalculatorBase<PercentagePriceOscillatorHistogram, GpuPercentagePriceOscillatorHistogramParams, GpuPercentagePriceOscillatorHistogramResult>
Construtores
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.
Métodos
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.