I used the history() data frame to move this over to minute data. I tested it against the daily results and the two are different but history() is back filled so there is a window where they don't have the same data.
The one I ran on daily data also runs on minute data, the results are close when going from one to the other.