PROTECTED SOURCE SCRIPT
Anchored Volume-Weighted RSI & Multi-Normalized MACD

Anchored Volume-Weighted RSI & Multi-Normalized MACD
Author: NEPOLIX
Overview
The "Anchored Volume-Weighted RSI & Multi-Normalized MACD" is a sophisticated Pine Script v6 indicator designed for TradingView. It combines an Anchored Volume-Weighted Relative Strength Index (VW-RSI) with a Multi-Normalized Moving Average Convergence Divergence (MACD) to provide traders with enhanced market analysis tools. This indicator allows for customizable anchoring, multiple normalization techniques, and stepped visualization for precise trend and momentum analysis.
Features
Anchored VW-RSI: Calculates a volume-weighted RSI anchored to a user-defined or auto-detected time point, offering a unique perspective on momentum with volume influence.
Multi-Normalized MACD: Supports various normalization methods, including Volume-Weighted, Min-Max, Volatility, Hyperbolic Tangent, Arctangent, and Min-Max with Smoothing, ensuring adaptability to different market conditions.
Flexible Anchoring: Choose from auto-detected anchor modes (1-day, 5-day, 30-day) or manual anchor time selection for tailored analysis starting from a specific point.
Stepped Visualization: Optional stepped mode for RSI and MACD values, reducing noise and highlighting significant changes based on user-defined thresholds.
Smoothing Options: Supports multiple moving average types (SMA, EMA, SMMA, WMA, VWMA) for RSI smoothing, with optional Bollinger Bands for volatility analysis.
Derivative Analysis: Plots derivatives for RSI and MACD to identify rate-of-change trends, with adjustable scaling and filtering.
Customizable Display: Options to toggle MACD line, signal line, histogram, and cross-point dots, with dynamic color changes based on market conditions.
Multi-Timeframe Support: Fetch data from higher timeframes for broader market context.
User-Friendly Inputs: Comprehensive input settings for general parameters, anchor settings, RSI, MACD, derivatives, and display options, organized into clear groups.
How It Works
VW-RSI: Computes a volume-weighted RSI by anchoring calculations to a specified time, using volume-weighted gains and losses for a more robust momentum indicator.
MACD Normalizations: Applies user-selected normalization techniques to the MACD, scaling it within defined bounds (-50 to 50 by default) for consistent comparison across instruments.
Anchoring Mechanism: Aligns calculations to a user-defined or auto-calculated anchor point (e.g., market open time adjusted for America/New_York timezone).
Stepped Mode: Discretizes RSI and MACD values into sections for clearer trend identification, with customizable section width and zero range.
Visualization: Plots RSI, MACD, signal lines, and histograms, with optional Bollinger Bands, derivatives, and stepped lines. Dynamic coloring highlights crossovers and histogram trends.
Use Cases
Trend Analysis: Use the anchored VW-RSI and normalized MACD to identify momentum shifts and trend strength.
Reversal Detection: Monitor overbought/oversold levels and MACD crossovers for potential reversal points.
Volatility Assessment: Leverage Bollinger Bands and volatility-normalized MACD for insights into market volatility.
Custom Strategies: Export variables (RSI, MACD, signal, etc.) for use in companion scripts or automated trading strategies.
Settings
General: Adjust section width, zero range, timeframe, and enable stepped mode.
Anchor Settings: Select auto or manual anchor modes, with options for 1-day, 5-day, or 30-day auto-anchoring, or manual bar selection.
RSI: Configure price source, length, smoothing type, Bollinger Bands multiplier, and derivative settings.
MACD: Set price source, fast/slow/signal lengths, normalization types, and derivative parameters.
Derivatives: Customize scale factors and filters for RSI and MACD derivatives.
Display Options: Toggle visibility of MACD, signal line, histogram, and crossover dots, with options for color changes.
Notes
Ensure the anchor time is valid when using manual mode by selecting a bar on the chart.
Normalization options should be chosen based on the instrument and market conditions for optimal results.
Stepped mode is ideal for reducing noise in volatile markets but requires careful threshold tuning.
The indicator is computationally intensive due to multiple normalizations; test on smaller datasets if performance issues arise.
Author: NEPOLIX
Overview
The "Anchored Volume-Weighted RSI & Multi-Normalized MACD" is a sophisticated Pine Script v6 indicator designed for TradingView. It combines an Anchored Volume-Weighted Relative Strength Index (VW-RSI) with a Multi-Normalized Moving Average Convergence Divergence (MACD) to provide traders with enhanced market analysis tools. This indicator allows for customizable anchoring, multiple normalization techniques, and stepped visualization for precise trend and momentum analysis.
Features
Anchored VW-RSI: Calculates a volume-weighted RSI anchored to a user-defined or auto-detected time point, offering a unique perspective on momentum with volume influence.
Multi-Normalized MACD: Supports various normalization methods, including Volume-Weighted, Min-Max, Volatility, Hyperbolic Tangent, Arctangent, and Min-Max with Smoothing, ensuring adaptability to different market conditions.
Flexible Anchoring: Choose from auto-detected anchor modes (1-day, 5-day, 30-day) or manual anchor time selection for tailored analysis starting from a specific point.
Stepped Visualization: Optional stepped mode for RSI and MACD values, reducing noise and highlighting significant changes based on user-defined thresholds.
Smoothing Options: Supports multiple moving average types (SMA, EMA, SMMA, WMA, VWMA) for RSI smoothing, with optional Bollinger Bands for volatility analysis.
Derivative Analysis: Plots derivatives for RSI and MACD to identify rate-of-change trends, with adjustable scaling and filtering.
Customizable Display: Options to toggle MACD line, signal line, histogram, and cross-point dots, with dynamic color changes based on market conditions.
Multi-Timeframe Support: Fetch data from higher timeframes for broader market context.
User-Friendly Inputs: Comprehensive input settings for general parameters, anchor settings, RSI, MACD, derivatives, and display options, organized into clear groups.
How It Works
VW-RSI: Computes a volume-weighted RSI by anchoring calculations to a specified time, using volume-weighted gains and losses for a more robust momentum indicator.
MACD Normalizations: Applies user-selected normalization techniques to the MACD, scaling it within defined bounds (-50 to 50 by default) for consistent comparison across instruments.
Anchoring Mechanism: Aligns calculations to a user-defined or auto-calculated anchor point (e.g., market open time adjusted for America/New_York timezone).
Stepped Mode: Discretizes RSI and MACD values into sections for clearer trend identification, with customizable section width and zero range.
Visualization: Plots RSI, MACD, signal lines, and histograms, with optional Bollinger Bands, derivatives, and stepped lines. Dynamic coloring highlights crossovers and histogram trends.
Use Cases
Trend Analysis: Use the anchored VW-RSI and normalized MACD to identify momentum shifts and trend strength.
Reversal Detection: Monitor overbought/oversold levels and MACD crossovers for potential reversal points.
Volatility Assessment: Leverage Bollinger Bands and volatility-normalized MACD for insights into market volatility.
Custom Strategies: Export variables (RSI, MACD, signal, etc.) for use in companion scripts or automated trading strategies.
Settings
General: Adjust section width, zero range, timeframe, and enable stepped mode.
Anchor Settings: Select auto or manual anchor modes, with options for 1-day, 5-day, or 30-day auto-anchoring, or manual bar selection.
RSI: Configure price source, length, smoothing type, Bollinger Bands multiplier, and derivative settings.
MACD: Set price source, fast/slow/signal lengths, normalization types, and derivative parameters.
Derivatives: Customize scale factors and filters for RSI and MACD derivatives.
Display Options: Toggle visibility of MACD, signal line, histogram, and crossover dots, with options for color changes.
Notes
Ensure the anchor time is valid when using manual mode by selecting a bar on the chart.
Normalization options should be chosen based on the instrument and market conditions for optimal results.
Stepped mode is ideal for reducing noise in volatile markets but requires careful threshold tuning.
The indicator is computationally intensive due to multiple normalizations; test on smaller datasets if performance issues arise.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Możesz jednak używać go swobodnie i bez żadnych ograniczeń – więcej informacji tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.