This script is a merge of @Nico.Muselle's TTM Squeeze script and @QuantNomad's custom screener script. Thanks to both of them!
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Also for the histogram - with 20 tickers in the script, there is one histogram.....is this a combination of all the combined tickers? It doesnt seem to align up with any of them perfectly.
I use Heikin Ashi (HA) candles over OHLC candles. Do you happen to know how to update the code/script so it spits out tickers on the screener for squeezes on the HA candles?
I can't seem to get it to work: https://i.imgur.com/ypqtSAt.png
Thanks for this great info. FYI, I am quite new to trading and currently I am studying Squeeze Momentum Indicator using Squeeze Momentum Indicator (SQZMOM_LB) in my chart. My main issue that I have now is to screen for stocks that are within this SMI setup. Basically i have set my screener criteria as follow :
Upper Bollinger Band lower than Upper Keltner Channel
Lower Bollinger Band above than Lower Keltner Channel
Upper Keltner Channel above than Upper Bollinger Band
Lower Keltner Channel below than Lower Bollinger Band
But it seems that the list of stocks is too little and some them just remains the same for few days.
I am just wondering if there's any way i could optimize my screener using your scripting method?
Looking forward to hear from you.