Overall Statistics
class BootCampTask(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2017, 6, 1)
        self.SetEndDate(2017, 6, 15)

        #1,2. Select IWM minute resolution data and set it to Raw normalization mode

class BootCampTask(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2017, 6, 1)
        self.SetEndDate(2017, 6, 15)


        #1,2. Select IWM minute resolution data and set it to Raw normalization mode
        self.ss = self.AddEquity('IWM', Resolution.Minute)
        self.ss.SetDataNormalizationMode(DataNormalizationMode.Raw)

    def OnData(self, data):

        #3. Place an order for 100 shares of IWM and print the average fill price
        if not self.Portfolio.Invested:
            self.MarketOrder('IWM', 100)
            #4. Debug the AveragePrice of IWM
            self.Debug(str(self.Portfolio['IWM'].AveragePrice))