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).
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Follow @i2gain on X.COM
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Follow @i2gain on X.COM
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.