(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.
Note di rilascio: 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.
Script open-source

Nello spirito di condivisione promosso da TradingView, l'autore (al quale vanno i nostri ringraziamenti) ha deciso di pubblicare questo script in modalità open-source, così che chiunque possa comprenderlo e testarlo. Puoi utilizzarlo gratuitamente, ma il riutilizzo del codice è subordinato al rispetto del Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?


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.
+8 Rispondi
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:(
+4 Rispondi
Just completed my overlays script to pair with the indicator, check it out here!

+4 Rispondi
Thank you so much for your time and input with this indicator. I was using the standard TTM squeeze, then saw a video on the TTM Squeeze Pro, and liked the idea of the early entry ( green candles ). I then realised TTM Pro was a purchase option !!. ( Dissappointed). I then searched and found your indicator on TV. WOW !!!, fantastic. I've had 6 or 7 good trades since using it, its brilliant. Love the idea that you get in the trade early as opposed to the " dots" going green on the standard TTM. Just getting my head around the different candle colours and what they mean. Thanks again, this really will improve my trading. I'm also using your overlay option.
+3 Rispondi
Great job on this indicator. I've tried to build a screen for the indicator. But it seems not so easy, do you have an idea how to manage that with the screener of Tradingview?
+2 Rispondi
Many thanks J-Streak!
Your work are amazing and appreciated !
+1 Rispondi
Thanks a lot :)
+1 Rispondi
Good indicator. Thank you.
+1 Rispondi
amazing indicator! it's also very pretty on my chart! can't believe it's free...
+1 Rispondi
Tks for sharing it! Excited to try it out :)
+1 Rispondi