Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (74 sloc) 2.47 KB
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.</p>
<div class="row home-steps">
<div class="col-xs-3"><span>1</span>
<p>Research Your Strategy</p>
<div class="col-xs-3"><span>2</span>
<p>Code in Multiple Languages</p>
<div class="col-xs-3"><span>3</span>
<p>Backtest On Free Intraday Data</p>
<div class="col-xs-3"><span>4</span>
<p>Deploy to Colocated Servers</p>
<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 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.'''
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'''
.home-steps {
margin-top: 50px; margin-bottom: 50px;
.home-steps:not(:hover) > div:first-child > span,
.home-steps > div:hover > span {
background-color: #f5ae29;
.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: #747f8e;
font-family: Norpeth-Bold, Helvetica, Arial, sans-serif;