Hi everyone, I put this together while learning Pine and wanted to share to see if anyone finds it useful.
It does a decent job predicting the direction of breakouts from range conditions, as well as picking up some easy trend profits. I had some fun making it quite configurable for those who would like to tune it for a particular index (for example, check out GOOG at 1 hour resolution with the default values, just for fun).
Please let me know if you like anything about it or have suggestions!