I am not a professional. There might be some problems in the code. Since deepvue and market smith is too expensive for a newbie. I try to recreate something similar.

Explanation: 
-Check 12 months, 6 months, 3 months and 1 month Rate of change 
-Different months have different weighting. 0.2 for 12,6,3 months, and 0.4 for 1 months rate of change.

-sort the weighted roc in ascending order. Then put symbols in a list. RS rating is simply calculated by (the index in list)/ (size of list).

-sort the list again in descending order. 
-if you want to get stocks within top 15% rs rating . set self.topXPercent to 0.15. Get the number of stocks at 15% by 0.15 * number of all stocks. Then use a for loop and a counter to control the number of output.

Deepvue AS rating explanation: 

I hope I did not get it wrong. AS is just roc without weighting. RS is roc with different weighting.