OPEN-SOURCE SCRIPT
Actualizado

Volume-Weighted RSI & Multi-Normalized MACD

227
### Description for Publishing: Volume-Weighted RSI & Multi-Normalized MACD

**Overview**
The "Volume-Weighted RSI & Multi-Normalized MACD" indicator is a powerful and versatile tool designed for traders seeking enhanced momentum and trend analysis. Combining a volume-weighted Relative Strength Index (VW-RSI) with a customizable Moving Average Convergence Divergence (MACD) featuring multiple normalization methods, this indicator provides deep insights into market dynamics. It supports multi-timeframe (MTF) analysis and includes an optional stepped plotting mode for discrete signal visualization, making it ideal for both trend-following and mean-reversion strategies across various markets (stocks, forex, crypto, etc.).

**Key Features**
1. **Volume-Weighted RSI (VW-RSI)**:
- A modified RSI that incorporates trading volume for greater sensitivity to market activity.
- Normalized to a user-defined range (default: -50 to +50) for consistent analysis.
- Optional smoothing with multiple moving average types (SMA, EMA, WMA, VWMA, SMMA, or SMA with Bollinger Bands) to reduce noise and highlight trends.
- Overbought (+20) and oversold (-20) levels for quick reference.

2. **Multi-Normalized MACD**:
- Offers six normalization methods for MACD, allowing traders to tailor the output to their strategy:
- Normalized Volume Weighted MACD (unbounded).
- Min-Max Normalization (bounded).
- Volatility Normalization (unbounded, volatility-adjusted).
- Volatility Normalization with Min-Max (bounded).
- Hyperbolic Tangent Normalization (bounded).
- Arctangent Normalization (bounded).
- Min-Max with Smoothing (bounded).
- All bounded methods scale to the user-defined range (default: -50 to +50), ensuring comparability with VW-RSI.
- Dynamic color changes for MACD line (lime/red) and histogram (aqua/blue/red/maroon) based on momentum and signal line crosses.

3. **Stepped Plotting Mode**:
- Optional mode to plot RSI and MACD as discrete, stepped lines, reducing noise by only updating when values change significantly (configurable thresholds).
- Ideal for traders focusing on clear, actionable signal changes.

4. **Multi-Timeframe Support**:
- Configurable timeframe input (default: chart timeframe) for analyzing RSI and MACD on higher or lower timeframes, enhancing cross-timeframe strategies.

5. **Customizable Display**:
- Toggle options to show/hide MACD line, signal line, histogram, and cross dots.
- Bollinger Bands for RSI smoothing (optional) with adjustable standard deviation multiplier.
- Clear visual cues with horizontal lines for overbought/oversold levels, midline, and MACD bounds.

**Usage Instructions**
1. **Add to Chart**: Apply the indicator to any symbol (e.g., BTCUSD, SPY) on any timeframe (1H, 1D, etc.).
2. **Configure Settings**:
- **General**: Adjust `Lower Bound` (-50 default) and `Upper Bound` (+50 default) for the output range. Set `Timeframe` for MTF analysis. Enable `Stepped?` for discrete plotting.
- **RSI**: Choose `Price Source` (default: ohlc4), `RSI Length` (default: 9), and smoothing options (e.g., EMA, Bollinger Bands). Adjust `RSI Diff Threshold` for stepped mode.
- **MACD**: Select `Price Source`, `Fast Length` (9), `Slow Length` (21), `Signal Length` (9), and a normalization method (default: Volatility Min-Max). Adjust `MACD Diff Threshold` for stepped mode.
- **Display Options**: Toggle MACD components and histogram colors for clarity.
3. **Interpretation**:
- **VW-RSI**: Watch for crosses above +20 (overbought) or below -20 (oversold) for potential reversals. Use smoothed RSI or Bollinger Bands for trend confirmation.
- **MACD**: Look for MACD/Signal line crosses (dots indicate crossings) and histogram changes for momentum shifts. Bounded normalizations align with RSI for unified analysis.
- **Stepped Mode**: Focus on significant changes in RSI/MACD for clearer signals.
4. **Companion Overlay**: For visualization on the main price chart, use the companion script "VW-RSI & MACD Price Overlay" (available separately, requires this script to be published). It plots RSI and MACD as price-scaled echo lines, with toggles to show/hide and customizable scaling (high/low or ATR).

**Who Is This For?**
- **Trend Traders**: Use MACD normalizations and MTF to identify momentum shifts across timeframes.
- **Mean-Reversion Traders**: Leverage VW-RSI’s overbought/oversold signals for entry/exit points.
- **Technical Analysts**: Customize normalization and smoothing to match specific market conditions.
- **All Markets**: Works on stocks, forex, cryptocurrencies, and more, with any timeframe.

**Notes**
- Unbounded MACD normalizations (`enable_nvw`, `enable_vol`) may produce values outside -50/+50, suitable for volatility-focused strategies.
- For price chart overlay, publish this script and use its ID in the companion script’s `request.security` call.
- Adjust scaling inputs in the companion script for optimal visualization on volatile or stable assets.

**Author’s Note**
Developed by NEPOLIX, this indicator combines volume-weighted precision with flexible normalization for robust technical analysis. Feedback and suggestions are welcome to enhance future versions!
Notas de prensa
### Description for Publishing: Volume-Weighted RSI & Multi-Normalized MACD

**Overview**
The "Volume-Weighted RSI & Multi-Normalized MACD" indicator is a powerful and versatile tool designed for traders seeking enhanced momentum and trend analysis. Combining a volume-weighted Relative Strength Index (VW-RSI) with a customizable Moving Average Convergence Divergence (MACD) featuring multiple normalization methods, this indicator provides deep insights into market dynamics. It supports multi-timeframe (MTF) analysis and includes an optional stepped plotting mode for discrete signal visualization, making it ideal for both trend-following and mean-reversion strategies across various markets (stocks, forex, crypto, etc.).

**Key Features**
1. **Volume-Weighted RSI (VW-RSI)**:
- A modified RSI that incorporates trading volume for greater sensitivity to market activity.
- Normalized to a user-defined range (default: -50 to +50) for consistent analysis.
- Optional smoothing with multiple moving average types (SMA, EMA, WMA, VWMA, SMMA, or SMA with Bollinger Bands) to reduce noise and highlight trends.
- Overbought (+20) and oversold (-20) levels for quick reference.

2. **Multi-Normalized MACD**:
- Offers six normalization methods for MACD, allowing traders to tailor the output to their strategy:
- Normalized Volume Weighted MACD (unbounded).
- Min-Max Normalization (bounded).
- Volatility Normalization (unbounded, volatility-adjusted).
- Volatility Normalization with Min-Max (bounded).
- Hyperbolic Tangent Normalization (bounded).
- Arctangent Normalization (bounded).
- Min-Max with Smoothing (bounded).
- All bounded methods scale to the user-defined range (default: -50 to +50), ensuring comparability with VW-RSI.
- Dynamic color changes for MACD line (lime/red) and histogram (aqua/blue/red/maroon) based on momentum and signal line crosses.

3. **Stepped Plotting Mode**:
- Optional mode to plot RSI and MACD as discrete, stepped lines, reducing noise by only updating when values change significantly (configurable thresholds).
- Ideal for traders focusing on clear, actionable signal changes.

4. **Multi-Timeframe Support**:
- Configurable timeframe input (default: chart timeframe) for analyzing RSI and MACD on higher or lower timeframes, enhancing cross-timeframe strategies.

5. **Customizable Display**:
- Toggle options to show/hide MACD line, signal line, histogram, and cross dots.
- Bollinger Bands for RSI smoothing (optional) with adjustable standard deviation multiplier.
- Clear visual cues with horizontal lines for overbought/oversold levels, midline, and MACD bounds.

**Usage Instructions**
1. **Add to Chart**: Apply the indicator to any symbol (e.g., BTCUSD, SPY) on any timeframe (1H, 1D, etc.).
2. **Configure Settings**:
- **General**: Adjust `Lower Bound` (-50 default) and `Upper Bound` (+50 default) for the output range. Set `Timeframe` for MTF analysis. Enable `Stepped?` for discrete plotting.
- **RSI**: Choose `Price Source` (default: ohlc4), `RSI Length` (default: 9), and smoothing options (e.g., EMA, Bollinger Bands). Adjust `RSI Diff Threshold` for stepped mode.
- **MACD**: Select `Price Source`, `Fast Length` (9), `Slow Length` (21), `Signal Length` (9), and a normalization method (default: Volatility Min-Max). Adjust `MACD Diff Threshold` for stepped mode.
- **Display Options**: Toggle MACD components and histogram colors for clarity.
3. **Interpretation**:
- **VW-RSI**: Watch for crosses above +20 (overbought) or below -20 (oversold) for potential reversals. Use smoothed RSI or Bollinger Bands for trend confirmation.
- **MACD**: Look for MACD/Signal line crosses (dots indicate crossings) and histogram changes for momentum shifts. Bounded normalizations align with RSI for unified analysis.
- **Stepped Mode**: Focus on significant changes in RSI/MACD for clearer signals.
4. **Companion Overlay**: For visualization on the main price chart, use the companion script "VW-RSI & MACD Price Overlay" (available separately, requires this script to be published). It plots RSI and MACD as price-scaled echo lines, with toggles to show/hide and customizable scaling (high/low or ATR).

**Who Is This For?**
- **Trend Traders**: Use MACD normalizations and MTF to identify momentum shifts across timeframes.
- **Mean-Reversion Traders**: Leverage VW-RSI’s overbought/oversold signals for entry/exit points.
- **Technical Analysts**: Customize normalization and smoothing to match specific market conditions.
- **All Markets**: Works on stocks, forex, cryptocurrencies, and more, with any timeframe.

**Notes**
- Unbounded MACD normalizations (`enable_nvw`, `enable_vol`) may produce values outside -50/+50, suitable for volatility-focused strategies.
- For price chart overlay, publish this script and use its ID in the companion script’s `request.security` call.
- Adjust scaling inputs in the companion script for optimal visualization on volatile or stable assets.

**Author’s Note**
Developed by NEPOLIX, this indicator combines volume-weighted precision with flexible normalization for robust technical analysis. Feedback and suggestions are welcome to enhance future versions!
Notas de prensa
NA
Notas de prensa
Title: Volume-Weighted RSI & Multi-Normalized MACD

Description:

The "Volume-Weighted RSI & Multi-Normalized MACD" is a sophisticated, multi-timeframe (MTF) technical indicator designed for traders seeking enhanced momentum and trend analysis. This Pine Script v6 indicator combines a Volume-Weighted Relative Strength Index (VW-RSI) with a versatile, volume-weighted MACD featuring multiple normalization options, providing a robust tool for identifying market momentum, reversals, and trend strength across various timeframes.

### Key Features:

1. **Volume-Weighted RSI (VW-RSI)**:
- Incorporates trading volume into the traditional RSI calculation for a more market-sensitive momentum indicator.
- Normalized to a user-defined range (default: -50 to +50) for consistent analysis across assets.
- Customizable smoothing with options for SMA, EMA, SMMA (RMA), WMA, VWMA, or SMA with Bollinger Bands.
- Configurable overbought (+20) and oversold (-20) levels for clear signal identification.
- Optional derivative of VW-RSI and its smoothed MA, displayed as histograms for rate-of-change analysis.

2. **Multi-Normalized Volume-Weighted MACD**:
- Offers six normalization methods: Normalized Volume-Weighted (unbounded), Min-Max, Volatility, Hyperbolic Tangent, Arctangent, and Min-Max with Smoothing.
- Volatility Normalization (Min-Max) is enabled by default for bounded output within the user-defined range.
- Visualizes MACD line, signal line, and histogram with dynamic color changes based on trend direction.
- Optional derivative histograms for MACD and signal line, highlighting acceleration in momentum shifts.

3. **Multi-Timeframe Support**:
- Fully customizable timeframe input, defaulting to the chart's timeframe, allowing analysis across different resolutions.
- Ensures smooth data integration with `request.security` for accurate MTF calculations.

4. **Stepped Mode**:
- Optional stepped visualization for VW-RSI, RSI MA, MACD, and signal line, discretizing values into user-defined sections (default width: 10).
- Includes a zero-range filter (default: 0.1) to suppress noise around the midline, enhancing signal clarity.

5. **Derivative Enhancements**:
- Displays derivatives as histograms for VW-RSI, RSI MA, MACD, and signal line, with independent scaling factors (`rsi_deriv_scale` and `macd_deriv_scale`, default: 3.0).
- Separate derivative filters (`rsi_deriv_filter` and `macd_deriv_filter`, default: 10.0) to suppress insignificant changes, reducing noise and focusing on meaningful movements.
- Derivatives are capped at the indicator’s bounds to maintain chart readability.

6. **Customizable Display**:
- Extensive display options, including toggles for MACD line, signal line, histogram, and crossover dots.
- Dynamic color changes for MACD and histogram based on trend direction and momentum (e.g., aqua for rising positive histogram, red for falling negative histogram).
- Transparent derivative histograms (50% opacity) for clear differentiation from primary indicators.

### Inputs and Customization:

- **General**:
- Timeframe: Select any timeframe or use the chart’s default.
- Section Width (Stepped Mode): Choose from 2, 5, 10, or 20.
- Zero Range: Adjustable range (0.01–0.5) for stepped mode zero suppression.
- Enable Stepped: Toggle stepped visualization on/off.

- **RSI Settings**:
- Price Source: Default OHLC4, customizable.
- RSI Length: Default 9.
- MA Type: None, SMA, SMA + Bollinger Bands, EMA, SMMA, WMA, VWMA (default: EMA).
- MA Length: Default 14.
- Bollinger Bands StdDev: Default 2.0.
- RSI Diff Threshold: Default 2.0 for stepped mode.
- Show RSI/MA Derivatives: Toggle on/off.

- **MACD Settings**:
- Price Source: Default OHLC4.
- Fast/Slow/Signal Lengths: Defaults 9/21/9.
- Normalization Options: Toggle between multiple methods.
- Lookback Periods: Min-Max (512), ATR (26), Sigma (100), Smoothing (20/5).
- MACD/Signal Diff Thresholds: Default 2.0 for stepped mode.
- Show MACD/Signal Derivatives: Toggle on/off.

- **Derivatives**:
- RSI Derivative Scale: Default 3.0, range 1–10.
- MACD Derivative Scale: Default 3.0, range 1–10.
- RSI Derivatives Filter: Default 10.0, range 5–20.
- MACD Derivatives Filter: Default 10.0, range 5–20.

- **Display Options**:
- Toggle MACD line, signal line, histogram, and crossover dots.
- Enable/disable dynamic color changes for MACD and histogram.

### Use Cases:

- **Momentum Trading**: Use VW-RSI to identify overbought/oversold conditions, with derivatives highlighting acceleration in momentum shifts.
- **Trend Following**: Leverage the normalized MACD for trend confirmation, with crossover dots signaling entry/exit points.
- **Multi-Timeframe Analysis**: Analyze higher timeframes for context while trading on lower ones, ensuring alignment with broader trends.
- **Noise Reduction**: Stepped mode and derivative filters reduce noise, focusing on significant market movements.

### Notes:

- The indicator is non-overlay and plots in a separate pane for clear visualization.
- Derivatives are not plotted in stepped mode to maintain clarity.
- The script supports export variables (`export_rsi`, `export_rsi_ma`, `export_macd`, `export_macd_signal`) for integration with companion scripts or strategies.
- Optimized for performance with `max_lines_count=500` and `max_labels_count=500`.

### Ideal For:

- Day traders, swing traders, and long-term investors seeking a versatile momentum and trend indicator.
- Traders requiring customizable, volume-weighted tools for cross-asset and multi-timeframe analysis.
- Those interested in advanced features like derivative analysis and stepped visualization for enhanced signal clarity.

This indicator is a powerful addition to any trader’s toolkit, offering flexibility, precision, and a deep understanding of market dynamics. Customize it to your trading style and timeframe for optimal results.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.