A request was made to make this script into a mult-time frame version. :)
I'm not fond of the outcome using a really high time frame like the 1 Day when you're looking at a 5 minute intraday chart, but I think it looks pretty decent on something like a 5 min chart with 1 hour higher time frame.