Herwith a version of the long, long thread which presented "Quality Companies in an Uptrend" on the Quantopian forum.

Quality Companies in an Uptrend

This version promised vast profit on Quantopian data and code. Needless to say translated to different code and data here on Quantconnect, the results differed. I used it to singe out companies which had taken on high levels of debt. Which provides non -recourse leverage to the investor when markets are going well. Or can do. It is the sort of technique used in private equity levereged buy outs. Not so great when the market crashes and it becomes difficult to service the debt.