GpuPercentagePriceOscillatorSignalCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Percentage Price Oscillator with signal line.
Inherits: GpuIndicatorCalculatorBase<PercentagePriceOscillatorSignal, GpuPercentagePriceOscillatorSignalParams, GpuPercentagePriceOscillatorSignalResult>
Constructors
GpuPercentagePriceOscillatorSignalCalculator
public GpuPercentagePriceOscillatorSignalCalculator(Context context, Accelerator accelerator)
gpuPercentagePriceOscillatorSignalCalculator = GpuPercentagePriceOscillatorSignalCalculator(context, accelerator)
Initializes a new instance of the GpuPercentagePriceOscillatorSignalCalculator class.
- context
- ILGPU context.
- accelerator
- ILGPU accelerator.
Methods
Calculate
public override GpuPercentagePriceOscillatorSignalResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuPercentagePriceOscillatorSignalParams[] parameters)
result = gpuPercentagePriceOscillatorSignalCalculator.Calculate(candlesSeries, parameters)
PercentagePriceOscillatorSignalParamsSeriesKernel
private static void PercentagePriceOscillatorSignalParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuPercentagePriceOscillatorSignalResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuPercentagePriceOscillatorSignalParams> parameters)
GpuPercentagePriceOscillatorSignalCalculator.PercentagePriceOscillatorSignalParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)
ILGPU kernel: PPO with signal computation for multiple series and parameter sets. One thread handles one (parameter, series) pair and iterates bars sequentially.