OPEN-SOURCE SCRIPT
VCP Historical Score Histogram PM

📊 VCP Historical Score Histogram [Mayya Capital]
The VCP Historical Score Histogram is a specialized companion tool to the Pro Dashboard, designed to visualize the "silent" contraction of volatility over the history of a stock. While standard price action can look random, the VCP Score reveals the underlying institutional accumulation and the precise moments when a stock becomes "tight" enough to explode.
🔍 Why Use the Histogram?
VCP (Volatility Contraction Pattern) trading is all about timing. This indicator maps the multi-metric VCP Scoring Engine (0-100) across every bar on the chart, allowing you to identify Volatility Cyclicity.
By observing the score historically, you can:
Spot Accumulation: See the score gradually climbing from <30 to >70 as the "weak hands" are shaken out.
Verify Tightness: Historically correlate price consolidations with BBW (Bollinger Band Width) percentiles.
Detect Energy Buildup: High scores sustained over many weeks indicate a "coiled spring" setup.
🎨 Visual Intelligence
The histogram uses a sophisticated color-coding system to help you interpret the setup at a glance:
🔥 Emerald Green (70 - 100): High Conviction Zone. The stock is in a maximum contraction state with bullish trend alignment and high relative strength.
🟡 Gold (50 - 69): Watchlist Zone. Volatility is contracting, but the setup may need one more "t" (tightening) or a volume dry-up.
🔘 Slate Grey (< 50): Standard/Loose Action. The stock is either in a broad base or hasn't yet entered a high-probability VCP state.
⚡ Key Features
Peak Labeling: Automatically identifies and labels local score peaks, helping you find historical pivot highs where the setup was at its "tightest."
Squeeze Persistence: Features a built-in background highlight for TTM Squeeze states, allowing you to see how many bars the price has remained compressed before a move.
Benchmark Integration: Directly compares the symbol's momentum against a benchmark (like NIFTY 500) to ensure you are only trading the leaders of the market.
📉 Best Used With
This script is designed to be placed in a separate pane below the price chart. To complete the professional setup, use it alongside the VCP Pro Single Symbol Dashboard to have both deep-dive live metrics and historical trend visibility.
Methodology: Ported from Mayya Capital's quantitative VCP strategy research, focusing on Bollinger Band Width contraction, RVOL dry-ups, and 52-week high proximity.
"In the stock market, quiet action is often the precursor to loud gains."
The VCP Historical Score Histogram is a specialized companion tool to the Pro Dashboard, designed to visualize the "silent" contraction of volatility over the history of a stock. While standard price action can look random, the VCP Score reveals the underlying institutional accumulation and the precise moments when a stock becomes "tight" enough to explode.
🔍 Why Use the Histogram?
VCP (Volatility Contraction Pattern) trading is all about timing. This indicator maps the multi-metric VCP Scoring Engine (0-100) across every bar on the chart, allowing you to identify Volatility Cyclicity.
By observing the score historically, you can:
Spot Accumulation: See the score gradually climbing from <30 to >70 as the "weak hands" are shaken out.
Verify Tightness: Historically correlate price consolidations with BBW (Bollinger Band Width) percentiles.
Detect Energy Buildup: High scores sustained over many weeks indicate a "coiled spring" setup.
🎨 Visual Intelligence
The histogram uses a sophisticated color-coding system to help you interpret the setup at a glance:
🔥 Emerald Green (70 - 100): High Conviction Zone. The stock is in a maximum contraction state with bullish trend alignment and high relative strength.
🟡 Gold (50 - 69): Watchlist Zone. Volatility is contracting, but the setup may need one more "t" (tightening) or a volume dry-up.
🔘 Slate Grey (< 50): Standard/Loose Action. The stock is either in a broad base or hasn't yet entered a high-probability VCP state.
⚡ Key Features
Peak Labeling: Automatically identifies and labels local score peaks, helping you find historical pivot highs where the setup was at its "tightest."
Squeeze Persistence: Features a built-in background highlight for TTM Squeeze states, allowing you to see how many bars the price has remained compressed before a move.
Benchmark Integration: Directly compares the symbol's momentum against a benchmark (like NIFTY 500) to ensure you are only trading the leaders of the market.
📉 Best Used With
This script is designed to be placed in a separate pane below the price chart. To complete the professional setup, use it alongside the VCP Pro Single Symbol Dashboard to have both deep-dive live metrics and historical trend visibility.
Methodology: Ported from Mayya Capital's quantitative VCP strategy research, focusing on Bollinger Band Width contraction, RVOL dry-ups, and 52-week high proximity.
"In the stock market, quiet action is often the precursor to loud gains."
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.