Credit to Lazy Bear for the original script and Constance Brown for the indicator. Added horizontals to better compare heights of peaks and minor format changes.
@SisterMoon, another way of looking at RSI and perhaps a more reliable divergence mechanism. I'm going to use it for a while and see if it adds value over the RSI alone. Here's the article I read on it. aeroinvest.com/derivative.pdf