Lean  $LEAN_TAG$
MovingAverageType.cs
1 /*
2  * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
3  * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14 */
15 
17 {
18  /// <summary>
19  /// Defines the different types of moving averages
20  /// </summary>
21  public enum MovingAverageType
22  {
23  /// <summary>
24  /// An unweighted, arithmetic mean (0)
25  /// </summary>
26  Simple,
27  /// <summary>
28  /// The standard exponential moving average, using a smoothing factor of 2/(n+1) (1)
29  /// </summary>
31  /// <summary>
32  /// An exponential moving average, using a smoothing factor of 1/n and simple moving average as seeding (2)
33  /// </summary>
34  Wilders,
35  /// <summary>
36  /// A weighted moving average type (3)
37  /// </summary>
39  /// <summary>
40  /// The double exponential moving average (4)
41  /// </summary>
43  /// <summary>
44  /// The triple exponential moving average (5)
45  /// </summary>
47  /// <summary>
48  /// The triangular moving average (6)
49  /// </summary>
50  Triangular,
51  /// <summary>
52  /// The T3 moving average (7)
53  /// </summary>
54  T3,
55  /// <summary>
56  /// The Kaufman Adaptive Moving Average (8)
57  /// </summary>
58  Kama,
59  /// <summary>
60  /// The Hull Moving Average (9)
61  /// </summary>
62  Hull,
63  /// <summary>
64  /// The Arnaud Legoux Moving Average (10)
65  /// </summary>
66  Alma
67  }
68 }