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).
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Follow @i2gain on X.COM
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Follow @i2gain on X.COM
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.