I have implemented this logic in Python: [login to view URL]
Need to have a peer review of the code and check for consistency and accuracy based on in sample and out of sample data. Project scope is peer review only and no coding needed.
This code Tests the predictive capacity of any prediction model, using various combinations of in sample and out of sample data using a rolling window concept. Video explains it all.