OPEN-SOURCE SCRIPT

Dual RSI + MA + Divergences

429
# Dual RSI PRO — Indicator Description

## Overview

Dual RSI PRO is an advanced momentum and divergence indicator built around two Relative Strength Index calculations working together in a single oscillator window.

The indicator combines:

* RSI 14 (trend and structure)
* RSI 7 (fast momentum trigger)
* RSI-based Moving Average
* Optional Bollinger Bands on RSI
* Automatic bullish and bearish divergence detection
* Dynamic gradient visualization between both RSI lines
* Alert conditions for all divergences

The purpose of the indicator is to visualize the relationship between short-term momentum and broader market structure.

---

# Core Components

## 1. RSI 14 — Primary Momentum Structure

The 14-period RSI acts as the main trend and momentum reference.

It provides:

* smoother market structure
* trend confirmation
* overbought/oversold context
* divergence validation

Color:

* Purple

---

## 2. RSI 7 — Fast Momentum Trigger

The 7-period RSI reacts much faster to price changes.

It is designed for:

* early reversals
* scalping entries
* short-term momentum shifts
* aggressive divergence detection

Color:

* Orange

Because RSI 7 reacts earlier than RSI 14, it often provides leading signals before the slower RSI confirms the move.

---

# Dynamic Gradient Fill

The space between RSI 7 and RSI 14 is filled dynamically using a gradient color system.

## Green Gradient

Appears when:

* RSI 7 is above RSI 14

Interpretation:

* bullish acceleration
* increasing momentum
* upward pressure strengthening

---

## Red Gradient

Appears when:

* RSI 7 is below RSI 14

Interpretation:

* bearish acceleration
* weakening momentum
* downward pressure strengthening

---

## Gradient Intensity

The strength of the color depends on the distance between both RSI lines.

### Small Distance

* weak transparency
* soft color
* momentum equilibrium

### Large Distance

* strong color
* higher saturation
* momentum expansion

This creates a visual momentum heatmap directly inside the oscillator.

---

# RSI-Based Moving Average

The indicator includes a smoothing system applied directly to RSI 14.

Supported MA types:

* SMA
* EMA
* RMA / SMMA
* WMA
* VWMA
* SMA + Bollinger Bands

The RSI MA helps:

* reduce noise
* identify RSI trend direction
* confirm momentum continuation
* filter false reversals

Color:

* Yellow

---

# Bollinger Bands on RSI

When enabled, Bollinger Bands are calculated around the RSI Moving Average.

Purpose:

* volatility expansion analysis
* RSI compression detection
* momentum breakout zones

Interpretation:

* RSI touching upper band may indicate strong bullish momentum
* RSI touching lower band may indicate strong bearish momentum
* narrowing bands suggest consolidation
* expanding bands suggest volatility growth

---

# Divergence Detection

The indicator automatically detects:

## Bullish Divergence

Price:

* lower low

RSI:

* higher low

Meaning:

* bearish momentum weakening
* possible upward reversal

---

## Bearish Divergence

Price:

* higher high

RSI:

* lower high

Meaning:

* bullish momentum weakening
* possible downward reversal

---

# Divergences for Both RSI Lines

The system calculates divergences separately for:

* RSI 14
* RSI 7

This creates two layers of signal sensitivity.

---

## RSI 14 Divergences

Characteristics:

* slower
* more reliable
* structural reversals
* swing trading quality

Visualization:

* labels

---

## RSI 7 Divergences

Characteristics:

* faster
* earlier
* more aggressive
* better for scalping

Visualization:

* triangles

---

# Alert System

Built-in alerts include:

* RSI 14 bullish divergence
* RSI 14 bearish divergence
* RSI 7 bullish divergence
* RSI 7 bearish divergence

This allows automation and notification workflows inside TradingView.

---

# Typical Trading Interpretation

## Strong Bullish Environment

* RSI 7 above RSI 14
* strong green gradient
* RSI MA sloping upward
* bullish divergences appearing

---

## Strong Bearish Environment

* RSI 7 below RSI 14
* strong red gradient
* RSI MA sloping downward
* bearish divergences appearing

---

## Momentum Compression

* RSI lines close together
* weak gradient
* narrowing Bollinger Bands

Usually indicates:

* consolidation
* low volatility
* possible breakout preparation

---

# Best Use Cases

The indicator works especially well for:

* scalping
* momentum trading
* intraday trading
* reversal detection
* divergence trading
* volatility expansion analysis

Recommended markets:

* Nasdaq
* Crypto
* Forex
* High-volatility instruments

---

# Visual Philosophy

The indicator is designed to work as a “momentum battlefield map.”

Instead of showing only a single RSI line, it visualizes:

* momentum direction
* acceleration
* distance between momentum layers
* structural weakness
* volatility state
* reversal probability

All inside one compact oscillator.

免責事項

これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。