Say I want to trade only the top 10 holdings of QQQ.  Can this be done via a Coarse/Fine universal selection?

Anyone have an example of this?


I would be envisioning something like the following, but specific to an ETF rather than a sector.


    def Coarse(self, coarse):
       if self.Time.month == self.lastMonth:
           return Universe.Unchanged
       self.lastMonth = self.Time.month
       
       allCoarse = [x for x in coarse if x.HasFundamentalData and x.Price > 1 and x.Volume > 1]
       finalCoarse = sorted(allCoarse, key = lambda x: x.DollarVolume, reverse = True)
       
       return [x.Symbol for x in finalCoarse][:1]
   
   def Fine(self, fine):
       
       filteredSymbols = []
       sortedBySector = [x for x in fine]
       for code, g in groupby(sortedBySector, lambda x: x.AssetClassification.MorningstarSectorCode):
           for x in sorted(g, key = lambda x: x.ValuationRatios.PERatio, reverse = True)[:1]:
               filteredSymbols.append(x.Symbol)
           
       return filteredSymbols[:10]