Lean
$LEAN_TAG$
SP500SectorsETFUniverse.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
16
using
System;
17
using
System.Collections.Generic;
18
19
namespace
QuantConnect.Algorithm.Framework.Selection
20
{
21
/// <summary>
22
/// Universe Selection Model that adds the following SP500 Sectors ETFs at their inception date
23
/// 1998-12-22 XLB Materials Select Sector SPDR ETF
24
/// 1998-12-22 XLE Energy Select Sector SPDR Fund
25
/// 1998-12-22 XLF Financial Select Sector SPDR Fund
26
/// 1998-12-22 XLI Industrial Select Sector SPDR Fund
27
/// 1998-12-22 XLK Technology Select Sector SPDR Fund
28
/// 1998-12-22 XLP Consumer Staples Select Sector SPDR Fund
29
/// 1998-12-22 XLU Utilities Select Sector SPDR Fund
30
/// 1998-12-22 XLV Health Care Select Sector SPDR Fund
31
/// 1998-12-22 XLY Consumer Discretionary Select Sector SPDR Fund
32
/// </summary>
33
public
class
SP500SectorsETFUniverse
:
InceptionDateUniverseSelectionModel
34
{
35
/// <summary>
36
/// Initializes a new instance of the SP500SectorsETFUniverse class
37
/// </summary>
38
public
SP500SectorsETFUniverse
() :
39
base(
40
"qc-sp500-sectors-etf-basket"
,
41
new Dictionary<string, DateTime>()
42
{
43
{
"XLB"
,
new
DateTime(1998, 12, 22)},
44
{
"XLE"
,
new
DateTime(1998, 12, 22)},
45
{
"XLF"
,
new
DateTime(1998, 12, 22)},
46
{
"XLI"
,
new
DateTime(1998, 12, 22)},
47
{
"XLK"
,
new
DateTime(1998, 12, 22)},
48
{
"XLP"
,
new
DateTime(1998, 12, 22)},
49
{
"XLU"
,
new
DateTime(1998, 12, 22)},
50
{
"XLV"
,
new
DateTime(1998, 12, 22)},
51
{
"XLY"
,
new
DateTime(1998, 12, 22)}
52
}
53
)
54
{
55
56
}
57
}
58
}
Algorithm.Framework
Selection
SP500SectorsETFUniverse.cs
Generated by
1.8.17