[EA] "UpDownDays" Robust Expert Advisor


"Sell the highs and buy the lows" is the essence of FX trading.

Excess supply of currencies come and get sold. One of the indicators to determine overbought and oversold is the continuous positive and negative lines. If the positive and negative lines appear continuously, it may be overbought or oversold.

The EA (automated trading software) introduced this time is based on these ideas.

Results of backtesting after optimizing on the AUDUSD 1-hour chart. The period is from January 1, 2016 to January 1, 2020. Parameter set file is included in the EA file

Indicators used:

  • RSI
  • ATR

Entry logic:

This EA will place a buy order if the following conditions are met:

  • Candlesticks have been bearish continuously for X days (X is defined by the parameter “Days”)
  • RSI is below 30

On the other hand, the conditions for sell orders are as follows:

  • Candlesticks have been bullish continuously for X days (X is defined by the parameter “Days”)
  • RSI is above 70

This entry logic is checked only when a new candlestick occurs.

Exit Logic:

This EA closes the trade using a take profit stop loss specified in the parameters.

An ATR stop loss can also be used.


This EA allows you to trade fairly extreme overbought and oversold conditions.

For example, it is possible to sell only if the candlesticks have been bullish for 10 consecutive days. However, it is a fairly unlikely occurrence that the candlesticks would be bullish for 10 consecutive days. So, there will be fewer trading opportunities when setting such paraments, but the winning rate would probably be quite high also.

Another feature of this EA is that it utilizes RSI in the entry logic. This makes it easier to determine overbought and oversold conditions.

Compatibility: MT4


basic parameters: Indicator parameters:

  • TakeProfit
  • StopLoss
  • UseATRStop - Defines whether the EA uses ATRStop or not. If true, the EA sets the stop loss based on the ATR.
  • ATR - Multiplier of ATRStop.
  • Lots
  • TrailingStop
  • Days - Used for EA calculation. Check the article

Note: Backtest results may be optimized. Also, the backtest results may differ from the trade results when using a live trading account. Please understand this point before you use the EA.

Download the “UpDownDays” Forex Robot from the button below

free download

Tip: Can’t open the downloaded archive file (ZIP or RAR)?

Try WinRAR for Windows or The Unarchiver for Mac .

Do you need help with installing this indicator into MT4 for Windows or Mac OS? Our guide HERE will help you.