OPEN-SOURCE SCRIPT

TTM Squeeze Pro with EMAs and Scans

181
istantanea

TTM Squeeze Pro with EMAs and Scans

Overview:
This indicator combines the classic TTM Squeeze methodology with a robust set of Exponential Moving Averages (EMAs) and advanced scanning capabilities. Designed for traders who want to monitor momentum, squeeze conditions, and trend alignments simultaneously, it provides a comprehensive toolkit for technical analysis.

Key Features:
1. **TTM Squeeze Logic**:
- Uses Bollinger Bands and Keltner Channels to identify four squeeze states: No Squeeze (Green), Low Squeeze (Black), Mid Squeeze (Red), and High Squeeze (Orange).
- Plots squeeze dots and a momentum histogram in a lower pane for easy visualization.

2. **Exponential Moving Averages (EMAs)**:
- Overlays 7 EMAs on the price chart: 8, 21, 34, 55, 89, 144, and 233.
- Trend-based coloring: Rising EMAs in bright shades (e.g., Lime, Yellow, Fuchsia), falling in darker shades (e.g., Green, Orange, Red).

3. **Scan Alerts**:
- Transition Alerts: Squeeze Started, High Squeeze Started, Squeeze Fired, High Squeeze Fired, plus individual Low/Mid/No Squeeze Fired events.
- EMA Alignment Alerts: EMA 8>21, EMA 34>55>89, and EMA 89>144>233 for spotting bullish trends.
- State Alerts: Current squeeze condition (No, Low, Mid, High).

4. **Scan Columns (Data Window)**:
- Days since last No, Low, Mid, High Squeeze, and High Squeeze Fired.
- Percentage distance from the 52-week low (% From 52wk Low).

Usage:
- **Chart**: Apply to any symbol to see squeeze states, momentum, and EMAs in action.
- **Alerts**: Set up alerts for squeeze transitions, firings, or EMA alignments to catch key moments.
- **Watchlist**: Use scan columns in a watchlist (Premium feature) to monitor multiple symbols.
- **Customization**: Adjust squeeze length and multipliers via inputs to suit your trading style.

Inputs:
- TTM Squeeze Length (default: 20)
- Bollinger Band STD Multiplier (default: 2.0)
- Keltner Channel Multipliers: High (1.0), Mid (1.5), Low (2.0)
- Alert Toggles: Price Action Squeeze, Squeeze Firing

Notes:
- Optimized for daily charts (252 bars ≈ 52 weeks), but works on any timeframe—interpret "days" as bars.
- Colors are TradingView-standard and distinct for clarity.


Enjoy trading with this all-in-one squeeze and trend tool!

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.