Added tags to python algorithms
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# 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");
|
||||
#
|
||||
# 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.
|
||||
@@ -22,19 +22,23 @@ from QuantConnect.Algorithm import *
|
||||
from QuantConnect.Data import *
|
||||
from datetime import timedelta
|
||||
|
||||
|
||||
### <summary>
|
||||
### Demonstration of the Scheduled Events features available in QuantConnect.
|
||||
### </summary>
|
||||
### <meta name="tag" content="scheduled events" />
|
||||
### <meta name="tag" content="date rules" />
|
||||
### <meta name="tag" content="time rules" />
|
||||
class ScheduledEventsAlgorithm(QCAlgorithm):
|
||||
'''QCU Scheduled Events Algorithm'''
|
||||
|
||||
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.'''
|
||||
|
||||
|
||||
self.SetStartDate(2013,10,07) #Set Start Date
|
||||
self.SetEndDate(2013,10,11) #Set End Date
|
||||
self.SetCash(100000) #Set Strategy Cash
|
||||
# Find more symbols here: http://quantconnect.com/data
|
||||
self.AddEquity("SPY")
|
||||
|
||||
|
||||
# events are scheduled using date and time rules
|
||||
# date rules specify on what dates and event will fire
|
||||
# time rules specify at what time on thos dates the event will fire
|
||||
|
||||
Reference in New Issue
Block a user