I get the following error:

Runtime Error: AttributeError : 'SelectionModel' object has no attribute 'History'

The class I am using however inherits from (FundamentalUniverseSelectionModel).

The reason for this is that I am using the Course and Fine Filters. And I am also trying to implement Momentum in the Fine Filter Function along the lines shown here:

Lean/Algorithm.Python/EmaCrossUniverseSelectionAlgorithm.py

However I note that the EmaCrossUniverseSelectionAlgorithm inherits fromĀ (QCAlgorithm) and adds the Course Filter using:

self.AddUniverse(self.CoarseSelectionFunction)

Is this my mistake? Trying to access History in a class which inherits from FundamentalUniverseSelectionModel?

Author