Alert with streams comparing average of 10mins to the same 10mins a day before

There are a few ideas here and there but I cannot find a definite answer (or something that is working for me anyway).
I want to have an alert that compares the average of the last X minutes, compares it to the average of X minutes a day before (or some hours before but NOT exactly the most recent) and trigger an alert if the current average is higher than the past for more than 1 minute.
And if it is possible I want to do this with streams and not batches.

Just to add also that I don’t care about the “starting point” of the alerts. So, I don’t mind the alerts to start 24 hours after I enabled them. (this is because I saw this: https://github.com/influxdata/chronograf/issues/2759

Any ideas, please?