The way I discovered this algorithm was initially I wanted to buy the previous day's best performing sector ETF, with a hypothesis that the momentum would continue. But I learned that it actually ended up losing money.
So I decided to inverse the algorithm. There are still a few optimizations I can test out, e.g. Buying the previous day's worst performing sector.