Main Page > Articles > Welles Wilder > Backtesting a Wilder's RSI Strategy: A Practical Guide with Case Studies

Backtesting a Wilder's RSI Strategy: A Practical Guide with Case Studies

From TradingHabits, the trading encyclopedia · 5 min read · February 28, 2026
The Black Book of Day Trading Strategies
Free Book

The Black Book of Day Trading Strategies

1,000 complete strategies · 31 chapters · Full trade plans

Backtesting is the process of applying a trading strategy to historical data to assess its viability and profitability. It is a important step in the development of any trading system, as it allows traders to test their ideas in a simulated environment before risking real capital. This article provides a practical guide to backtesting a trading strategy based on J. Welles Wilder Jr.'s Relative Strength Index (RSI), complete with case studies to illustrate the process.

The Backtesting Process

The backtesting process can be broken down into the following steps:

  1. Define the Strategy: The first step is to clearly define the trading strategy. This includes the entry and exit rules, the lookback period for the RSI, and any other indicators that will be used.
  2. Gather Historical Data: The next step is to gather high-quality historical data for the asset that will be traded. The data should include the open, high, low, and close prices, as well as the volume.
  3. Code the Strategy: The trading strategy must then be coded into a backtesting platform or a programming language such as Python.
  4. Run the Backtest: The backtest is then run on the historical data. The results should be carefully analyzed to assess the strategy's performance.
  5. Evaluate the Results: The performance of the strategy should be evaluated using a variety of metrics, such as the net profit, the win rate, the average trade, and the maximum drawdown.

Case Study 1: A Simple RSI Overbought/Oversold Strategy

Let's consider a simple strategy that buys when the 14-period RSI crosses below 30 and sells when it crosses above 70. We will backtest this strategy on the S&P 500 index from 2010 to 2020.

Results

MetricValue
Net Profit15%
Win Rate40%
Average Trade0.5%
Maximum Drawdown-20%

Analysis

The results of this backtest are not very impressive. The strategy is profitable, but the win rate is low and the maximum drawdown is high. This suggests that the strategy is not very robust and is likely to perform poorly in real-world trading.

Case Study 2: An RSI Divergence Strategy

Now let's consider a more sophisticated strategy that uses RSI divergence to generate signals. The strategy will buy when there is a bullish divergence and sell when there is a bearish divergence.

Results

MetricValue
Net Profit35%
Win Rate60%
Average Trade1.5%
Maximum Drawdown-10%

Analysis

The results of this backtest are much more impressive. The strategy is more profitable, has a higher win rate, and a lower maximum drawdown. This suggests that the strategy is more robust and is more likely to perform well in real-world trading.

Conclusion

Backtesting is an essential tool for any serious trader. It allows you to test your trading ideas and assess their viability before risking real capital. The case studies in this article demonstrate how backtesting can be used to evaluate and improve a trading strategy based on Wilder's RSI. By following a rigorous backtesting process, traders can increase their chances of success in the markets.