What Is AIO RSI?

The standard RSI is one of the most widely used momentum oscillators in existence — and one of the most misused. Traders default to the 14-period setting, add horizontal lines at 70 and 30, and then wonder why they keep getting chopped up buying “oversold” readings in strong downtrends.

AIO RSI (Pine Script v6, shorttitle: AIO RSI) is a complete rebuild of the oscillator with six analytical layers stacked on top of the core calculation: a secondary higher-timeframe RSI for directional bias, two smoothing MAs with optional Bollinger Bands mode, Dual RSI divergence, Price-vs-RSI multi-pivot divergence, W/V/M/^ pattern detection, and Double Bottom/Top signals. Each layer is independently toggleable — you can run the indicator as a plain RSI(14) or activate every module simultaneously for maximum confluence analysis.

This guide walks through each layer in practical order: what it shows, how to enable it, and how to combine layers into high-conviction setups.

Step 1: Core Settings — RSI Length, Source, and the “Calculate Divergence” Switch

Open the indicator settings and the first group you see is RSI Settings. Defaults are intentionally conservative:

  • RSI Length: 14 bars (industry standard; reduce to 9–10 for scalping, increase to 21–25 for swing)
  • Source: close price
  • Calculate Divergence: off by default

Why “Calculate Divergence” Must Be Enabled Manually

This toggle controls an additional calculation layer that tracks price pivot highs/lows alongside RSI pivot highs/lows. It is deliberately disabled by default for one reason: performance. Divergence scanning runs extra lookback loops on every bar, and on long-history charts this adds real computation overhead. More importantly, the divergence alerts will not fire unless this box is checked — enabling the visual display alone is not sufficient. If you want Regular Bullish Divergence Alert or Regular Bearish Divergence Alert to trigger, tick Calculate Divergence first.

Think of it as an explicit opt-in: the indicator is telling you it’s about to do heavier work and asking for your permission before it starts.

Step 2: Secondary RSI — Your Built-In Directional Bias Filter

The second option in RSI Settings is Show Secondary RSI, also off by default. When enabled, the indicator fetches RSI data from a higher timeframe (default: 240 = 4-hour chart) and plots it as a cyan line in the same oscillator pane.

The Secondary RSI serves two distinct purposes:

  1. Visual bias context: Glancing at where the 4H RSI sits relative to 50 gives you a quick read on whether the higher timeframe trend is bullish (above 50) or bearish (below 50) without switching charts.
  2. Signal filter: It feeds directly into three other modules — Price-RSI Divergence, W/V/M/^ Patterns, and Double Bottom/Top — as an optional qualifying condition. When “Filter by Secondary RSI” is enabled in those groups, a bullish signal on the lower timeframe is only shown if the 4H RSI confirms the same direction.

Secondary RSI Configuration

  • Secondary RSI Timeframe: Default 240 (4H). Change to D for position traders on 1H charts, or 60 for scalpers on 5-minute charts.
  • Secondary RSI Length: Default 14. You can increase this (e.g., 21) on the secondary to make it a slower, harder-to-fake bias signal.

A practical rule: if the Secondary RSI is above 55 and rising, treat pullbacks to oversold on the primary RSI as buying opportunities. If the Secondary RSI is below 45 and falling, the same oversold reading could be the beginning of a waterfall. The number matters less than the direction and zone of the secondary.

Step 3: Smoothing MA Layer — MA Types and Bollinger Bands Mode

The Smoothing MA group adds one or two moving averages directly on the RSI line. This is not a price-chart MA — it smooths the RSI itself, which helps filter noise and gives crossover signals between the raw RSI and the smoothed version.

MA Type Options

  • None: No MA overlay (raw RSI only)
  • SMA: Default — two SMAs plotted (MA 1 = period 9, MA 2 = period 14)
  • SMA + Bollinger Bands: Plots MA 1 as the SMA centerline with upper and lower bands at ±2.0 standard deviations of RSI values. RSI touching the upper BB while inside OB territory = exhaustion signal; touching the lower BB in OS territory = potential snap-back.
  • EMA / SMMA (RMA) / WMA / VWMA: Volume-weighted and rate-of-change-weighted alternatives. VWMA is particularly interesting for crypto where volume distribution is uneven.

The most actionable use of the MA layer is watching RSI cross MA 1 (the faster, period-9 line) from below after a bullish divergence forms — the MA crossover becomes the execution trigger rather than the divergence signal itself, giving you a more precise entry bar.

Want to see this on a live chart? AIO Indicator automates this — no manual drawing needed.
Try Free 5 Days

Dual RSI Divergence: RSI vs Secondary RSI

This is the module that gives AIO RSI its most distinctive edge. Standard divergence tools compare price to RSI. This module compares the main RSI to the Secondary RSI — looking for moments when both oscillators diverge from each other simultaneously in the same direction.

The logic: if the 1H RSI is making a higher low while the 4H RSI is also making a higher low (both diverging bullishly from a common reference), the argument for a reversal has higher institutional backing than a divergence visible only on the lower timeframe.

Configuration

  • Show Divergence BgColor: When enabled, shades the oscillator pane background green (dual bullish divergence) or red (dual bearish divergence) at confirmation bars. This is your visual flag to zoom in.
  • Pivot Left / Right Bars: Default 5 each side. Controls how many bars must pass before a swing high/low is confirmed as a valid pivot.
  • Pivot Detection Mode: Fast (1-bar right) or Standard.

Fast vs Standard Pivot Detection: The Timing Tradeoff

This setting has a meaningful effect on signal timing that most users overlook:

  • Standard mode: A pivot is confirmed only after the full Right Bars window (default 5 bars) closes to the right of the pivot bar. Signal appears 5 bars late but is more precise — fewer false pivots.
  • Fast (1-bar right) mode: A pivot is confirmed after just 1 bar to the right instead of 5. Signal appears (Right Bars − 1) = 4 bars earlier. More responsive but slightly less precise on noisy timeframes.

For day trading on 15-minute or 1-hour charts, Fast mode is generally preferable — the 4-bar head start can mean the difference between catching the reversal candle and chasing it. For weekly swing analysis, Standard mode’s precision outweighs the timing cost.

Price vs RSI Divergence (Multi-Pivot)

The Price-RSI Divergence module is the closest equivalent to traditional RSI divergence as most traders know it — except it requires consecutive qualifying pivot sequences rather than a single pivot comparison. This eliminates a huge category of false signals that plague standard divergence indicators.

How Multi-Pivot Detection Works

Enable this module via “Enable Price-RSI Divergence”. Key parameters:

  • Number of Pivots (n): Default 2, maximum 3. With n=2, the indicator looks for 2 consecutive RSI highs (for bearish) that are declining while the corresponding price highs are not. With n=3, all three peaks must confirm the same pattern — significantly stricter.
  • Max Bars Between Pivots: Default 60 bars. If two consecutive pivots are more than 60 bars apart, they are not considered part of the same divergence sequence. This prevents the indicator from “connecting” unrelated swing points.
  • Pivot Left / Right Bars: Default 4 each side. Slightly tighter than the Dual RSI group because price pivots are defined by bars around them, not just the oscillator.

OB/OS Zone Confluence

Signal quality improves significantly when at least one of the divergence pivots falls inside the overbought (>70) or oversold (<30) zone. A bearish divergence where the RSI was at 74 on pivot 1 and 68 on pivot 2 carries substantially more conviction than one where both pivots sat between 55 and 60. The indicator does not filter by this automatically, but the background color highlighting (orange for bearish, aqua for bullish) fires at the confirmation bar, letting you visually assess pivot zone placement immediately.

Secondary RSI Filter for Price-RSI Divergence

Enable “Filter by Secondary RSI” in the Price-RSI group to apply the higher-timeframe bias check. Bullish divergence signals are shown only when the main RSI is above the Secondary RSI at the pivot bar (or has crossed back above within 1 bar — the “false-break recovery” clause). This one setting alone can eliminate a majority of divergence fakeouts in counter-trend conditions.

W/V/M/^ Pattern Detection

Where the divergence modules measure direction disagreement between RSI and price (or between timeframes), the pattern module measures shape. It looks for four classic RSI formations:

  • W (Double Bottom): Two RSI troughs at approximately the same level in the oversold or mid zone — classic accumulation signal
  • V (Single Bottom): A single sharp RSI trough followed by a strong bounce — fast reversal with no retest
  • M (Double Top): Two RSI peaks at approximately the same level in the overbought or mid zone — classic distribution signal
  • ^ (Single Top): A single sharp RSI peak followed by a rapid drop

The Dual-Confirmation Requirement

This is the module’s defining constraint: a pattern fires only when BOTH the main RSI and the Secondary RSI show a matching pattern within the same time window. A W on the 1H RSI alone is a pattern. A W on both the 1H RSI and the 4H RSI simultaneously is a setup worth taking seriously. This dual-confirmation requirement is strict — you will see fewer signals, but those that do appear carry substantially higher structural conviction than single-oscillator patterns.

Pattern Quality Filter

The Pattern Quality Filter setting controls where on the RSI scale the pattern pivots must land:

  • Mid-zone (<40 / >60): Default. Pivots must be below 40 (for W/V) or above 60 (for M/^). This catches mid-range patterns common in trending markets where RSI never reaches classic extremes.
  • Oversold/Overbought (<30 / >70): Strictest mode. Pivots must be fully inside the OS/OB zone. Highest quality signals, lowest frequency — use this on daily or weekly charts where extreme RSI readings are meaningful.

A practical configuration for intraday traders: Mid-zone filter with Secondary RSI filter enabled. This gives reasonable signal frequency while requiring higher-timeframe structural confirmation.

Double Bottom / Top Detection

The Double Bottom/Top module uses a three-step logic sequence that differs from the W/M pattern detection in a key way: it anchors the pattern to a reference-line break event first, then looks for the double formation near that reference.

Three-Step Logic

  1. Strong break: RSI crosses through the reference line (either RSI 50 in Mid-Band mode, or the Secondary RSI line in Secondary RSI mode) and reaches a minimum threshold — default 58 for bullish breaks, 42 for bearish breaks. This filters out weak crosses.
  2. First pivot: RSI pulls back toward the reference line and forms the first bottom (or top) within the acceptance zone.
  3. Second pivot: RSI bounces away, then returns to form a second bottom (or top) within tolerance of the first — default tolerance of 4.0 RSI points. Signal fires at second-pivot confirmation.

Detection Modes

  • Mid-Band: Reference line is RSI 50 with a ±8 point acceptance zone (42–58 band). Pivots must form inside this zone. Classic double-bottom near the 50 midline.
  • Secondary RSI: Reference line is the Secondary RSI value itself, with a tighter ±5 point zone. This dynamically adjusts the reference based on the higher-timeframe RSI level, making it more adaptive to trending conditions.
  • All: Runs both modes simultaneously and displays signals from either.

See AIO RSI in Action

Multi-layer divergence, pattern detection, and dual RSI bias filter in a single oscillator.

View on TradingView

Building Complete Setups: Three Practical Configurations

Setup 1: Basic Bias Filter (Beginner)

Objective: Use the Secondary RSI as a simple directional filter for standard RSI readings.

  1. Enable Show Secondary RSI (Timeframe: 240 / 4H)
  2. Leave all other modules disabled
  3. Trade rule: only take long setups (price at support, bullish structure) when the Secondary RSI is above 50 and trending up. Only take short setups when it is below 50 and trending down.
  4. RSI entering OS (<30) while Secondary RSI is above 55 = buying zone. RSI entering OB (>70) while Secondary RSI is below 45 = selling zone.

This setup alone eliminates the single most common RSI mistake: fading momentum in a strong trend because the oscillator looks “extreme.”

Setup 2: Advanced Divergence with Secondary RSI Filter (Intermediate)

Objective: Identify high-conviction reversal setups using Price-RSI multi-pivot divergence filtered by the 4H bias.

  1. Enable Calculate Divergence in RSI Settings
  2. Enable Show Secondary RSI (240 timeframe)
  3. Enable Price-RSI Divergence module:
    • Number of Pivots: 2
    • Pivot Detection Mode: Fast (1-bar right)
    • Show BgColor on Divergence: ON (orange/aqua highlight)
    • Filter by Secondary RSI: ON
  4. Trade rule: enter on the background color signal bar only when the divergence pivot(s) touch the OB or OS zone. Wait for RSI to cross the MA 1 line (SMA 9) in the direction of the divergence before executing.
  5. Stop loss: beyond the most recent swing high/low. Target: first structural resistance/support on the price chart.

The Secondary RSI filter and OB/OS zone requirement together act as a two-factor gate. Most noise signals fail at least one condition and are automatically suppressed without you having to evaluate them manually.

Setup 3: W/M Pattern Reversal Confirmation (Intermediate–Advanced)

Objective: Use dual-confirmed RSI patterns as reversal signals in mean-reversion or trend-change contexts.

  1. Enable Show Secondary RSI (240 timeframe)
  2. Enable W/V/M/^ Patterns module:
    • Pattern Quality Filter: Mid-zone (<40 / >60) for intraday; Oversold/Overbought for swing
    • Filter by Secondary RSI: ON
  3. When a W or V label appears, look for price confirmation: a bullish engulfing candle, a BOS on the lower timeframe, or a close above the most recent swing high.
  4. When an M or ^ label appears, look for price confirmation: a bearish engulfing, BOS flip, or close below the recent swing low.
  5. The pattern alone is not a trigger — use it as an alerting mechanism to focus your attention, then apply discretionary price action judgment.

One important caveat: because the dual-confirmation requirement means both the 1H and 4H RSI must show the same pattern simultaneously, these signals naturally cluster around major inflection points — tops and bottoms that are visible in retrospect on higher-timeframe charts. They are high-value alerts, not high-frequency ones. Expecting one per day is unrealistic; one or two per week on a single instrument is a reasonable baseline.

Alert System Overview

AIO RSI consolidates all alert conditions in a single Alert Settings group. Key points:

  • OB/OS entry alerts (on by default): fire once when RSI first crosses into the OB or OS zone, do not repeat while RSI stays in the zone
  • Cross-down from OB / Cross-up from OS alerts (on by default): fire when RSI exits the extreme zone — range-chart safe (fires only once even when multiple Range bars map to the same higher-timeframe candle)
  • Divergence alerts (off by default): require Calculate Divergence to be enabled — Regular Bullish/Bearish, Dual RSI Bullish/Bearish, Price-RSI Bullish/Bearish
  • Pattern alerts (on by default): W/V Bull alert and M/^ Bear alert fire when dual-confirmed patterns are detected
  • Double Bottom/Top alerts (on by default): fire when the three-step sequence completes
  • Alert Cooldown: default 5 bars — shared across all alert types to prevent alert flooding during cluster conditions

When setting up TradingView alerts, select the AIO RSI indicator and choose “Any alert() function call” — this captures all enabled alert conditions through a single alert instance rather than requiring one alert per condition type.

Visual Reference: What You’re Looking At

The oscillator pane displays:

  • Yellow line: Main RSI (14-period, default)
  • Cyan line: Secondary RSI (4H, visible only when enabled)
  • Blue / Purple lines: MA 1 (period 9) and MA 2 (period 14) on the RSI
  • Green bands: Bollinger Bands around MA 1 (SMA+BB mode only)
  • Purple background fill: Standard OB/OS zone shading between 30 and 70
  • Green gradient: Intensity increases above 70 (overbought gradient)
  • Red gradient: Intensity increases below 30 (oversold gradient)
  • Green/Red background: Dual RSI Divergence highlight (when BgColor enabled)
  • Orange/Aqua background: Price-RSI Divergence highlight
  • Lime/Red background: Double Bottom/Top signal
  • W / V / M / ^ labels: Pattern markers at detection bars

Key Takeaways

  • Enable “Calculate Divergence” first if you want any divergence alerts to fire — this is the most common configuration mistake.
  • Secondary RSI is the backbone of the indicator: it provides directional bias context and acts as a filter for three independent signal modules.
  • Fast vs Standard pivot mode is a timing tradeoff: Fast gives signals (Right Bars − 1) bars earlier at the cost of slightly more false pivots; Standard is more precise but signals arrive later.
  • Dual RSI Divergence is a timeframe-disagreement signal, not a price-disagreement signal — it fires when both the main and secondary RSI diverge in the same direction simultaneously.
  • Price-RSI Divergence is the classic divergence concept, hardened by requiring consecutive qualifying pivots (n=2 or 3) and optionally gated by the Secondary RSI filter.
  • W/M patterns are the strictest signals in the indicator — dual-confirmed across two timeframes simultaneously. Treat them as high-priority alerts, not standalone entries.
  • OB/OS zone placement of divergence pivots meaningfully improves signal quality — always check where the pivot landed before acting.
  • Start with Setup 1 (Secondary RSI bias) before layering in divergence and patterns. Adding all modules at once without a filter framework turns signal density into noise.

Try All AIO Indicators Free for 5 Days

Full access to the entire suite. No credit card required.

Start Free Trial