I'm writing my own first algo on the platform. I am having trouble subscribing. # Subscribe and set our expiry filter for the futures chain

future5yrNote = self.AddFuture(Futures.Financials.Y5TreasuryNote)

future10yrNote = self.AddFuture(Futures.Financials.Y10TreasuryNote)

# Set our expiry filter to return all contracts expiring within 90 days

self.future5yrNote.SetFilter(0,90)

self.future10yrNote.SetFilter(0,90)

# Data resolution

self.UniverseSettings.Resolution = Resolution.Tick During the algorithm initialization, the following exception has occurred: AttributeError : 'FYNcurveSpread' object has no attribute 'future5yrNote'

at Initialize in main.py:line 26

AttributeError : 'FYNcurveSpread' object has no attribute 'future5yrNote'Seems easy, just can't find the attribute name for that futures chain.?

Author