In all my time developing systems for the Financial Markets I found a lot of people complain about having difficulties detecting sideways markets programmatically.

So I thought to share the method I am using and being really satisfied with it. It's certainly not ideal, especially. However, in the long run it doesn't have to be ideal to do the job.

The algorithm is based on the premise that the markets constantly move sideways, except when they aren't.

I hope it will help you.

https://forexintuitive.com/forex-tra...shell-sam.html
https://forexintuitive.com/forex-tra...ing-diary.html

https://forexintuitive.com/attachmen...8748266617.mq4