GpuRelativeMomentumIndexParams
StockSharp.Algo.Gpu.Indicators
Parameter set for GPU Relative Momentum Index calculation.
Implements: IGpuIndicatorParams
Constructors
GpuRelativeMomentumIndexParams
public GpuRelativeMomentumIndexParams(int length, int momentumPeriod, byte priceType)
gpuRelativeMomentumIndexParams = GpuRelativeMomentumIndexParams(length, momentumPeriod, priceType)
Parameter set for GPU Relative Momentum Index calculation.
- length
- SMA length applied to momentum values.
- momentumPeriod
- Momentum period.
- priceType
- Price type to extract.
Methods
FromIndicator
public void FromIndicator(IIndicator indicator)
gpuRelativeMomentumIndexParams.FromIndicator(indicator)
Copy parameters from the given indicator instance into this params struct.
- indicator
- IIndicator
Fields
MomentumPeriod
public int MomentumPeriod
value = gpuRelativeMomentumIndexParams.MomentumPeriod
Momentum period.
PriceType
public byte PriceType
value = gpuRelativeMomentumIndexParams.PriceType
Price type to extract from candles.