OPEN-SOURCE SCRIPT

Multi-Timeframe TTM Squeeze Pro with alerts and screeners

84
Based of John Carters TTM Squeeze. Must open the settings and select wether you want to match the timeframe in your chart. This must be done in the pinescreener as well otherwise results will not be correct.

---

# **Squeeze Momentum Pro – Enhanced Screener + EMA Cross Alerts**

This custom version of the Squeeze Momentum indicator expands the standard TTM-style squeeze with screening and automated alert logic so you can quickly find high-quality setups across many tickers.

---

## **What This Script Does**

This indicator plots a three-level squeeze visual similar to TTM Squeeze:
Dot meanings in this indicator

Orange dot:
Strongest squeeze – Bollinger Bands are inside the tightest Keltner level (highest volatility compression).

Red dot:
Medium squeeze – still compressed, but not as tight as orange.

Black dot:
Weak squeeze / lowest level of volatility compression.
Price is coiling, but not as tight as the higher levels.

Green dot (“Fired”):
Squeeze has released — Bollinger Bands have expanded out of the channels and momentum is moving.

A momentum histogram is plotted to show directional pressure during the squeeze.

---

## **Major Improvements Added**

### **① Screenable Conditions for Stock Scanners**

This version includes multiple `alertcondition()` flags so the script can be used as a **Pine Screener inside TradingView**.

Currently it can screen for:

✔ Price closing above the 50-SMA
✔ Presence of an **orange (strong) squeeze dot**
✔ 6/20 EMA crossover signals inside a squeeze

These can be used inside the TradingView Screener or in watchlists to automatically highlight qualifying tickers.

---

### **② 6/20 EMA Trend Signals (Filtered by Squeeze)**

A crossover system was added:

* **Bullish Signal:** 6 EMA crosses above 20 EMA
* **Bearish Signal:** 6 EMA crosses below 20 EMA

But **these signals only trigger if the market is in a red or orange squeeze**, which helps remove noise and focus on valid setups.

---

### **③ Visual Markers Under the Histogram**

Whenever an EMA crossover occurs during a squeeze:

* A **green up-triangle** is plotted for a bullish cross
* A **red down-triangle** for a bearish cross

These markers are drawn **below the histogram**, keeping the display clean while still providing quick visual cues.

---

### **④ Fully Non-Repainting Logic**

All signals and squeeze calculations are based on standard fully-resolved `ta.*` functions, making the results stable both in backtesting and real-time.

---

## **Who This Script Helps**

This version is ideal for:

* Traders who use TradingView’s screener and want automated breakout/continuation filtering
* Traders who scan large watchlists for squeeze setups
* Users who want trend confirmation during volatility compression

---

## **How to Use It**

1. Add the script to your chart
2. Open TradingView Alerts or Screener
3. Select the conditions you want, for example:

* *“Orange Squeeze Detected”*
* *“Squeeze Fire after 3 squeeze dots*
* *“4 REd Dots in a row.”*
* *“Buy Alert”*
* *“EMA 6/20 Bullish Crossover (Squeeze Only)”*
* *“Close Above 50 SMA”*

Once active, TradingView will automatically flag symbols that meet the criteria.

---

## **Summary**

This enhanced Squeeze Momentum indicator turns the standard TTM-style visual into a **true screening and alert system** by adding:

* Multi-level squeezes
* EMA trend signals
* Screener-compatible alert conditions
* Clean visual signals
* Non-repainting logic

It helps traders quickly locate high-probability setups across any watchlist or market.


Penafian

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.