I have no idea how I screwed up the first Vinescript chart so bad so many times, but every time I tried there was always some small mistake that would have haunted me for the rest of the project if I had used it on the website. Seventh try is the charm.