In all my time developing systems for the Financial Markets I saw a lot of people complain about having difficulties detecting sideways markets programmatically. 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