I've have not checked your link in detail, but perhaps you can find some inspiration in this series of post by Kris Longmore

https://robotwealth.com/machine-learning-financial-prediction-david-aronson/