OPEN-SOURCE SCRIPT
Quant Squeeze: Institutional Grade

Quant Squeeze: Institutional Grade
This indicator is a comprehensive volatility trading system designed to identify high-probability Breakouts and Reversions using a quantitative scoring engine (0-100). It combines the classic TTM Squeeze logic with Multi-Timeframe (MTF) trend filtering, Statistical Volume analysis, and Linear Momentum.
Key Features:
Institutional Squeeze Logic: Identifies periods where Bollinger Bands (2.0) contract inside Keltner Channels (1.5). This indicates potential energy accumulation.
Quantitative Scoring (0-100): Every signal is graded based on 5 factors: Trend Alignment, Volume Strength, Momentum Delta, Squeeze Duration (Energy), and RSI Context.
MTF Trend Filter: Confirms the current chart signal with a Higher Timeframe (e.g., Daily) trend to filter out fake-outs.
Hybrid Volume Engine:
Sniper Mode (BB): Uses Bollinger Bands on the Volume oscillator to detect statistical anomalies (Best for Crypto/Forex).
Sensitive Mode (SMA): Uses a simpler threshold for low-float or lower liquidity assets.
Kill Zone Protection: Automatically disables "Reversion" signals immediately after a Squeeze fires, preventing trading against a fresh explosion.
Dashboard: A real-time table displays the current Market Phase, Momentum direction, HTF Trend status, and Risk Targets (SL/TP based on ATR).
3. Operational Guide: How to read the chart
The indicator visualizes the market in a 3-Act structure. Follow the colors to understand the market phase.
Phase 1: The Squeeze (Gray Background)
What it means: The market is compressing. Volatility is low, and energy is building up (Accumulation).
Action: WAIT. Do not enter trades here.
Context: Watch the dashboard. The "Energy" of the squeeze increases the longer this phase lasts. Longer squeezes often result in more explosive moves.
Phase 2: The Firing Zone (Purple Background)
What it means: The Squeeze has fired. The bands have expanded, and price is breaking out.
Signals: Look for "BO" (Breakout) labels.
Strategy: This is the primary entry zone for trend-following trades.
BO + High Score (80+): Institutional Grade setup. Strong trend, volume spike, and momentum.
Note: Reversion signals are strictly disabled in this zone to protect you from catching a falling knife.
Phase 3: The Trend Run (Blue Background)
What it means: Volatility has normalized. The price is trending or ranging normally.
Signals: Look for "REV" (Reversion) labels.
Strategy: These are "Pullback" or "Mean Reversion" entries. They are only valid if they align with the trend (or if scoring suggests a high-probability scalp).
Understanding the Score (0-100)
Each signal comes with a numeric score:
65-75: Standard Setup. Good momentum, but perhaps lacking Volume or HTF confirmation.
75-85: Strong Setup. Solid confluence.
85-100: "All-In" Setup. Perfect alignment of Chart Trend, Higher Timeframe Trend, Statistical Volume Spike, and Accelerating Momentum.
This indicator is a comprehensive volatility trading system designed to identify high-probability Breakouts and Reversions using a quantitative scoring engine (0-100). It combines the classic TTM Squeeze logic with Multi-Timeframe (MTF) trend filtering, Statistical Volume analysis, and Linear Momentum.
Key Features:
Institutional Squeeze Logic: Identifies periods where Bollinger Bands (2.0) contract inside Keltner Channels (1.5). This indicates potential energy accumulation.
Quantitative Scoring (0-100): Every signal is graded based on 5 factors: Trend Alignment, Volume Strength, Momentum Delta, Squeeze Duration (Energy), and RSI Context.
MTF Trend Filter: Confirms the current chart signal with a Higher Timeframe (e.g., Daily) trend to filter out fake-outs.
Hybrid Volume Engine:
Sniper Mode (BB): Uses Bollinger Bands on the Volume oscillator to detect statistical anomalies (Best for Crypto/Forex).
Sensitive Mode (SMA): Uses a simpler threshold for low-float or lower liquidity assets.
Kill Zone Protection: Automatically disables "Reversion" signals immediately after a Squeeze fires, preventing trading against a fresh explosion.
Dashboard: A real-time table displays the current Market Phase, Momentum direction, HTF Trend status, and Risk Targets (SL/TP based on ATR).
3. Operational Guide: How to read the chart
The indicator visualizes the market in a 3-Act structure. Follow the colors to understand the market phase.
Phase 1: The Squeeze (Gray Background)
What it means: The market is compressing. Volatility is low, and energy is building up (Accumulation).
Action: WAIT. Do not enter trades here.
Context: Watch the dashboard. The "Energy" of the squeeze increases the longer this phase lasts. Longer squeezes often result in more explosive moves.
Phase 2: The Firing Zone (Purple Background)
What it means: The Squeeze has fired. The bands have expanded, and price is breaking out.
Signals: Look for "BO" (Breakout) labels.
Strategy: This is the primary entry zone for trend-following trades.
BO + High Score (80+): Institutional Grade setup. Strong trend, volume spike, and momentum.
Note: Reversion signals are strictly disabled in this zone to protect you from catching a falling knife.
Phase 3: The Trend Run (Blue Background)
What it means: Volatility has normalized. The price is trending or ranging normally.
Signals: Look for "REV" (Reversion) labels.
Strategy: These are "Pullback" or "Mean Reversion" entries. They are only valid if they align with the trend (or if scoring suggests a high-probability scalp).
Understanding the Score (0-100)
Each signal comes with a numeric score:
65-75: Standard Setup. Good momentum, but perhaps lacking Volume or HTF confirmation.
75-85: Strong Setup. Solid confluence.
85-100: "All-In" Setup. Perfect alignment of Chart Trend, Higher Timeframe Trend, Statistical Volume Spike, and Accelerating Momentum.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน