Lean  $LEAN_TAG$
RenkoType.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  /// The type of the RenkoBar being created.
20  /// Used by RenkoConsolidator, ClassicRenkoConsolidator and VolumeRenkoConsolidator
21  /// </summary>
22  /// <remarks>Classic implementation was not entirely accurate for Renko consolidator
23  /// so we have replaced it with a new implementation and maintain the classic
24  /// for backwards compatibility and comparison.</remarks>
25  public enum RenkoType
26  {
27  /// <summary>
28  /// Indicates that the RenkoConsolidator works in its
29  /// original implementation; Specifically:
30  /// - It only returns a single bar, at most, irrespective of tick movement
31  /// - It will emit consecutive bars side by side
32  /// - By default even bars are created
33  /// (0)
34  /// </summary>
35  /// <remarks>the Classic mode has only been retained for
36  /// backwards compatibility with existing code.</remarks>
37  Classic,
38 
39  /// <summary>
40  /// Indicates that the RenkoConsolidator works properly;
41  /// Specifically:
42  /// - returns zero or more bars per tick, as appropriate.
43  /// - Will not emit consecutive bars side by side
44  /// - Creates
45  /// (1)
46  /// </summary>
47  Wicked
48  }
49 }