TradingView
Beardy_Fred
21 ינו׳ 2022 13:40

Multi-Timeframe TTM Squeeze Pro 

SPDR S&P 500 ETF TRUSTArca

תיאור


IMPORTANT NOTE:
-> The timeframe for this indicator must be set at 1 minute;
-> If the chart timeframe is higher than 1 minute, the results shown in the table for timeframes lower than the chart will not be correct;
-> Tradingview's own documentation explains this as follows: "It is not recommended to request data of a timeframe lower that the current chart timeframe, for example 1 minute data from a 5 minutes chart. The main problem with such a case is that some part of a 1 minute data will be inevitably lost, as it’s impossible to display it on a 5 minutes chart and not to break the time axis. In such cases the behavior of security can be rather unexpected"; and
-> It is therefore recommended that this indicator is placed in a standalone 1min chart window, and the window resized to only show the table to avoid any issues.

Credits:
-> John Carter creating the TTM Squeeze and TTM Squeeze Pro
-> Lazybear's original interpretation of the TTM Squeeze: Squeeze Momentum Indicator
-> Makit0's evolution of Lazybear's script to factor in the TTM Squeeze Pro upgrades - Squeeze PRO Arrows

This is my version of their collective works, with amendments primarily to the Squeeze Conditions to more accurately reflect the color coding used by the official TMM Squeeze Pro indicator.

TTM Squeeze Guide
For those unfamiliar with the TTM Squeeze, it is simply a visual way of seeing how Bollinger Bands (standard deviations from a simple moving average ) relate to Keltner Channels ( average true range bands) compared with the momentum of the price action. The concept is that as Bollinger Bands compress within Keltner Channels , price volatility decreases, giving way for a potential explosive price movement up or down.

Differences between the original TTM Squeeze and TTM Squeeze Pro:
-> Both use a 2 standard deviation Bollinger Band ;
-> The original squeeze only used a 1.5 ATR Keltner Channel; and
-> The pro version uses 1.0, 1.5 and 2.0 ATR Keltner Channels .
The pro version therefore helps differentiate between levels of squeeze (compression) as the Bollinger Bands moves through the Keltner Channels i.e. the greater the compression, the more potential for explosive moves - less compression means more squeezing.

The Histogram shows price momentum whereas the colored dots (along the zeroline) show where the Bollinger Bands are in relation to the Keltner Channels:
-> Cyan Bars = positive, increasing momentum;
-> Blue Bars = positive, decreasing momentum (indication of a reversal in price direction);
-> Red Bars = negative, increasing momentum;
-> Yellow Bars = negative, decreasing momentum (indication of a reversal in price direction);
-> Orange Dots = High Compression / large squeeze (One or both of the Bollinger Bands is inside the 1st (1.0 ATR) Keltner Channel);
-> Red Dots = Medium Squeeze (One or both of the Bollinger Bands is inside the 2nd (1.5 ATR) Keltner Channel);
-> Black Dots = Low compression / wide squeeze (One or both of the Bollinger Bands is inside the 3rd (2.0 ATR) Keltner Channels );
-> Green Dots = No Squeeze / Squeeze Fired (One or both of the Bollinger Bands is outside of the 3rd (2.0 ATR) Keltner Channel).

Ideal Scenario:
As the ticker enters the squeeze, black dots would warn of the beginning of a low compression squeeze. As the Bollinger bands continue to constrict within the Keltner Channels , red dots would highlight a medium compression. As the price action and momentum continues to compress an orange dot shows warning of high compression. As price action leaves the squeeze, the coloring would reverse e.g. orange to red to black to green. Any compression squeeze is considered fired at the first green dot that appears.

Note: This is an ideal progression of the different types of squeezes, however any type of squeeze (and color sequence) may appear at anytime, therefore the focus is primarily on the green dots after any type of compression.

Entry and Exit Guide:
-> John Carter recommends entering a position after at least 5 black dots or wait for 1st green dot ; and
-> Exit on second blue or yellow bar or, alternatively, remain in the position after confirming a continuing trend through a separate indicator.

Standalone Indicator:
The indicator (which can be used on any timeframe) can be found here:
tradingview.com/script/0drMdHsO-TTM-Squeeze-Pro/

הערות שחרור

Added input options to change histogram and dot color schemes
תגובות
sunman2005in
Hi @Beardy_Fred, love you indicator. I am not seeing any issues with respect to using any TF chart. All the data shows on the lower timeframe is correct. like example, I can be on the Weekly timeframe and all the lower timeframe data is showing correct. I dont have to be on 1 minute timeframe to see the higher timeframes. I can be on any timeframe. LTF is showing correctly on the HFT. So wondering if the issue is now resolved? Any comments
AlphasOnly
@sunman2005in, when is the right time to enter on the boxes? how can i count the dots like the ttm squeeze pro format?
FlamingoBlue
Could this be made into a scanner?
Beardy_Fred
@FlamingoBlue, yes, its possible but not like the built-in Tradingview scanner. You would have to select the stocks you want to monitor (up to 40 requests is the current limit with pine script for 1 indicator, so 9 timeframes would allow 4 symbols in total) and the MTF TTM could then be shown for in a large table. Example screener: Search Custom Multi-Timeframe Indicator
by QuantNomad
zschonn
@Beardy_Fred I've tried this indicator & results were great. Why don't you fix this indicator to the1 min chart ? at least users like me who are use to trade with 15m to HTF chart won't need to get back often on 1min chart, because figures are completely change in case of jumping to other TF. Hope you will consider it. Stay blessed
Beardy_Fred
@zschonn, the code is released open source to give users the option to choose their own timeframes. The problem with using the code as released means, if you're on a HTF, the LTF values will be wrong (it's a limitation with TV's code and nothing I can fix)
zschonn
@Beardy_Fred, Many thanks @Beardy_Fred , your indicator has become the most mandatory tool for my day trading strategies. I wish you good luck for your future work.
zschonn
Thanks for the indicator. I don't understand what is the difference between +Falling momentum & -Rising momentum ?
Beardy_Fred
@zschonn, in a nutshell the momentum histogram values show how far the current price is above or below the average, so positive falling means current price is dropping back to the average, whereas negative rising means the current price is rising up to the average price.

The momentum part of this indicator is 1) calculate the Donchian midline for the length specified (average of (Highest high in 20 periods + lowest low in 20 periods)); 2) calculate the SMA of the close for the same length; 3) calculate the delta between the close and the average of the Donchian midline and SMA values; and 4) use linear regression (find the line of best fit) on the delta values to smooth them.
lasf25179
Hello. Can you make the indicator show the squeezes of more pairs in the same chart? Thank you.
עוד