OPEN-SOURCE SCRIPT

Advanced Speedometer Gauge [PhenLabs]

249
Advanced Speedometer Gauge [PhenLabs]
Version: PineScript™v6

📌 Description
The Advanced Speedometer Gauge is a revolutionary multi-metric visualization tool that consolidates 13 distinct trading indicators into a single, intuitive speedometer display. Instead of cluttering your workspace with multiple oscillators and panels, this gauge provides a unified interface where you can switch between different metrics while maintaining consistent visual interpretation.

Built on PineScript™ v6, the indicator transforms complex technical calculations into an easy-to-read semi-circular gauge with color-coded zones and a precision needle indicator. Each of the 13 available metrics has been carefully normalized to a 0-100 scale, ensuring that whether you’re analyzing RSI, volume trends, or volatility extremes, the visual interpretation remains consistent and intuitive.

The gauge is designed for traders who value efficiency and clarity. By consolidating multiple analytical perspectives into one compact display, you can quickly assess market conditions without the visual noise of traditional multi-indicator setups. All metrics are non-overlapping, meaning each provides unique insights into different aspects of market behavior.

🚀 Points of Innovation
  • 13 selectable metrics covering momentum, volume, volatility, trend, and statistical analysis, all accessible through a single dropdown menu
  • Universal 0-100 normalization system that standardizes different indicator scales for consistent visual interpretation across all metrics
  • Semi-circular gauge design with 21 arc segments providing smooth precision and clear visual feedback through color-coded zones
  • Non-redundant metric selection ensuring each indicator provides unique market insights without analytical overlap
  • Advanced metrics including MFI (volume-weighted momentum), CCI (statistical deviation), Volatility Rank (extended lookback), Trend Strength (ADX-style), Choppiness Index, Volume Trend, and Price Distance from MA
  • Flexible positioning system with 5 chart locations, 3 size options, and fully customizable color schemes for optimal workspace integration


🔧 Core Components
  • Metric Selection Engine: Dropdown interface allowing instant switching between 13 different technical indicators, each with independent parameter controls
  • Normalization System: All metrics converted to 0-100 scale using indicator-specific algorithms that preserve the statistical significance of each measurement
  • Semi-Circular Gauge: Visual display using 21 arc segments arranged in curved formation with two-row thickness for enhanced visibility
  • Color Zone System: Three distinct zones (0-40 green, 40-70 yellow, 70-100 red) providing instant visual feedback on metric extremes
  • Needle Indicator: Dynamic pointer that positions across the gauge arc based on precise current metric value
  • Table Implementation: Professional table structure ensuring consistent positioning and rendering across different chart configurations


🔥 Key Features
  • RSI (Relative Strength Index): Classic momentum oscillator measuring overbought/oversold conditions with adjustable period length (default 14)
  • Stochastic Oscillator: Compares closing price to price range over specified period with smoothing, ideal for identifying momentum shifts
  • MFI (Money Flow Index): Volume-weighted RSI that combines price movement with volume to measure buying and selling pressure intensity
  • CCI (Commodity Channel Index): Measures statistical deviation from average price, normalized from typical -200 to +200 range to 0-100 scale
  • Williams %R: Alternative overbought/oversold indicator using high-low range analysis, inverted to match 0-100 scale conventions
  • Volume %: Current volume relative to moving average expressed as percentage, capped at 100 for extreme spikes
  • Volume Trend: Cumulative directional volume flow showing whether volume is flowing into up moves or down moves over specified period
  • ATR Percentile: Current Average True Range position within historical range using specified lookback period (default 100 bars)
  • Volatility Rank: Close-to-close volatility measured against extended historical range (default 252 days), differs from ATR in calculation method
  • Momentum: Rate of change calculation showing price movement speed, centered at 50 and normalized to 0-100 range
  • Trend Strength: ADX-style calculation using directional movement to quantify trend intensity regardless of direction
  • Choppiness Index: Measures market choppiness versus trending behavior, where high values indicate ranging markets and low values indicate strong trends
  • Price Distance from MA: Measures current price over-extension from moving average using standard deviation calculations


🎨 Visualization
  • Semi-Circular Arc Display: Curved gauge spanning from 0 (left) to 100 (right) with smooth progression and two-row thickness for visibility
  • Color-Coded Zones: Green zone (0-40) for low/oversold conditions, yellow zone (40-70) for neutral readings, red zone (70-100) for high/overbought conditions
  • Needle Indicator: Downward-pointing triangle (▼) positioned precisely at current metric value along the gauge arc
  • Scale Markers: Vertical line markers at 0, 25, 50, 75, and 100 positions with corresponding numerical labels below
  • Title Display: Merged cell showing “𓄀 PhenLabs” branding plus currently selected metric name in monospace font
  • Large Value Display: Current metric value shown with two decimal precision in large text directly below title
  • Table Structure: Professional table with customizable background color, text color, and transparency for minimal chart obstruction


תמונת-בזק

📖 Usage Guidelines
Metric Selection
  • Select Metric: Default: RSI | Options: RSI, Stochastic, Volume %, ATR Percentile, Momentum, MFI (Money Flow), CCI (Commodity Channel), Williams %R, Volatility Rank, Trend Strength, Choppiness Index, Volume Trend, Price Distance | Choose the technical indicator you want to display on the gauge based on your current analytical needs


RSI Settings
  • RSI Length: Default: 14 | Range: 1+ | Controls the lookback period for RSI calculation, shorter periods increase sensitivity to recent price changes


Stochastic Settings
  • Stochastic Length: Default: 14 | Range: 1+ | Lookback period for stochastic calculation comparing close to high-low range
  • Stochastic Smooth: Default: 3 | Range: 1+ | Smoothing period applied to raw stochastic value to reduce noise and false signals


Volume Settings
  • Volume MA Length: Default: 20 | Range: 1+ | Moving average period used to calculate average volume for comparison with current volume
  • Volume Trend Length: Default: 20 | Range: 5+ | Period for calculating cumulative directional volume flow trend


ATR and Volatility Settings
  • ATR Length: Default: 14 | Range: 1+ | Period for Average True Range calculation used in ATR Percentile metric
  • ATR Percentile Lookback: Default: 100 | Range: 20+ | Historical range used to determine current ATR position as percentile
  • Volatility Rank Lookback (Days): Default: 252 | Range: 50+ | Extended lookback period for Volatility Rank metric using close-to-close volatility


Momentum and Trend Settings
  • Momentum Length: Default: 10 | Range: 1+ | Lookback period for rate of change calculation in Momentum metric
  • Trend Strength Length: Default: 20 | Range: 5+ | Period for directional movement calculations in ADX-style Trend Strength metric


Advanced Metric Settings
  • MFI Length: Default: 14 | Range: 1+ | Lookback period for Money Flow Index calculation combining price and volume
  • CCI Length: Default: 20 | Range: 1+ | Period for Commodity Channel Index statistical deviation calculation
  • Williams %R Length: Default: 14 | Range: 1+ | Lookback period for Williams %R high-low range analysis
  • Choppiness Index Length: Default: 14 | Range: 5+ | Period for calculating market choppiness versus trending behavior
  • Price Distance MA Length: Default: 50 | Range: 10+ | Moving average period used for Price Distance standard deviation calculation


Visual Customization
  • Position: Default: Top Right | Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Right | Controls gauge placement on chart for optimal workspace organization
  • Size: Default: Normal | Options: Small, Normal, Large | Adjusts overall gauge dimensions and text size for different monitor resolutions and preferences
  • Low Zone Color (0-40): Default: Green (#00FF00) | Customize color for low/oversold zone of gauge arc
  • Medium Zone Color (40-70): Default: Yellow (#FFFF00) | Customize color for neutral/medium zone of gauge arc
  • High Zone Color (70-100): Default: Red (#FF0000) | Customize color for high/overbought zone of gauge arc
  • Background Color: Default: Semi-transparent dark gray | Customize gauge background for contrast and chart integration
  • Text Color: Default: White (#FFFFFF) | Customize all text elements including title, value, and scale labels


✅ Best Use Cases
  • Quick visual assessment of market conditions when you need instant feedback on whether an asset is in extreme territory across multiple analytical dimensions
  • Workspace organization for traders who monitor multiple indicators but want to reduce chart clutter and visual complexity
  • Metric comparison by switching between different indicators while maintaining consistent visual interpretation through the 0-100 normalization
  • Overbought/oversold identification using RSI, Stochastic, Williams %R, or MFI depending on whether you prefer price-only or volume-weighted analysis
  • Volume analysis through Volume %, Volume Trend, or MFI to confirm price movements with corresponding volume characteristics
  • Volatility monitoring using ATR Percentile or Volatility Rank to identify expansion/contraction cycles and adjust position sizing
  • Trend vs range identification by comparing Trend Strength (high values = trending) against Choppiness Index (high values = ranging)
  • Statistical over-extension detection using CCI or Price Distance to identify when price has deviated significantly from normal behavior
  • Multi-timeframe analysis by duplicating the gauge on different timeframe charts to compare metric readings across time horizons
  • Educational purposes for new traders learning to interpret technical indicators through consistent visual representation


⚠️ Limitations
  • The gauge displays only one metric at a time, requiring manual switching to compare different indicators rather than simultaneous multi-metric viewing
  • The 0-100 normalization, while providing consistency, may obscure the raw values and specific nuances of each underlying indicator
  • Table-based visualization cannot be exported or saved as an image separately from the full chart screenshot
  • Optimal parameter settings vary by asset type, timeframe, and market conditions, requiring user experimentation for best results


💡 What Makes This Unique
  • Unified Multi-Metric Interface: The only gauge-style indicator offering 13 distinct metrics through a single interface, eliminating the need for multiple oscillator panels
  • Non-Overlapping Analytics: Each metric provides genuinely unique insights—MFI combines volume with price, CCI measures statistical deviation, Volatility Rank uses extended lookback, Trend Strength quantifies directional movement, and Choppiness Index measures ranging behavior
  • Universal Normalization System: All metrics standardized to 0-100 scale using indicator-appropriate algorithms that preserve statistical meaning while enabling consistent visual interpretation
  • Professional Visual Design: Semi-circular gauge with 21 arc segments, precision needle positioning, color-coded zones, and clean table implementation that maintains clarity across all chart configurations
  • Extensive Customization: Independent parameter controls for each metric, five position options, three size presets, and full color customization for seamless workspace integration


🔬 How It Works
1. Metric Calculation Phase:
  • All 13 metrics are calculated simultaneously on every bar using their respective algorithms with user-defined parameters
  • Each metric applies its own specific calculation method—RSI uses average gains vs losses, Stochastic compares close to high-low range, MFI incorporates typical price and volume, CCI measures deviation from statistical mean, ATR calculates true range, directional indicators measure up/down movement, and statistical metrics analyze price relationships


2. Normalization Process:
  • Each calculated metric is converted to a standardized 0-100 scale using indicator-appropriate transformations
  • Some metrics are naturally 0-100 (RSI, Stochastic, MFI, Williams %R), while others require scaling—CCI transforms from ±200 range, Momentum centers around 50, Volume ratio caps at 2x for 100, ATR and Volatility Rank calculate percentile positions, and Price Distance scales by standard deviations


3. Gauge Rendering:
  • The selected metric’s normalized value determines the needle position across 21 arc segments spanning 0-100
  • Each arc segment receives its color based on position—segments 0-8 are green zone, segments 9-14 are yellow zone, segments 15-20 are red zone
  • The needle indicator (▼) appears in row 5 at the column corresponding to the current metric value, providing precise visual feedback


4. Table Construction:
  • The gauge uses TradingView’s table system with merged cells for title and value display, ensuring consistent positioning regardless of chart configuration
  • Rows are allocated as follows: Row 0 merged for title, Row 1 merged for large value display, Row 2 for spacing, Rows 3-4 for the semi-circular arc with curved shaping, Row 5 for needle indicator, Row 6 for scale markers, Row 7 for numerical labels at 0/25/50/75/100
  • All visual elements update on every bar when barstate.islast is true, ensuring real-time accuracy without performance impact


💡 Note:
This indicator is designed for visual analysis and market condition assessment, not as a standalone trading system. For best results, combine gauge readings with price action analysis, support and resistance levels, and broader market context. Parameter optimization is recommended based on your specific trading timeframe and asset class. The gauge works on all timeframes but may require different parameter settings for intraday versus daily/weekly analysis. Consider using multiple instances of the gauge set to different metrics for comprehensive market analysis without switching between settings.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.