TradingView
chchodler
Sep 18, 2019 5:55 PM

TTM Squeeze Scanner 

Monero / DollarBitfinex

描述

This script scans for TTM Squeezes for the crypto symbols included in the body of the script. The timeframe for the squeeze scan is controlled within the input not the chart.

This script is a merge of @Nico.Muselle's TTM Squeeze script and @QuantNomad's custom screener script. Thanks to both of them!
评论
jperazo
Hi! thanks for sharing this script. Can I use the scrip for screening non-crypto stocks as well?
gaz_0001
@jperazo,

@chchodler - kindly left the source code open, so you can modify the tickers to show you what you are looking for. Change S1 ticker, and label src for S1.
StonelessLemur
@gaz_0001, Hey there, could you be more specific? I have no experience with code :(
gaz_0001
@chchodler - I setup the TTM Squeeze Scanner with the FTSE & Dow as the only two tickers. It does seem to detect the squeeze for both of the tickers but dosnt label them. If you have 20 tickers scanning, how would you know which ticker the squeeze is on?
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.
refinery
@gaz_0001, Not sure if I'm 100% right, but it seems like the histogram plotted is for the current ticker you have the script running on at that moment.

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: i.imgur.com/ypqtSAt.png
adamacho92
Hi chchodler,

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.
Thanks!

Regards,
Adam
adamacho92
My question is, is it possbile to use this script to screen for all the stocks? Or is it that we need to associate this script per stock at one time?
LaGrosseGondole
@adamacho92, Same, did you find a solution?
Scott4646
Morning,
is this script possible to use with stocks?
bidhitter888
sir, thanks for this sharing the script. can we make two rows of screen and on the upper left of the indicator.
更多