This pine script stopped working about 2 weeks ago or longer. I assume its when the language was upgraded to V4 or something along those lines. The code is below.
<