Scan for highest comparative relative strength line level


I have a simple question, the answer to which I could neither find in the reference guide, online nor in the forum.

I would like to scan for stocks whose Comparative Relative Strength line is at its highest in a number of days - 250 for example. I know there must be a very simple way to do this but I’m stumped. I'm brand new at programming so any help would be greatly appreciated.

Thank you for your patience,


idx = GetBaseIndex();
rs = RelStrength(idx);

//Exploration code
Filter = rs == HHV(rs,250) AND Status("lastbarinrange");

Mr. fxshrat, an elegant solution.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.