GpuEnvelopeParams
StockSharp.Algo.Gpu.Indicators
Parameter set for GPU Envelope calculation.
Implementa: IGpuIndicatorParams
Constructores
GpuEnvelopeParams
public GpuEnvelopeParams(int length, float shift, byte priceType)
gpuEnvelopeParams = GpuEnvelopeParams(length, shift, priceType)
Parameter set for GPU Envelope calculation.
- length
- Moving average length used for the middle line.
- shift
- Shift coefficient expressed as fraction (e.g. 0.01 = 1%).
- priceType
- Price type.
Métodos
FromIndicator
public void FromIndicator(IIndicator indicator)
gpuEnvelopeParams.FromIndicator(indicator)
Copy parameters from the given indicator instance into this params struct.
- indicator
- IIndicator
Campos
Length
public int Length
value = gpuEnvelopeParams.Length
Window length for the middle moving average.
PriceType
public byte PriceType
value = gpuEnvelopeParams.PriceType
Price type to extract from candles.
Shift
public float Shift
value = gpuEnvelopeParams.Shift
Shift coefficient (0..1) applied to the middle line.