GpuPrettyGoodOscillatorCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Pretty Good Oscillator (PGO).
Erbt von: GpuIndicatorCalculatorBase<PrettyGoodOscillator, GpuPrettyGoodOscillatorParams, GpuIndicatorResult>
Konstruktoren
GpuPrettyGoodOscillatorCalculator
public GpuPrettyGoodOscillatorCalculator(Context context, Accelerator accelerator)
gpuPrettyGoodOscillatorCalculator = GpuPrettyGoodOscillatorCalculator(context, accelerator)
Initializes a new instance of the GpuPrettyGoodOscillatorCalculator class.
- context
- ILGPU context.
- accelerator
- ILGPU accelerator.
Methoden
Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuPrettyGoodOscillatorParams[] parameters)
result = gpuPrettyGoodOscillatorCalculator.Calculate(candlesSeries, parameters)
PrettyGoodOscillatorParamsSeriesKernel
private static void PrettyGoodOscillatorParamsSeriesKernel(Index3D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuPrettyGoodOscillatorParams> parameters)
GpuPrettyGoodOscillatorCalculator.PrettyGoodOscillatorParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)
ILGPU kernel: PGO computation for multiple series and parameter sets. Results are stored as [param][globalIdx].