OPEN-SOURCE SCRIPT

Smart Bar Coloring: Tight Closes & Volume Breakouts

294
Advanced Bar Coloring Indicator for Price Action and Volume Analysis
This sophisticated indicator automatically colors price bars based on two key market conditions: tight closing ranges and significant volume activity, helping traders quickly identify consolidation periods and potential breakout setups.
Key Features:
Tight Close Detection:

ATR-Based Analysis: Uses 14-period ATR to define "tight" price movement
Dual-Bar Confirmation: Requires both current and previous bar to have closing ranges ≤ 20% of ATR
Consolidation Identification: Highlights periods of reduced volatility that often precede significant moves
Customizable Color: Default amber/orange highlighting for easy visual identification

Volume Breakout Detection:

Multi-Criteria Volume Analysis: Triggers when volume exceeds any of three thresholds:

150% of 20-period volume SMA
150% of recent 3-bar average volume
150% of 50-period volume SMA


Price Action Filter: Requires bullish price action (close > previous close OR close in upper 75% of range)
Smart Volume Handling: Automatically detects and works only with instruments that have volume data
Customizable Color: Default teal highlighting for volume-driven moves

Technical Analysis Applications:

Consolidation Patterns: Identify tight trading ranges before potential breakouts
Volume Confirmation: Spot high-volume moves with supportive price action
Entry Timing: Use tight closes to identify potential accumulation zones
Breakout Validation: Volume-colored bars confirm legitimate breakout attempts
Risk Management: Tight closes often indicate lower immediate volatility

How to Use:

Amber/Orange Bars: Indicate tight closing ranges - potential accumulation or consolidation
Teal Bars: Show significant volume with bullish price action - potential breakout confirmation
Normal Bars: Standard market conditions without special highlighting
Pattern Recognition: Look for clusters of tight closes followed by volume breakouts


Technical Requirements:

Works on any timeframe
Automatically adapts to instruments with or without volume data
Compatible with all chart types and drawing tools

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.