import numpy as np
import pandas as pd


class MyAlgo(QCAlgorithm):

    def Initialize(self):

    self.SetCash(1000000)

    # Start and end dates for the backtest.
    self.SetStartDate(2017,7,1)
    self.SetEndDate(2017,9,1)

    self.AddEquity("SPY")
    self.AddEquity("AAPL")
    self.AddEquity("AMZN")
    self.AddEquity("UPS")
    self.AddEquity("PXD")
    self.AddEquity("MA")

In my backtest, I see a red 'x' mark on the line 5 and I got two error messages:

25 | 14:49:35:

Build Error: File: main.py Line:5 Column:0 - File "../cache/main.py", line 89, in MyAlgo

26 | 14:49:35:

Build Error: File: n/a Line:0 Column:0 - NameError: name 'd' is not defined

1). There's no line 89. I have only line 67 in MyAlgo.

2). There's no name 'd'.

Can anyone tell me what is going on here? Thanks :)

Author