/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace QuantConnect.Securities { /// /// Static class contains definitions of popular futures expiration cycles /// public static class FutureExpirationCycles { /// /// January Cycle: Expirations in January, April, July, October (the first month of each quarter) /// public static readonly int[] January = { 1, 4, 7, 10 }; /// /// February Cycle: Expirations in February, May, August, November (second month) /// public static readonly int[] February = { 2, 5, 8, 11 }; /// /// March Cycle: Expirations in March, June, September, December (third month) /// public static readonly int[] March = { 3, 6, 9, 12 }; /// /// December Cycle: Expirations in December /// public static readonly int[] December = { 12 }; /// /// All Year Cycle: Expirations in every month of the year /// public static readonly int[] AllYear = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }; /// /// GJMQVZ Cycle /// public static readonly int[] GJMQVZ = { 2, 4, 6, 8, 10, 12 }; /// /// GJKMNQVZ Cycle /// public static readonly int[] GJKMNQVZ = { 2, 4, 5, 6, 7, 8, 10, 12 }; /// /// HMUZ Cycle /// public static readonly int[] HMUZ = March; /// /// HKNUZ Cycle /// public static readonly int[] HKNUZ = { 3, 5, 7, 9, 12 }; /// /// HKNV Cycle /// public static readonly int[] HKNV = { 3, 5, 7, 10 }; /// /// HKNVZ Cycle /// public static readonly int[] HKNVZ = { 3, 5, 7, 10, 12 }; /// /// FHKNUX Cycle /// public static readonly int[] FHKNUX = { 1, 3, 5, 7, 9, 11 }; /// /// FHJKQUVX Cycle /// public static readonly int[] FHJKQUVX = { 1, 3, 4, 5, 8, 9, 10, 11 }; /// /// HKNUVZ Cycle /// public static readonly int[] HKNUVZ = { 3, 5, 7, 9, 10, 12 }; /// /// FHKNQUVZ Cycle /// public static readonly int[] FHKNUVZ = { 1, 3, 5, 7, 9, 10, 12 }; /// /// FHKMQUVZ Cycle /// public static readonly int[] FHKNQUVZ = { 1, 3, 5, 7, 8, 9, 10, 12 }; /// /// FHKNQUX Cycle /// public static readonly int[] FHKNQUX = { 1, 3, 5, 7, 8, 9, 11 }; /// /// FGHJKMNQUVXZ Cycle /// public static readonly int[] FGHJKMNQUVXZ = AllYear; } }