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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。