So I thought to share the method I’m using and being very satisfied with it. It is certainly not perfect, especially after a big move. But in the end it doesn’t need to be perfect to work.
The algorithm is based on the assumption that the markets always move sideways, except when they are not.
I hope it helps you.