Intensity 3D Balls with Volume Boost Indicator
- Indicatori
- Mahmoud Ahmed Abdou Ali
- Versione: 1.40
- Attivazioni: 5
3D Intensity Balls with Volume Boost Indicator v1.4
A sophisticated MetaTrader 5 custom indicator that visualizes price-level trading intensity using dynamically-sized, photorealistic 3D spheres rendered on the chart canvas, enhanced with volume-based scaling and advanced visual effects.
Core Functionality
Price Distribution Analysis:
Divides each candle's price range into configurable levels (default: 50)
Samples tick data to measure time-at-price (price dwell intensity)
Visualizes concentration of trading activity at specific price levels
3D Ball Rendering:
Each price level rendered as a gradient-shaded sphere
Ball size represents trading intensity at that price level
Photorealistic lighting with configurable angle, specular highlights, and shadows
Optional glow effects for high-intensity levels
Volume Integration (NEW in v1.4):
Four volume boost modes:
MULTIPLY: Scales ball size by volume ratio (high volume = larger balls)
ADD: Adds pixels based on volume above average
BLEND: 50/50 mix of intensity-based and volume-based sizing
OFF: Pure intensity-only mode
Color brightening for high-volume bars
Volume ratio indicator bar beneath each candle
Global volume tracking and comparison to average
Visual Features
Bull/Bear Separation:
Bullish balls (close ≥ open) rendered separately from bearish
4 split modes: Left/Right, Offset, Overlay, Alternate
5 color themes each for bulls (Green/Cyan/Blue/Gold/White) and bears (Red/Magenta/Orange/Purple/Crimson)
Point of Control (POC):
Highlights price level with highest trading activity per bar
Optional ring markers and connecting lines across bars
Separate colors for bull/bear POC
Advanced Rendering:
Gradient sphere shading with normal mapping
Dynamic lighting (135° default, configurable)
Specular highlights and rim lighting
Optional soft shadow effects
Three glow modes: Soft, Ring, Halo
Interactive Elements:
Mouse hover tooltips showing detailed bar statistics
Live volume ratio display
Mini profile histogram in tooltip
Stats panel with global metrics
Technical Implementation
Canvas-based rendering for full pixel control
Intelligent caching (up to 800 bars) with automatic invalidation
Dynamic chart scaling detection and redraw
Tick data sampling with fallback to synthetic distribution
Anti-aliased sphere edges with alpha blending
100ms timer-based refresh for smooth updates
Performance Optimizations:
Viewport culling (only renders visible bars)
Configurable max tick sampling (prevents slowdown on high-frequency data)
Incremental cache updates
Dirty-state tracking to avoid unnecessary redraws
Key Input Parameters
Category Key Settings
Intensity Levels (50), Min/Max radius (2-24px), Size scaling (SQRT/Linear/Log/Cubic)
Volume Boost mode, Multiplier (0.5-5.0x), Max cap, Color brightening toggle
Visual Bull/Bear themes, Opacity, Split mode, 3D lighting angle
Effects Glow mode, Shadows, Specular highlights, POC markers
Use Cases
Volume Profile Alternative: Real-time price-time distribution without separate indicator window
High-Volume Level Detection: Instantly identify accumulation/distribution zones via oversized balls
Support/Resistance Validation: POC lines reveal institutional interest levels
Market Microstructure Analysis: See exact tick distribution within candle ranges
Multi-Timeframe Context: Quickly assess bar-by-bar battle zones between bulls/bears
