i see Quantconnect has a QC500 example,but it is a class type like this:

https://github.com/QuantConnect/Lean/blob/master/Algorithm.Framework/Selection/QC500UniverseSelectionModel.py

i want to chage it to QC1500,but how can i use this code in my algorithm? I copy the code ,and use it in initialize:

self.SetUniverseSelection(QC500UniverseSelectionModel)

 

but it show mistake: need the argument algorithm in "def SelectCoarse(self, algorithm, coarse):"

but if i use the class like this:

A=QC500UniverseSelectionModel

A.SelectCoarse(myalgorithmname,coarse)

if show mistake: the coarse is not defined

 

so ,anyone can help me and tell me how to use the class QC500UniverseSelectionModel(FundamentalUniverseSelectionModel):

 

thanks!

Author