OPEN-SOURCE SCRIPT
Put Call Ratio Bollinger Bands

WHAT IT DOES:
Plots the CBOE equity put/call ratio with Bollinger Bands to create an adaptive, self-calibrating sentiment gauge. Unlike fixed thresholds (e.g., "P/C > 0.90 = fear"), the Bollinger Bands adjust to the current regime, so the indicator works whether VIX is at 12 or 35.
HOW TO READ IT:
• Ratio touches UPPER Bollinger Band = ELEVATED FEAR / HEAVY PUT BUYING Contrarian bullish signal. Crowd is heavily hedged or bearish. Good entry zone for: bull put spreads, cash-secured puts, or selling put premium generally. Mean reversion favors sellers.
• Ratio touches LOWER Bollinger Band = COMPLACENCY / HEAVY CALL BUYING Contrarian bearish warning. Crowd is aggressively bullish. Tighten stops, add protective puts, reduce bullish exposure, or initiate bear call spreads.
• Ratio near MIDDLE band = NEUTRAL — no extreme sentiment signal Follow your primary regime strategy without sentiment override.
ADDITIONAL FEATURES:
• Equity-only vs. Total P/C ratio toggle (equity-only is more retail-focused)
• Divergence detection: when price makes new highs but P/C ratio rises (smart money hedging into strength = distribution warning)
• Smoothing options to reduce daily noise
WORKS WITH: VIX Term Structure + VIX Z-Score for full regime system
Plots the CBOE equity put/call ratio with Bollinger Bands to create an adaptive, self-calibrating sentiment gauge. Unlike fixed thresholds (e.g., "P/C > 0.90 = fear"), the Bollinger Bands adjust to the current regime, so the indicator works whether VIX is at 12 or 35.
HOW TO READ IT:
• Ratio touches UPPER Bollinger Band = ELEVATED FEAR / HEAVY PUT BUYING Contrarian bullish signal. Crowd is heavily hedged or bearish. Good entry zone for: bull put spreads, cash-secured puts, or selling put premium generally. Mean reversion favors sellers.
• Ratio touches LOWER Bollinger Band = COMPLACENCY / HEAVY CALL BUYING Contrarian bearish warning. Crowd is aggressively bullish. Tighten stops, add protective puts, reduce bullish exposure, or initiate bear call spreads.
• Ratio near MIDDLE band = NEUTRAL — no extreme sentiment signal Follow your primary regime strategy without sentiment override.
ADDITIONAL FEATURES:
• Equity-only vs. Total P/C ratio toggle (equity-only is more retail-focused)
• Divergence detection: when price makes new highs but P/C ratio rises (smart money hedging into strength = distribution warning)
• Smoothing options to reduce daily noise
WORKS WITH: VIX Term Structure + VIX Z-Score for full regime system
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.