Hello,

I just started using QuantConnect and I'm try to grab the current price using the code below to determine if it is above a MA but I keep getting this error saying:

 KeyError : 'the label [EURUSD] is not in the [index]'

        self.symbol = "EURUSD"

        eurusd_slices = self.History([self.symbol], 1) # multi-index dataframe

        eurusd_bars = eurusd_slices.loc[self.symbol] # single index dataframe
        eurusd_close = eurusd_bars["close"] # use lowercase
        self.lastClose = eurusd_close.tail(1)

I'm using code from another strategy to get the previous day closing price.

Thanks,

Author