GpuIndicatorCalculatorBase

StockSharp.Algo.Gpu

Generic base that binds GPU calculator to the specific indicator type.

Hereda de: GpuIndicatorCalculatorBase

Constructores

GpuIndicatorCalculatorBase
protected GpuIndicatorCalculatorBase(Context context, Accelerator accelerator)
gpuIndicatorCalculatorBase = GpuIndicatorCalculatorBase(context, accelerator)

Generic base that binds GPU calculator to the specific indicator type.

Propiedades

IndicatorType
public override Type IndicatorType { get; }
value = gpuIndicatorCalculatorBase.IndicatorType

IIndicator type this calculator is associated with.

ParameterType
public override Type ParameterType { get; }
value = gpuIndicatorCalculatorBase.ParameterType

IGpuIndicatorParams struct type used as parameter set for this indicator.

ResultType
public override Type ResultType { get; }
value = gpuIndicatorCalculatorBase.ResultType

GPU result struct type returned by this calculator.

Métodos

Calculate
public override IGpuIndicatorResult[][][] Calculate(GpuCandle[][] candlesSeries, IGpuIndicatorParams[] parameters)
result = gpuIndicatorCalculatorBase.Calculate(candlesSeries, parameters)

Calculate indicator for multiple series and multiple parameter sets in one GPU pass.

candlesSeries
Input candle series array. Each series can have different length.
parameters
Array of parameter sets to calculate for each series.

Devuelve: 3D array of GPU results: [series][parameter set][bar].

Calculate
public abstract TResult[][][] Calculate(GpuCandle[][] candlesSeries, TParam[] parameters)
result = gpuIndicatorCalculatorBase.Calculate(candlesSeries, parameters)

Calculate indicator for multiple series and multiple parameter sets in one GPU pass.

candlesSeries
Input candle series array. Each series can have different length.
parameters
Array of parameter sets to calculate for each series.

Devuelve: 3D array of GPU results: [series][parameter set][bar].