GpuZlemaCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Zero Lag Exponential Moving Average (ZLEMA).
継承元: GpuIndicatorCalculatorBase<ZeroLagExponentialMovingAverage, GpuZlemaParams, GpuIndicatorResult>
コンストラクター
GpuZlemaCalculator
public GpuZlemaCalculator(Context context, Accelerator accelerator)
gpuZlemaCalculator = GpuZlemaCalculator(context, accelerator)
Initializes a new instance of the GpuZlemaCalculator class.
- context
- ILGPU context.
- accelerator
- ILGPU accelerator.
メソッド
Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuZlemaParams[] parameters)
result = gpuZlemaCalculator.Calculate(candlesSeries, parameters)
ZlemaParamsSeriesKernel
private static void ZlemaParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuZlemaParams> parameters)
GpuZlemaCalculator.ZlemaParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)
ILGPU kernel: ZLEMA computation for multiple series and parameter sets. One thread handles one (parameter, series) pair and iterates bars sequentially.