Address review
This commit is contained in:
@@ -42,4 +42,8 @@ class CustomBenchmarkAlgorithm(QCAlgorithm):
|
||||
'''OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.'''
|
||||
if not self.Portfolio.Invested:
|
||||
self.SetHoldings("SPY", 1)
|
||||
self.Debug("Purchased Stock")
|
||||
self.Debug("Purchased Stock")
|
||||
|
||||
tupleResult = SymbolCache.TryGetSymbol("AAPL", None)
|
||||
if tupleResult[0]:
|
||||
raise Exception("Benchmark Symbol is not expected to be added to the Symbol cache")
|
||||
Reference in New Issue
Block a user