I thought I was pretty good at think-or-swim programming already, but I just had to say, beyond this being just a cool indicator, this thinkscript alone taught me 2 new things: how to auto-plot trend lines and how to add tooltips / hints to think or swim study inputs. So I wanted to say thanks!