GpuChaikinVolatilityParams
StockSharp.Algo.Gpu.Indicators
Parameter set for GPU Chaikin Volatility calculation.
构造函数
GpuChaikinVolatilityParams
public GpuChaikinVolatilityParams(int emaLength, int rocLength)
gpuChaikinVolatilityParams = GpuChaikinVolatilityParams(emaLength, rocLength)
Parameter set for GPU Chaikin Volatility calculation.
- emaLength
- Length for the EMA smoothing.
- rocLength
- Length for the ROC calculation.
方法
FromIndicator
public void FromIndicator(IIndicator indicator)
gpuChaikinVolatilityParams.FromIndicator(indicator)
Copy parameters from the given indicator instance into this params struct.
- indicator
- IIndicator
字段
EmaLength
public int EmaLength
value = gpuChaikinVolatilityParams.EmaLength
EMA window length applied to candle ranges.
RocLength
public int RocLength
value = gpuChaikinVolatilityParams.RocLength
ROC window length applied to EMA values.