Overall Statistics
from QuantConnect.Data.Custom.USEnergy import *


class Slow(QCAlgorithm):
    def Initialize(self):
        self.SetStartDate(2013, 1, 1)  # Set Start Date
        self.SetCash(1000000)  # Set Strategy Cash
        
        # Universe
        self.tickerList = ["SPY","QQQ"]
        self.numTickers = len(self.tickerList)
        for i in range(self.numTickers):
            self.AddEquity(self.tickerList[i], Resolution.Daily)

        #self.inputIntoRefinery = self.AddData(USEnergy, USEnergy.Petroleum.UnitedStates.WeeklyGrossInputsIntoRefineries).Symbol
        #self.netImport = self.AddData(USEnergy, USEnergy.Petroleum.UnitedStates.WeeklyNetImportsOfCrudeOil).Symbol
        #self.stock = self.AddData(USEnergy, USEnergy.Petroleum.UnitedStates.WeeklyEndingStocksOfCrudeOil).Symbol
        
        self.SetBrokerageModel(AlphaStreamsBrokerageModel())
        

    def OnData(self, data):
        self.SetHoldings(self.tickerList[0], 0.5)