Whenever I try to live trade using QuantConnect paper trading, I get this error which I have attached to this discussion. I am very new to QuantConnect and was wondering if this error meant anything.
class SSOMarketETF(QCAlgorithm):
def Initialize(self):
self.SetBrokerageModel(BrokerageName.Default, AccountType.Cash)
self.SetStartDate(2009, 7, 1)
self.SetCash(100000)
self.upro = self.AddEquity("UPRO", Resolution.Hour)
self.upro.SetLeverage(1.0)
self.uproslowsma = self.SMA("UPRO", 50, Resolution.Hour)
self.uprofastsma = self.SMA("UPRO", 13, Resolution.Hour)
self.SetWarmup(50)
self.SetBenchmark("SPY")
def OnData(self, data):
if self.uproslowsma.IsReady:
if (self.uprofastsma > self.uproslowsma):
if not self.Portfolio["UPRO"].Invested:
self.SetHoldings("UPRO", .99)
elif (self.uprofastsma < self.uproslowsma):
self.SetHoldings("UPRO", 0)