ArchitectureStrategiesResearchWhy UsPricing
Momentum Oscillator Momentum Indicators

RSI: Relative Strength Index

Bounded momentum oscillator (0 to 100) comparing the magnitude of recent gains to recent losses.

Visual Rule Syntax: @RSI(close, 14) < 30

Key Takeaways

  • Bounded oscillator from 0 to 100 tracking internal momentum acceleration.
  • Standard oversold (< 30) and overbought (> 70) thresholds work best when filtered by broad trend direction.
  • Bullish divergence (price makes lower low while RSI makes higher low) is a classic precursor to trend reversals.

What It Means in Simple Terms

RSI is the speedometer of a stock. It watches the last 14 trading days and compares how much price went up on green days versus how much it fell on red days, outputting a score between 0 and 100. When RSI climbs above 70, the engine has been revving hard and buyers may be exhausted (overbought). When it sinks below 30, sellers have dumped shares aggressively and price may be ready for a bounce (oversold).

How It Helps You as an Investor

It cures two of the worst retail trading mistakes: FOMO buying at the exact top of an extended rally, and panic selling at the exact bottom of a pullback. It gives you an objective mathematical check before pressing the buy or sell button.

Visual Node Rule Syntax & How to Plug in Values

Visual Node Expression No Code Required
@RSI(close, 14) < 30

Parameter Tuning & Market Calibration

The standard lookback is 14 bars. If you lower the lookback to 7 or 9 bars, RSI becomes much more sensitive and reaches 30 and 70 more frequently (great for active swing trading, but produces more false alarms). If you raise it to 21 or 28 bars, it becomes smoother and only flags major cyclical extremes. In strong bull markets, stocks often bounce from RSI 40 rather than 30. In bear markets, RSI often stalls at 60 rather than reaching 70.

Input Fields & Parameters

Field / Parameter Type Default Role & Description
close field Required Historical input price or volume series from market feed.
timeperiod int 14 Lookback period or tuning parameter for market calibration.

Mathematical Formulation

The mathematical definition of RSI (Relative Strength Index) as evaluated within the Saral Engine execution pipeline:

RSI=100−1001+RSwhereRS=WilderEMA(Gain,n)WilderEMA(Loss,n)RSI = 100 - \frac{100}{1 + RS} \quad \text{where} \quad RS = \frac{\text{WilderEMA}(\text{Gain}, n)}{\text{WilderEMA}(\text{Loss}, n)}

Variable & Parameter Definitions

$RS$ is the ratio of average gain to average loss over $n$ periods, smoothed using J. Welles Wilder's recursive exponential smoothing ($\alpha = 1/n$).

Systematic Strategy Applications

Trend-Confirmed Dip Buy Entry Rule
@RSI(close, 14) < 35 and close > @SMA(close, 200)

Buy high-quality stocks experiencing a temporary oversold dip while their long-term 200-day trend remains upward.

Overbought Profit Taking Exit Rule
@RSI(close, 14) > 75

Trim or exit positions when short-term momentum enters extreme overextended territory.

Common Questions & Practical Considerations

Why does RSI stay above 70 for weeks in strong trending stocks?

In powerful bull runs, sustained buying pressure keeps RSI pinned between 70 and 85. Never short or exit a strong trend solely because RSI is over 70; wait for a confirmed trend breakdown.

What is the biggest trap when buying an oversold RSI (< 30)?

Buying an oversold stock whose long-term trend is pointing down. In a bear market, 'cheap gets cheaper' and a stock at RSI 25 can easily sink to RSI 15. Always pair oversold RSI with a long-term moving average like SMA 200.

How do daily versus intraday (e.g. 5-minute) RSI bars differ?

Intraday RSI moves much faster and hits extremes multiple times a day due to morning opening gap volatility. Most systematic investors find daily bars provide significantly higher reliability.