This underperforms the benchmark btw (you'd make more if you just bought and held).

Idea behind this is taking the “gradients” of the interday and intraday closing prices, applying linear regression to predict the next days' gradients, and executing trades based on that.