GpuGmmaParams
Parameter set for GPU Guppy Multiple Moving Average calculation.
コンストラクター
public GpuGmmaParams(byte priceType)
gpuGmmaParams = GpuGmmaParams(priceType)
Parameter set for GPU Guppy Multiple Moving Average calculation.
- priceType
- Price type.
プロパティ
public static ReadOnlySpan<int> DefaultLengths { get; }
value = GpuGmmaParams.DefaultLengths
Get GMMA default lengths.
メソッド
public void FromIndicator(IIndicator indicator)
gpuGmmaParams.FromIndicator(indicator)
Copy parameters from the given indicator instance into this params struct.
- indicator
- IIndicator
public int GetLength(int index)
result = gpuGmmaParams.GetLength(index)
Get configured length by index.
- index
- Moving average index.
戻り値: Configured length.
フィールド
public const int AveragesCount
value = GpuGmmaParams.AveragesCount
Number of moving averages calculated by GMMA.
public int Length0
value = gpuGmmaParams.Length0
Length of the first exponential moving average.
public int Length1
value = gpuGmmaParams.Length1
Length of the second exponential moving average.
public int Length10
value = gpuGmmaParams.Length10
Length of the eleventh exponential moving average.
public int Length11
value = gpuGmmaParams.Length11
Length of the twelfth exponential moving average.
public int Length2
value = gpuGmmaParams.Length2
Length of the third exponential moving average.
public int Length3
value = gpuGmmaParams.Length3
Length of the fourth exponential moving average.
public int Length4
value = gpuGmmaParams.Length4
Length of the fifth exponential moving average.
public int Length5
value = gpuGmmaParams.Length5
Length of the sixth exponential moving average.
public int Length6
value = gpuGmmaParams.Length6
Length of the seventh exponential moving average.
public int Length7
value = gpuGmmaParams.Length7
Length of the eighth exponential moving average.
public int Length8
value = gpuGmmaParams.Length8
Length of the ninth exponential moving average.
public int Length9
value = gpuGmmaParams.Length9
Length of the tenth exponential moving average.