RSI Divergence Trader
Try the default settings on M5 - EURUSD, EURCAD, EURAUD, AUDCAD, AUDNZD
I believe that the RSI is the best indicator out there and most of the times, a divergence on the RSI is a strong hint for a good entry. But what do you do if, after the entry, the trend is strong? And how can you isolate the best and most profitable RSI divergences? Those where my questions when I started working on this EA.
First of all, there are two terms that I want to define. One is "signal" - which I call the RSI peak; and the other one is "entry" - which I call the actual opening of a trade, where the divergence is present.
So here are some of the answers I came up with to the questions in the first paragraph:
-> For choosing the right signals:
- Filter based on RSI values
- Filter based on Price Action - the signal should only appear after X points already traveled, because divergences tend to happen at the end of a trend
- Filter based on ADX values - you can use ADX as an additional indicator, along with RSI
- Cancel the signal if a counter-signal appears - this means, you cannot have a buy signal and a sell signal at the same time. The trend will go either up or down
-> For choosing the right entry:
- Define min and max distance from the signal - in terms of time and price difference
- Filter based on Price Action - buy only if price is in the lower Y% of the past Z bars = buy low, sell high
- Filter based on ADX +DI and -DI values, or on ADX divergences
- Only enter in case of a multi timeframe divergence
-> Order management:
- Exit trades at fixed take profit or based on a divergence in a different direction (DTP - dynamic take profit)
- Fixed or trailing SL
- Automatic lot size calculation
- Manage your trades with a grid option
- Increase or decrease lot size
- Increase or decrease grid entry distance
-> In case something goes wrong:
- Lock trades after a certain drawdown percent
- After locking, the EA can continue to look for divergences on the same or on a different timeframe and use the new profit to partially close the loss
- Or use a fixed or a trailing stop-loss
If you start to use this EA, you will find it's a very versatile software, that could help you isolate some cases and choose only those entries that you find worth the risk. With the standard settings you can expect around 3-5% a month per pair, but with more aggressive settings you can achieve a steady 10% profit/month/pair.
I will work on offering a detailed description for each variable in the future and more screenshots, but be my guest and try it out. I am happy to answer any questions!
- Small fix to "Recovery Trades": All recovery trades respect the R-timeframe, not the chart timeframe. In the old version, only the first trade was taken using the R-timeframe.
- Added Moving Average Filter. With this filter, entries can be additionally limited so that you are working with the main trend if you want to. There are 2 possible strategies:
- Strategy 1 - Only Buy Orders above MA, only Sell Orders below MA
- Strategy 2 - Only Sell Orders above MA, only Buy Orders below MA
- Filter can also be turned off
How it works: The EA looks for divergences, like it normally does, but now if it receives a command to open a buy, also looks at the moving average. Is the price above the moving average and we are working with Strategy 1? Then that buy can be performed.
Additionally, the MA can also be used as a stop loss if you select "Use MA as SL in Strategy 1" as TRUE.
- Updated default values (M5 is still the default timeframe)
- Updated display names for the variables
- Added an order comment field
- Added a new variable: Close Trades At New RSI Extreme -> Example of how it works: Imagine the EA found a divergence with a signal RSI at 75.2, entry RSI at 70 and entered a sell trade. With this variable turned ON, if the trade is still open and there is a new RSI greater than 75.2, the sell will be closed at candle close. Reason: the RSI divergence was not respected and price continues with greater strength up.