Code idea to filter out ranging markets in H4 timeframe?

janbartbergers  

Hi,

I try to filter out unfavorable conditions in my EA. Has anyone a suggestion or a code idea to filter out ranging markets in H4 timeframe?

Thanks,

JB

Fernando Carreiro  

You can only design a filter, once you have properly defined the primary strategy. Define your strategy first.

janbartbergers  
Fernando Carreiro #:

You can only design a filter, once you have properly defined the primary strategy. Define your strategy first.

Sure that is all in place. My goal is to skip buy/signals coming from my strategy that have less probability due to unfavourable market conditions, like news, ranging market, wild candle sticks, etc. We have that now for news and unstructured pattens setup but not yet for flat or ranging markets

William Roeder  
janbartbergers # My goal is to skip buy/signals coming from my strategy that have less probability

That requires knowing the future.

Sergey Golubev  
janbartbergers:

Hi,

I try to filter out unfavorable conditions in my EA. Has anyone a suggestion or a code idea to filter out ranging markets in H4 timeframe?

Thanks,

JB

There is one thread with indicators for MT4 and MT5:
Filters indicators
Reason: