GpuPsychologicalLineCalculator

StockSharp.Algo.Gpu.Indicators

GPU calculator for Psychological Line indicator.

Inherits: GpuIndicatorCalculatorBase<PsychologicalLine, GpuPsychologicalLineParams, GpuIndicatorResult>

Constructors

GpuPsychologicalLineCalculator
public GpuPsychologicalLineCalculator(Context context, Accelerator accelerator)
gpuPsychologicalLineCalculator = GpuPsychologicalLineCalculator(context, accelerator)

Initializes a new instance of the GpuPsychologicalLineCalculator class.

context
ILGPU context.
accelerator
ILGPU accelerator.

Methods

Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuPsychologicalLineParams[] parameters)
result = gpuPsychologicalLineCalculator.Calculate(candlesSeries, parameters)
PsychologicalLineParamsSeriesKernel
private static void PsychologicalLineParamsSeriesKernel(Index3D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuPsychologicalLineParams> parameters)
GpuPsychologicalLineCalculator.PsychologicalLineParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)

ILGPU kernel: Psychological Line computation for multiple series and parameter sets. Results are stored as [param][globalIdx]. Uses the same incremental logic as the CPU indicator to match its behavior exactly.