# RSI and Moving Averages: A Practical Introduction to Momentum Signals and Strategy Testing

> By Orkhan Abbasov · Indicators & Strategy · October 29, 2026 · 6 min read
> Category: Trading Strategies

- **Canonical page:** https://botico.ai/blog/rsi-and-moving-averages/

This article introduces the Relative Strength Index (RSI), explains how it is calculated and shows how a moving average of RSI can add useful context to momentum-based trading strategies. The aim is not to treat any indicator as a standalone answer, but to understand its logic, test its behavior and use it responsibly.

## Welcome to the blog

Here I will share ideas, knowledge and hands-on experience from the world of trading. We will explore technical indicators, break down the principles behind trading strategies, learn about risk management and dig into backtesting.

The goal is not simply to describe an indicator or tool. It is to understand how it works, what it is designed for and how it can be applied in practice. We will cover theory, examine real examples and test ideas against data. We will also look at how indicators can be used in Botico when developing and testing trading strategies.

## Starting with indicators

The first indicator in this series is the Relative Strength Index, or RSI. What does it measure? What signals can it produce? How should those signals be interpreted, and when can they be misleading? We will answer these questions step by step with clear examples so that you can understand the reasoning behind RSI rather than simply follow a rule.

## What is RSI

RSI is a widely used momentum indicator. Introduced in 1978, it gives technical traders a way to assess the relative strength of upward and downward price movement.

As a general rule, an asset is often called overbought when RSI is above 70 and oversold when it is below 30. Some traders view RSI moving down through the overbought level as a possible sell signal, and moving up through the oversold level as a possible buy signal. These thresholds are not a gold standard, however. Every indicator has a purpose that depends on market conditions.

RSI compares the strength of price advances on up days with the strength of price declines on down days. Comparing that result with price action can help traders form a view about how an asset may behave next. RSI generally works best in a ranging market rather than in a market with a strong, persistent trend.

## How RSI is calculated

RSI is calculated in two stages. The first stage uses the following formula:

RSI (stage 1) = 100 − 100 / (1 + Average gain / Average loss)

Average gain and average loss are the average percentage price increases and decreases over the selected lookback period. In the formula, average loss is treated as a positive number.

- Periods in which price declined count as zero when calculating average gain.
- Periods in which price rose count as zero when calculating average loss.

The standard lookback for the initial RSI value is 14 periods. For example, suppose that during the last 14 days the market closed higher on seven days and the initial average gain was 1%. During the other seven days it closed lower, with an initial average loss of 0.8%. The initial RSI calculation is:

RSI = 100 − 100 / (1 + (1% / 14) / (0.8% / 14)) ≈ 55.56

Once data for 14 periods is available, a second calculation smooths the result. This makes RSI approach 100 or 0 only when the market has a strong trend. To keep the calculation readable, first update the smoothed average gain and loss, then use those values to calculate RSI:

Smoothed average gain (t) = ((Previous avg gain × 13) + Current gain) / 14

Smoothed average loss (t) = ((Previous avg loss × 13) + Current loss) / 14

RSI (t) = 100 − 100 / (1 + Smoothed average gain / Smoothed average loss)

### What the terms mean

- Previous average gain is the average price gain over the prior 14 periods.
- Current gain is the amount of price increase in the current period.
- Previous average loss is the average price decline over the prior 14 periods.
- Current loss is the amount of price decrease in the current period.

The number 13 smooths the previous average before the current period is added. A price decrease is again handled as a positive value in the calculation.

## Adding a moving average to RSI

Once RSI is understood, we can add a moving average, or MA, calculated from RSI values themselves. This smooths the indicator's fluctuations and can provide additional signals.

### What is an RSI moving average

A moving average is usually calculated from an asset's price. Here, it is calculated from RSI. For example, RSI(14) measures price changes over 14 periods, while MA(9) smooths the most recent nine RSI readings.

- RSI(14) shows the strength of the current momentum.
- MA(9) smooths RSI fluctuations and helps assess the direction of momentum.

### How to read RSI and MA signals

When RSI crosses its moving average, it can point to a shift in momentum.

- RSI crossing above MA may indicate strengthening upward momentum.
- RSI crossing below MA may indicate weakening momentum or a shift downward.

A crossover does not guarantee a price reversal. Charts can produce many false signals, so market conditions and other inputs still matter.

## Three strategy ideas to test in Botico

### Strategy 1: Line crossover

- LONG: RSI crosses above MA.
- SHORT: RSI crosses below MA.

This is a simple way to follow changes in momentum. In a sideways market, though, it may produce many false signals.

### Strategy 2: Crossover with RSI levels

- LONG: RSI falls below 30, then returns above 30 and crosses above MA.
- SHORT: RSI rises above 70, then falls below 70 and crosses below MA.

This adds overbought and oversold conditions to the MA crossover. It lets you test whether considering the preceding RSI move improves the quality of the signal.

### Strategy 3: Momentum direction filter

- LONG: RSI is above 50 and above its MA.
- SHORT: RSI is below 50 and below its MA.

Here, RSI and MA identify momentum direction. Instead of trading every crossover, the strategy selects situations where both conditions point in the same direction.

## Suggested starting settings

The following settings are a sensible starting point for testing. They are not universal: results depend on the asset, timeframe and market regime.

| Parameter | Starting value |
| --- | --- |
| RSI period | 14 |
| MA period | 9 |
| MA type | SMA |
| Oversold level | 30 |
| Overbought level | 70 |
| Center level | 50 |

## How to evaluate the idea

First, confirm that the moving average is calculated from RSI, not from the asset price. Then compare three versions: RSI on its own; RSI with MA crossover signals; and RSI with MA plus the 30, 50 and 70 conditions.

During testing, look at profitability after fees, maximum drawdown and the number of trades. It is also useful to evaluate the strategy on historical data that was not used to choose its parameters.

**Key takeaway:** The key point is simple: an MA can smooth RSI and add useful conditions to a trading strategy, but adding a second line does not automatically make signals more accurate. The only reliable answer comes from testing.

Build RSI(14) and its MA(9) in Botico's [no-code signal builder](https://botico.ai/features/signal-builder/), then compare the three versions in [backtesting](https://botico.ai/features/backtesting/).

---

*Read more on the [Botico Blog](https://botico.ai/blog/).*
