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