GpuHullMovingAverageParams
StockSharp.Algo.Gpu.Indicators
Parameter set for GPU Hull Moving Average calculation.
构造函数
GpuHullMovingAverageParams
public GpuHullMovingAverageParams(int length, int sqrtPeriod, byte priceType)
gpuHullMovingAverageParams = GpuHullMovingAverageParams(length, sqrtPeriod, priceType)
Parameter set for GPU Hull Moving Average calculation.
- length
- Base period length for Hull Moving Average.
- sqrtPeriod
- Custom period for the final smoothing (0 uses square root of ).
- priceType
- Price type.
方法
FromIndicator
public void FromIndicator(IIndicator indicator)
gpuHullMovingAverageParams.FromIndicator(indicator)
Copy parameters from the given indicator instance into this params struct.
- indicator
- IIndicator
字段
Length
public int Length
value = gpuHullMovingAverageParams.Length
Base length used for slow/fast weighted moving averages.
PriceType
public byte PriceType
value = gpuHullMovingAverageParams.PriceType
Price type to extract from candles.
SqrtPeriod
public int SqrtPeriod
value = gpuHullMovingAverageParams.SqrtPeriod
Period for result smoothing. If zero the square root of Length is used.