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(2017, 1, 1) #Set Start Date self.SetEndDate(datetime.now() - timedelta(1)) #Set End Date self.SetCash(10000) #Set Strategy Cash # Find more symbols here: http://quantconnect.com/data self.AddEquity(stock) self.Securities[stock].FeeModel = ConstantFeeTransactionModel(1)

The code is above and it is for a BasicMovingAverages Script. It keeps getting an error. I want it to put the end time as current time I'm trying to bring this live.