How to detect a whipsaw and sideways trend

 

Hey there,

I'm having a hard time with one of my strategies, it works perfectly but once a whipsaw or sideways trend appears it performs extremely bad. Here is an example:

I work with different indicator crossovers to initiate a market entry or exit, but once this whipsaw pattern appears everything is thrown into chaos. I need to detect this and program the EA to stop until good market conditions are available again.

Any idea how I can do this?

If not possible then it is ok, I'm not sure this can be done.

Thanks!

 

S

> whipsaw pattern... I need to detect this...

IMHO - This is the hardest thing to do, particularly as a pure trend only happens for such a small part of market time...

Look at these

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

http://forex.eazel.com/2006/05/31/vhf-indicator/

https://docs.mql4.com/indicators/iADX

You also might want to use the ATR as an additional filter to see if there might be follow through...

FWIW
-BB-

 
Thanks BarrowBoy, yes I know this is extremely hard that is why I came here for help hehehe
 
Actually the big problem is that on a whipsaw the EA orders happen on the opposite side of the peak, if it should be a sell it is a buy, that is the big problem, I need to detect this.
 
how about limit trades? so whenever whipsaw occurs you get no bad over trade?
 
Ricx, this is an EA that I'm working on, the problem is I need to detect the whipsaw with mathematics, or some kind of indicator. And I'm not sure how to do that. If I can do that I can just tell the EA not to trade
 
The VHF looks interesting will test it
 

Tater what on earth? Who are you??

I'm not stealing anybodies EA I'm busy learning MQL4 en programming my own, you are confusing me with someone else here

Reason: