Skip to content

Commit 97492b3

Browse files
authored
Update main.py
1 parent 1036e9e commit 97492b3

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

main.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
class AlertMagentaAlligator(QCAlgorithm):
22

33
def Initialize(self):
4-
self.SetStartDate(2020, 11, 20) # Set Start Date
5-
self.SetCash(100000) # Set Strategy Cash
6-
# self.AddEquity("SPY", Resolution.Minute)
7-
4+
self.SetStartDate(2020, 11, 20)
5+
self.SetCash(100000)
6+
self.AddEquity('SBUX', Resolution.Minute)
7+
self.AddEquity('TSLA', Resolution.Minute)
8+
self.AddEquity('BAC', Resolution.Minute)
89

910
def OnData(self, data):
10-
'''OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
11-
Arguments:
12-
data: Slice object keyed by symbol containing the stock data
13-
'''
14-
15-
# if not self.Portfolio.Invested:
16-
# self.SetHoldings("SPY", 1)
17-
11+
if not self.Portfolio.Invested:
12+
self.SetHoldings('SBUX', 0.30)
13+
self.SetHoldings('TSLA', 0.30)
14+
self.SetHoldings('BAC', 0.30)

0 commit comments

Comments
 (0)