forked from QuantConnect/Documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
02 Try QuantConnect Now.html
241 lines (212 loc) · 8.74 KB
/
02 Try QuantConnect Now.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<p>
QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and
execution. Data is piped into your strategy via event handlers, upon which you can place trades. We provide basic portfolio management and fill modelling underneath the hood automatically. This is provided by the QCAlgorithm base class.</p>
<div class="row home-steps">
<div class="col-xs-3"> <img src="https://cdn.quantconnect.com/web/i/docs/home/docs_design_test_icon_rev0.svg" width="25px">
<p>Design and Test Your Strategy</p>
</div>
<div class="col-xs-3"> <img src="https://cdn.quantconnect.com/web/i/docs/home/docs_deploy_icon_rev0.svg" width="35px">
<p>Deploy it to Your Live Brokerage</p>
</div>
<div class="col-xs-3"> <img src="https://cdn.quantconnect.com/web/i/docs/home/docs_code_icon_rev0.svg" width="35px">
<p>Code in Multiple Languages</p>
</div>
<div class="col-xs-3"> <img src="https://cdn.quantconnect.com/web/i/docs/home/docs_harness_icon_rev0.svg" width="35px">
<p>Harness Our Cluster of Servers</p>
</div>
</div>
<div class="section-example-container">
<pre class="csharp">
public class BasicTemplateAlgorithm : QCAlgorithm
{
public override void Initialize()
{
// Setup algorithm requirements: cash, dates and securities.
// Initialize is called once at the start of the algorithm.
}
public override void OnData(Slice data) {
// Data requested is then piped into event handlers like this one.
}
}
</pre>
<pre class="python">class BasicTemplateAlgorithm(QCAlgorithm):
def Initialize(self):
'''Initialise the data and resolution required, as well as the
cash and start-end dates for your algorithm. All algorithms must initialized.'''
pass
def OnData(self, data):
'''OnData event is the primary entry point for your algorithm. Each new data
point will be pumped in here. data is a Slice object keyed by symbol containing
the stock data'''
pass
</pre>
</div>
<!--<div class="accordion md-accordion" role="tablist" aria-multiselectable="true">-->
<!-- <div class="card">-->
<!-- <div class="card-header card-doc-main-header">-->
<!-- How to get started-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="card">-->
<!-- <div class="card-header " role="tab" id="headingOne1">-->
<!-- <a data-toggle="collapse" href="#collapseOne1" aria-expanded="false"-->
<!-- aria-controls="collapseOne1" class="panel-title">-->
<!-- <h5 class="mb-0 " >-->
<!-- QuantConnect's LEAN Engine 1-->
<!-- </h5>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div id="collapseOne1" class="collapse" role="tabpanel" aria-labelledby="headingOne1"-->
<!-- >-->
<!-- <div class="card-body">-->
<!-- QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and execution. Data is piped into your strategy for you to analyze and place trades. We provide portfolio management features and fill modelling underneath the hood automatically. This is provided by QCAlgorithm base class.-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="card">-->
<!-- <div class="card-header" role="tab" id="headingTwo2">-->
<!-- <a class="collapsed panel-title" data-toggle="collapse" href="#collapseTwo2"-->
<!-- aria-expanded="false" aria-controls="collapseTwo2" >-->
<!-- <h5 class="mb-0">-->
<!-- QuantConnect's LEAN Engine 2-->
<!-- </h5>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div id="collapseTwo2" class="collapse" role="tabpanel" aria-labelledby="headingTwo2"-->
<!-- >-->
<!-- <div class="card-body">-->
<!-- QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and execution. Data is piped into your strategy for you to analyze and place trades. We provide portfolio management features and fill modelling underneath the hood automatically. This is provided by QCAlgorithm base class.-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="card">-->
<!-- <div class="card-header" role="tab" id="headingThree3">-->
<!-- <a class="collapsed panel-title" data-toggle="collapse" href="#collapseThree3"-->
<!-- aria-expanded="false" aria-controls="collapseThree3" >-->
<!-- <h5 class="mb-0">-->
<!-- QuantConnect's LEAN Engine 3-->
<!-- </h5>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div id="collapseThree3" class="collapse" role="tabpanel" aria-labelledby="headingThree3"-->
<!-- >-->
<!-- <div class="card-body">-->
<!-- QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and execution. Data is piped into your strategy for you to analyze and place trades. We provide portfolio management features and fill modelling underneath the hood automatically. This is provided by QCAlgorithm base class.-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="card">-->
<!-- <div class="card-header" role="tab" id="headingTwo2">-->
<!-- <a class="collapsed panel-title" data-toggle="collapse" href="#collapseTwo4"-->
<!-- aria-expanded="false" aria-controls="collapseTwo4" >-->
<!-- <h5 class="mb-0">-->
<!-- QuantConnect's LEAN Engine 4-->
<!-- </h5>-->
<!-- </a>-->
<!-- </div>-->
<!-- <div id="collapseTwo4" class="collapse" role="tabpanel" aria-labelledby="headingTwo4"-->
<!-- >-->
<!-- <div class="card-body">-->
<!-- QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and execution. Data is piped into your strategy for you to analyze and place trades. We provide portfolio management features and fill modelling underneath the hood automatically. This is provided by QCAlgorithm base class.-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<!--<div class="important-information">-->
<!-- <table>-->
<!-- <tr>-->
<!-- <td>-->
<!-- <img src="https://p1.hiclipart.com/preview/623/575/819/metrostation-information-symbol-png-clipart.jpg" width="25px" height="25px"/>-->
<!-- </td>-->
<!-- <td>-->
<!-- <div class="important-information-title">Important information</div>-->
<!-- </td>-->
<!-- </tr>-->
<!-- <tr>-->
<!-- <td></td>-->
<!-- <td>-->
<!-- <div class="important-information-subtitle">QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and execution.QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and execution.QuantConnect's LEAN engine manages your portfolio and data feeds letting you focus on your algorithm strategy and execution.</div>-->
<!-- </td>-->
<!-- </tr>-->
<!-- </table>-->
<!--</div>-->
<style>
.home-steps {
margin-top: 50px;
margin-bottom: 50px;
}
.home-steps:not(:hover) > div:first-child > span,
background-color: #f5ae29;
.home-steps > div:hover > span {
}
.home-steps:not(:hover) > div:first-child > p,
.home-steps > div:hover > p {
color: #26262a;
}
.home-steps > div > span {
background-color: #d1d5d8;
font-size: 20px;
width: 30px;
height: 30px;
line-height: 28px;
display: block;
text-align: center;
border-radius: 15px;
color: #fff;
font-family: Norpeth-Bold, Helvetica, Arial, sans-serif;
}
.home-steps > div > p {
margin-top: 10px;
text-align: left;
font-size: 20px;
line-height: 25px;
color: #313131 !important;
font-family: Norpeth-Bold, Helvetica, Arial, sans-serif;
}
.card-header {
background-color: white !important;
}
.card-header:hover{
background-color: lightgray !important;
}
.important-information {
background-color: #F0F9E4;
padding: 40px 30px 40px 30px;
margin-top: 30px;
}
.important-information-logo {
float: left;
padding: 20px;
}
.important-information-title {
font-weight: bold;
margin-left: 20px;
}
.important-information-subtitle {
margin-left: 20px;
}
.card-doc-main-header {
font-weight: bold;
font-size: 1.7rem;
}
.card-header {
padding: 20px 30px 20px 30px;
}
.panel-title, .panel-title:hover {
position: right;
color: black;
text-decoration: none;
}
.panel-title::after {
content: "\f107";
color: #333;
right: 15px;
position: absolute;
font-family: "FontAwesome";
top: 18px;
}
.panel-title[aria-expanded="true"]::after {
content: "\f106";
}
</style>
<hr>