OPEN-SOURCE SCRIPT
PG Quant Sentiment Index & Dashboard

Strategy Summary: Quant Sentiment & Volatility MasterThis system is a hybrid quantitative engine designed to filter market noise by combining Derivative Sentiment with Volatility Analysis.
How it Works:
The Volatility Engine (VH): * It identifies high-conviction "stances" (Bullish/Bearish) using a 5 EMA and high volume.It measures volatility speed via an ATR Crossover. If the fast ATR is above the slow ATR, volatility is accelerating (
SCORE \pm 2$). If below, volatility is consolidating (
SCORE \pm 1$).This score provides a structural "context" that stays persistent even during quiet bars.
The Sentiment Engine (WSI): * It tracks Strike-level Put-Call Ratios (PCR) for Price and Volume, alongside Daily and Hourly Open Interest (OI) build-ups.This data is aggregated into a Weight-Sum Index (WSI).
The Dashboard: * The dashboard calculates a live score for each metric. The final WSI Smooth (highlighted in Dark Blue) is the master signal. BULLISH/BEARISH states are triggered only when the sentiment index reverses by a specific percentage threshold, ensuring you only catch significant trend shifts.
The Visuals: * Histogram Bars: Represent raw market sentiment.
Solid Line: The smoothed WSI, colored dynamically to represent market status (Recovering, Bullish, Dropping, or Bearish).
How it Works:
The Volatility Engine (VH): * It identifies high-conviction "stances" (Bullish/Bearish) using a 5 EMA and high volume.It measures volatility speed via an ATR Crossover. If the fast ATR is above the slow ATR, volatility is accelerating (
The Sentiment Engine (WSI): * It tracks Strike-level Put-Call Ratios (PCR) for Price and Volume, alongside Daily and Hourly Open Interest (OI) build-ups.This data is aggregated into a Weight-Sum Index (WSI).
The Dashboard: * The dashboard calculates a live score for each metric. The final WSI Smooth (highlighted in Dark Blue) is the master signal. BULLISH/BEARISH states are triggered only when the sentiment index reverses by a specific percentage threshold, ensuring you only catch significant trend shifts.
The Visuals: * Histogram Bars: Represent raw market sentiment.
Solid Line: The smoothed WSI, colored dynamically to represent market status (Recovering, Bullish, Dropping, or Bearish).
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Follow @i2gain on X.COM
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Follow @i2gain on X.COM
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。