Of course, I did not use Hurst exponent itself for the entry/exit signals but I rather used a very simple approach. The EA counts the bars that follow previous bars’ direction and those that do not follow. If first win — the current price changes are persistent, if second — the price movement is not persistent. Once we know whether we have persistence or
When I coded this EA, I have decided not to optimize it at all. Just used some
Backtest and Timeframes
The released EA is called PersistentAnti and you can read a lot of detail about it on its main page. Here, I will try to shed some more light on its backtests and why do I recommend using it on EUR/USD weekly chart.
Here are original results without reversing the trading orders’ directions:
And here is the result of using exactly the same settings but with a reverse on:
The difference is obvious. Yes, there were only 33 trades during the period and the profit is quite low, but it seems like plausible trading idea.
Now, why do not we go to daily timeframe for even more trades and, presumably, more profit? First, let us do it with the reverse turned on as it had resulted in better outcome for weekly chart:
Obviously, it does not work on daily chart as well as it did on weekly. Perhaps switching the entry directions would help it. Here are the EUR/USD @ D1 results for this EA without reverse:
Now, we see some profit here. That is 243 trades and profit comparable to that received on weekly timeframe with reverse. The drawbacks — huge drawdown and the overall shape of the balance curve.
What if we try going down to H4 timeframe? Here is the resulting profit chart for
Now we have 1,428 trades but some very serious loss. Will such a big loss mean an equally high profit when we invert the EA’s trade directions? Behold:
It is a loss! Not as big as before, but still a loss. Why? Because of a spread. With more than thousand deals, we have to pay our broker handsomely in form of spread. With 2 pip spread on EUR/USD, 1,428 trades transform into $2,856 loss (considering 0.1 standard lot positions), which we have to overcome to reach the breakeven point. Since this expert advisor’s edge is not too sharp, it cannot tolerate such losses solely due to the spread.
I decided not to test it on even lower timeframes as, obviously, there will be even more trades and even bigger
Other Currency Pairs
Why EUR/USD? Because it yielded the best results on W1 chart. It was 20% gain vs. 10% drawdown for EUR/USD, while other pairs that I have tried showed the following results:
- USD/JPY — 9% profit and 12% drawdown with reverse.
- EUR/JPY — 4% vs. 15%, reverse.
- GBP/JPY — 10% vs. 10%, reverse.
- GBP/USD — 10% vs. 8%, no reverse.
- AUD/USD — 15% vs. 4%, reverse.
- USD/CAD — 10% vs. 3%, reverse.
- USD/CHF — 8% vs. 12%, no reverse.
- NZD/USD — -3% vs. 11%, reverse.
You can download the MT5 or MT4 version, or read more info about this trend persistence expert advisor. PersistentAnti is also available for cTrader. Stay tuned for the story of coding this expert advisor for cAlgo/cTrader.
If you have any questions or some interesting thoughts regarding PersistentAnti expert advisor, please feel free to post them using the form below.