GpuMacdHistogramParams

StockSharp.Algo.Gpu.Indicators

Parameter set for GPU MACD histogram calculation.

实现: IGpuIndicatorParams

构造函数

GpuMacdHistogramParams
public GpuMacdHistogramParams(int longLength, int shortLength, int signalLength, byte priceType)
gpuMacdHistogramParams = GpuMacdHistogramParams(longLength, shortLength, signalLength, priceType)

Parameter set for GPU MACD histogram calculation.

longLength
Long EMA length.
shortLength
Short EMA length.
signalLength
Signal EMA length.
priceType
Price type.

方法

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

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

indicator
IIndicator

字段

LongLength
public int LongLength
value = gpuMacdHistogramParams.LongLength

Long EMA length.

PriceType
public byte PriceType
value = gpuMacdHistogramParams.PriceType

Price type to extract from candles.

ShortLength
public int ShortLength
value = gpuMacdHistogramParams.ShortLength

Short EMA length.

SignalLength
public int SignalLength
value = gpuMacdHistogramParams.SignalLength

Signal EMA length.