TradingView
Beardy_Fred
27 נוב׳ 2021 16:02

TTM Squeeze Pro 

Apple Inc.NASDAQ

תיאור

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.

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.

הערות שחרור

Changed the overlay setting so that the indicator moves to a new pane when added

הערות שחרור

Updated to include input options for Bollinger Bands and Keltner Channels

הערות שחרור

Added the option for alerts when either a squeeze has started or a squeeze has fired
-> In the indicator settings, activate the tick boxes for either or both alerts;
-> Right-click the indicator plot and choose "Add alert on squeeze";
-> On the alert pop-up window:
---> Conditions should be 'Squeeze' and 'Any alert() function call';
---> Expiration time - tick 'open-ended' or a shorter period if you wish;
---> Alert actions - default options should be 'Show pop-up' and add any others you require.
תגובות
mznbox
Amazing work ....thank you
Beardy_Fred
@mznbox, thanks very much. It's greatly appreciated
Naboli
@mznbox, does the histogram repaints i mean the blue red yellow and aqua color do they get repainted?
cpartipi
Awesome!
karthikworld
Incredible work
joanleeinny2
Awesome work! Thanks a bunch!
Beardy_Fred
@adonilopez, thank you! much appreciated.
ophirbkabul
@Beardy_Fred Would you mind sending me this code for ThinkorSwim? Thank you!
casehakam
awesome indicator any suggestion for higher time frame setting. 4H, 1D ,1W
עוד