How to identify ranging markets in our EA?

 

Hello,

I am developing several EA's that focus on trend following and I am having serious problem detecting ranging markets. ATR by itself seems to be non-effective.

How do you guys detect ranging markets? Cheers

 

You can use ZigZag to analyze market behaviour.

My current implementation firstly spots a possible ranging zone and afterwards confirm the range one swing later. But thats my personal interpretation of ranging markets. I do not know what a ranging market is for you nor how fast you want to able to spot it.

First line shows possible ranging and second one shows ranging confirmed


 
zzuegg:

You can use ZigZag to analyze market behaviour.

My current implementation firstly spots a possible ranging zone and afterwards confirm the range one swing later. But thats my personal interpretation of ranging markets. I do not know what a ranging market is for you nor how fast you want to able to spot it.

First line shows possible ranging and second one shows ranging confirmed



Do you mean the use of this indicator? https://www.mql5.com/en/code/7796. The thing is I have built an EA that opens positions on fractal resistance/supports in the direction of the trend, but winds up losing a great deal of the winnings in ranging markets or price consolidation periods. I would like to be able to detect these zones and avoid trading them. ADX does not seem to serve for this purpose, because ranging bounces can take the ADX(14) well above 28.
 

Hey,

See that link:

It's looks awesome! but I don't know how to use it as I'm too noob...


So if you could as well it would be nice : )


https://www.mql5.com/en/code/10416

 

Crossing of ATR below it's MA might do the trick.

https://forum.mql4.com/36458

http://forex-strategies-revealed.com/advanced/30min-atr-breakout/cpage-9

Reason: