GpuWeightedClosePriceCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Weighted Close Price indicator.
継承元: GpuIndicatorCalculatorBase<WeightedClosePrice, GpuWeightedClosePriceParams, GpuIndicatorResult>
コンストラクター
GpuWeightedClosePriceCalculator
public GpuWeightedClosePriceCalculator(Context context, Accelerator accelerator)
gpuWeightedClosePriceCalculator = GpuWeightedClosePriceCalculator(context, accelerator)
Initializes a new instance of the GpuWeightedClosePriceCalculator class.
- context
- ILGPU context.
- accelerator
- ILGPU accelerator.
メソッド
Calculate
public override GpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuWeightedClosePriceParams[] parameters)
result = gpuWeightedClosePriceCalculator.Calculate(candlesSeries, parameters)
WeightedCloseParamsSeriesKernel
private static void WeightedCloseParamsSeriesKernel(Index3D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuIndicatorResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuWeightedClosePriceParams> parameters)
GpuWeightedClosePriceCalculator.WeightedCloseParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)
ILGPU kernel computing Weighted Close Price for multiple series and parameter sets.