What is a definition of a 'perfect security'? If looking to be long, a security that is going up consistently could be a definition. Higher Highs, Higher Lows, Higher Opens, and Higher Closes certainly would be a really good thing for a 'perfect security'. If looking to for a short, one may look at reversing those Highers to Lowers. Lower Highs, Lower Lows, Lower Opens, and Lower Closes.
How can you find such instances? On StockCharts.com Scan Workbench they have two Technical Indicators filters called Count Up and Count Down. You can use these to count the number of instances that something moved Up or moved Down over a user specified period of time. Pick your desired thing to count, pick the period, pick a threshold you desire and the scan will return the securities that fit that description from your Universe scanned.
The default scan language for the Count Up indicator is
and [Count Up(20, close) > 10]
This scan line is looking at the daily closing price and will return those that have a higher close in at least 11 of the last 20 days.
You can change the 20 to any period of time. You can change the close to be pretty much any appropriate term or indicator available in the drop downs. You can change the threshold to be any number you want.
You can choose, open, high, low, close. You can choose OBV or PPO or Middle Price Channel or SCTR. You can choose pretty much anything appropriate to being counted in the parameter.
You can also use it in the Rank By statement to see what is counting highest or lowest.
Rank By [Count Up(20, Upper Price Chan(20))] will sort the scan by the number of times the 20 period Upper Price Channel has moved UP in the last 20 days.
You can even combine them in your Rank by. Moving back to the question at the beginning of this post. You can
rank by [weekly Count Up(5,weekly high) + weekly Count Up(5,weekly low) + weekly Count Up(5,weekly open) + weekly Count Up(5,weekly close)] for example. So the max of the total UP of the 'perfect security' would be 20 based on 4 distinct criteria and 5 periods as the max. The rank by would tell you how close to 'perfect' the results are.
Once you get the hang of using the Count Up and Count Down, you may find it to be a valuable addition to your analysis. Although it is tough to accurately quantify, I believe it is also good with the PctRelative count as well.
There is also a Streak Up and Streak Down function that looks at an uninterrupted movement in a row. This basically like asking the Count up to be at 100% Streak Up(5, close) is essentially the same as Count Up(5,close > 4https://support.stockcharts.com/doku.php?id=scans:functions