This looks a little bit like the dual momentum system. Which statistics are you thinking of? You could try to write down some pseudo code, that mean: what would you do if you had to do it manually.