GpuMacdParams

StockSharp.Algo.Gpu.Indicators

Parameter set for GPU MACD calculation.

实现: IGpuIndicatorParams

构造函数

GpuMacdParams
public GpuMacdParams(int longLength, int shortLength, byte priceType)
gpuMacdParams = GpuMacdParams(longLength, shortLength, priceType)

Parameter set for GPU MACD calculation.

longLength
Long EMA length.
shortLength
Short EMA length.
priceType
Price type to extract from candles.

方法

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

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

indicator
IIndicator

字段

LongLength
public int LongLength
value = gpuMacdParams.LongLength

Long EMA length.

PriceType
public byte PriceType
value = gpuMacdParams.PriceType

Price type to extract from candles.

ShortLength
public int ShortLength
value = gpuMacdParams.ShortLength

Short EMA length.