(JS) Squeeze Pro 2

This is my version of the updated classic indicator created by John Carter. I plan on adding a Squeeze Overlay script in the future that will pair with this one as well for additional signals.

So to break down the Squeeze, what it is, how it works, etc - you have to look at the components that make it up.
1. Bollinger Bands
2. Keltner Channels
3. Momentum

The momentum in this indicator is smoothed out using linear regression (shout out to Lazy Bear, it's a much simpler way to do it, imo).
The momentum is what is displayed on the indicator as a histogram, its purpose is obvious (to show momentum).

Now what is a Squeeze? A squeeze occurs when Bollinger Bands tighten up enough to slip inside of Keltner Channels .
This is interpreted as price is compressing and building up energy before releasing it and making a big move.

Traditionally, John Carter's version uses 20 period SMAs as the basis lines on both the BB and the KC.
In my version, I've given the freedom to change this and try out different types of moving averages.

His original squeeze indicator had one Squeeze setting, though this new one has three.
The white dot Squeeze, call it a "low squeeze", an "early squeeze", whatever you'd like - this is the easiest Squeeze to form based on its settings.
The red dot Squeeze is the original from the first Squeeze indicator.
And finally, the yellow dot squeeze, call it a "high squeeze", "power squeeze", once again whatever you want - is the most difficult to form and suggests price is under extreme levels of compression.

From what I've witnessed John Carter say in the past, the squeeze is meant to be used for continuation.

Now to explain the parameters:
Squeeze Input - This is just the source for the Squeeze to use, default value is closing price.
Length - This is the length of time used to calculate the Bollinger Bands and Keltner Channels .
Bollinger Bands Calculation Type - Selects the type of moving average used to create the Bollinger Bands .
Keltner Channel Calculation Type - Selects the type of moving average used to create the Keltner Channel.
Color Format - I have created 5 different color schemes, this allows you to choose one.
Draw Divergence - Self explanatory here, this will auto-draw divergence on the indicator.
Gray Background for Dark Mode - This is something I put on all my indicators to make them more visually appealing.

Moving on to the alerts, I have made some basic alerts to notify certain indicator conditions (I had to revise it back from the prior version, as V4 of PineScript limits outputs).

6th Dot Alerts - This will inform you when a certain Squeeze makes it 6 dots in. Why 6 dots? That is what John Carter said to be his preference.
12th Dot Alerts - Think of this as a "prolonged Squeeze" alert. I feel like if they do run this long you likely need to go up in resolution, but some traders prefer certain time increments so this is for them.
End of Squeeze Alerts - Self explanatory again - once a Squeeze has concluded this will provide you with a notification.
Start of Squeeze Alerts - Opposite of the alert above, notifications come when a Squeeze begins.
Zero Line Alerts - This will inform you of when the momentum makes a bullish or bearish move across the zero line.

I hope that I've done well enough explaining the indicator and how it works, for any further information on it I suggest you check out Simpler Trading and get linked up with John Carter over there.
He does lots of videos, webinars, and of course you can always get the official indicator and his signals there too.
Release Notes: So a few updates here:

1. I added the original color scheme (as pictured).
2. I made an option to put the dots on the zero line like the original (though I recommend my way).
3. Added the ability to change the low squeeze to black dots for those not using dark mode.
4. Added the ability to completely turn off the background colors.
Remove from Favorite Scripts Add to Favorite Scripts


Again, amazing what you have done with this indicator. TTM squeeze pro goes for $600+ and you might have done an even better job than them.
+5 Reply
amazing indicator! it's also very pretty on my chart! can't believe it's free...
+1 Reply
Tks for sharing it! Excited to try it out :)
+1 Reply
Wow, great job man. Thanks for sharing it!
+1 Reply
Great tool. Thank you for the efforts.
+1 Reply
+1 Reply
This is awesome. Even the alert conditions are thoughtful. Thank you.
+1 Reply
wow!You re a really master, ıt ıs unbelievable! Especially for Divergence draw! Thanks alot, is it possible to build a rsı,macd,stochastic etc. Divergence draw indicator, master? I can't do draw and show it same tıme on price and indicator chart:(
+1 Reply
Thank you! Amazing work! Respect for sharing :)
+1 Reply
Thank you so much. Is there a way to crest an alert for when it goes from one color to the next?
+1 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out