Warad Kabade has kindly posted a demo algorithm 12044 here.

1. How to correctly replace in this algorithm a simple momentum 

                self.roc = RateOfChange (252) 

with a delay momentum 

                self.rocd = IndicatorExtensions.Of(Delay(21), RateOfChange (252))

2. How to correctly get the top 5 by momentum in MyCoarse?

Author