PROTECTED SOURCE SCRIPT

Thuan RSI-VolVSA

14
Description
This indicator is a comprehensive technical analysis tool that merges Relative Strength Index (RSI) Divergence logic with Volume Spread Analysis (VSA). By overlaying scaled volume data directly onto the RSI oscillator pane, it allows traders to identify momentum exhaustion and high-conviction reversal points without cluttering the main price chart.

Key Features
1. Strict Price-Based ZigZag Divergence
The script utilizes a specialized ZigZag logic to identify significant swing highs and lows. Unlike standard divergence indicators, it includes a Strict Mode:

Pivot Validation: It ensures that the RSI peak/trough aligns within a user-defined Sync Range of the price pivot.

Visual Mapping: Draws clear trendlines on the RSI oscillator to highlight Bullish/Bearish divergences.

Noise Filtering: Includes customizable noise settings (Ticks, Absolute, or Pips) to filter out market "jitter" and identify only significant structural shifts.

2. Integrated VSA (Volume Spread Analysis)
The volume is scaled and plotted at the bottom of the RSI pane for easy correlation. The volume bars are color-coded based on their relationship with the Volume Moving Average (VMA):

Purple: Ultra-High Volume (Potential climax).

Red/Orange: Very High/High Volume (Strong participation).

Green: Normal Volume.

Blue/Silver: Low/Very Low Volume (Lack of interest).

3. Climax Highlight (Overbought/Oversold Detection)
The script features an automated Climax Detection system that triggers background highlights when specific conditions align:

Bullish Climax: RSI is in the Oversold zone (<30) + High Volume + Strong Bullish Candle Body.

Bearish Climax: RSI is in the Overbought zone (>70) + High Volume + Strong Bearish Candle Body.

How to Use
Divergence Trading: Look for the "Bull" or "Bear" labels when price makes a new extreme but RSI fails to confirm, indicating a loss of momentum.

Volume Confirmation: Use the scaled Volume MA to see if a breakout or a reversal is backed by professional "smart money" activity.

Confluence: The highest probability setups occur when a Divergence label appears simultaneously with a VSA Climax background highlight.

Settings
RSI Settings: Adjust length and source.

ZigZag Settings: Fine-tune the Noise value to match the volatility of different assets (Forex vs. Crypto/Stocks).

VSA Settings: Customize volume sensitivity ratios and the visual height of the volume bars within the RSI pane.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.