Indicator that tracks higher highs and lower lows ON RSI

 
Does anybody know of an indicator that tracks the higher high and lower lows on the RSI not the price action? I can only find ones for the price action. Or do you know how to change the script for the price action ones to track the RSI? Thanks. 
Reason: