GpuRelativeVigorIndexCalculator
StockSharp.Algo.Gpu.Indicators
GPU calculator for Relative Vigor Index (RVI).
Hereda de: GpuIndicatorCalculatorBase<RelativeVigorIndex, GpuRelativeVigorIndexParams, GpuRelativeVigorIndexResult>
Constructores
GpuRelativeVigorIndexCalculator
public GpuRelativeVigorIndexCalculator(Context context, Accelerator accelerator)
gpuRelativeVigorIndexCalculator = GpuRelativeVigorIndexCalculator(context, accelerator)
Initializes a new instance of the GpuRelativeVigorIndexCalculator class.
- context
- ILGPU context.
- accelerator
- ILGPU accelerator.
Métodos
Calculate
public override GpuRelativeVigorIndexResult[][][] Calculate(GpuCandle[][] candlesSeries, GpuRelativeVigorIndexParams[] parameters)
result = gpuRelativeVigorIndexCalculator.Calculate(candlesSeries, parameters)
RelativeVigorIndexParamsSeriesKernel
private static void RelativeVigorIndexParamsSeriesKernel(Index2D index, ArrayView<GpuCandle> flatCandles, ArrayView<GpuRelativeVigorIndexResult> flatResults, ArrayView<int> offsets, ArrayView<int> lengths, ArrayView<GpuRelativeVigorIndexParams> parameters)
GpuRelativeVigorIndexCalculator.RelativeVigorIndexParamsSeriesKernel(index, flatCandles, flatResults, offsets, lengths, parameters)
ILGPU kernel: RVI computation for multiple series and multiple parameter sets.