GpuMovingAverageCrossoverParams

StockSharp.Algo.Gpu.Indicators

Parameter set for GPU Moving Average Crossover calculation.

Implementa: IGpuIndicatorParams

Construtores

GpuMovingAverageCrossoverParams
public GpuMovingAverageCrossoverParams(int shortLength, int longLength, byte priceType)
gpuMovingAverageCrossoverParams = GpuMovingAverageCrossoverParams(shortLength, longLength, priceType)

Parameter set for GPU Moving Average Crossover calculation.

shortLength
Fast moving average length.
longLength
Slow moving average length.
priceType
Price type.

Métodos

FromIndicator
public void FromIndicator(IIndicator indicator)
gpuMovingAverageCrossoverParams.FromIndicator(indicator)

Copy parameters from the given indicator instance into this params struct.

indicator
IIndicator

Campos

LongLength
public int LongLength
value = gpuMovingAverageCrossoverParams.LongLength

Slow moving average length.

PriceType
public byte PriceType
value = gpuMovingAverageCrossoverParams.PriceType

Price type to extract from candles.

ShortLength
public int ShortLength
value = gpuMovingAverageCrossoverParams.ShortLength

Fast moving average length.