StockFetcher Forums · Filter Exchange · TTM squeezed fired day ago<< >>Post Follow-up
vmittal
13 posts
msg #152542
Ignore vmittal
6/7/2020 2:53:43 PM

I am looking for scan where I can find a stock just fired one day ago from TTM squeeze. Please help me out to write the scan script. Any stock from 50 to 300 dollars price would help me in my watch list.
Thanks in advance.

JoeyVinyl
125 posts
msg #152556
Ignore JoeyVinyl
6/8/2020 12:46:45 PM

Run Xarlor's filter and look at the bottom of the charts displayed. There's a part there that says "ttm_squeeze" and every time a stock meets all the requirements there will be a little blue bar. All you have to do is look at the charts to see where there was a blue bar yesterday but not today. Then look at the "momo" indicator to see which direction it's going.

I made it easy for you. I added a column at the end called "now" and sorted on that column. If the number in that column is 2 that means it was squeezed yesterday but isn't today. Here's the code:

Fetcher[
market is not ETF
market is not OTCBB
close is between 50 and 300

set{momo,momentum(16)}
add column separator
add column momo
draw momo
plottype{momo,zerobar}

set{Pchange1,momentum(16)/momentum(16) 1 day ago}
set{Pchange,Pchange1 - 1}
add column pchange

draw Bollinger Band(20,2)
draw Keltner Band(20,2)

set{sqz1,count(momo > .01,1)}
set{sqz2,count(momo < 0,1)}
set{sqz3,count(Upper Bollinger Band(20,2) < Upper Keltner Band(20,2),1)}
set{sqz4,count(Lower Bollinger Band(20,2) > Lower Keltner Band(20,2),1)}
set{sqz5,sqz3 * sqz4}
set{sqz6,sqz1 + sqz2}
set{TTM_Squeeze,sqz5 * sqz6}

draw TTM_Squeeze

/* ADDED CODE BY JOEYVINYL */
set {now1, count(TTM_Squeeze 1 day ago > 0,1)}
set {now2, count(TTM_Squeeze < 1,1)}
set {now, now1 + now2}
add column now
sort column 8 descending
]



roca1018
163 posts
msg #152560
Ignore roca1018
6/8/2020 2:38:51 PM

Xarlor,

I am trying to figure out how to interpret the blue momentum bars. I see a long string of red bars at the
bottom (TTM Squeeze) when the momentum moves up and down but remains above 0. Are these stocks
in play as long as the momentum bars are above 0 ?

Thanks

Rich

JoeyVinyl
125 posts
msg #152565
Ignore JoeyVinyl
6/8/2020 7:21:59 PM

I'm not Xarlor, but based on what I know about how this filter works on TOS (ThinkOrSwim) the bars in the "momo" section show the direction of the momentum. Bars above zero are a bullish signal while bars below zero are a bearish signal. The length of the bar shows how strong the signal is.

Basically, if you see a bar is longer today than yesterday's bar that means the trend is increasing regardless of the direction. If today's bar is the same height, or shorter, than yesterdays bar then the trend might be starting to reverse. I say might be because there are no guarantees with any of this. No indicator will ever be 100% accurate every time.

xarlor
562 posts
msg #152571
Ignore xarlor
6/8/2020 10:03:10 PM

The only thing I would add is the smoothing of momo in my second filter by adding cema(momentum(16),5. It makes spotting the momo direction easier.

Fetcher[
market is not ETF
market is not OTCBB
close is between 50 and 300

set{momo,cema(momentum(16),5)}
add column separator
add column momo
draw momo
plottype{momo,zerobar}

set{Pchange1,momentum(16)/momentum(16) 1 day ago}
set{Pchange,Pchange1 - 1}
add column pchange

draw Bollinger Band(20,2)
draw Keltner Band(20,2)

set{sqz1,count(momo > .01,1)}
set{sqz2,count(momo < 0,1)}
set{sqz3,count(Upper Bollinger Band(20,2) < Upper Keltner Band(20,2),1)}
set{sqz4,count(Lower Bollinger Band(20,2) > Lower Keltner Band(20,2),1)}
set{sqz5,sqz3 * sqz4}
set{sqz6,sqz1 + sqz2}
set{TTM_Squeeze,sqz5 * sqz6}

draw TTM_Squeeze

/* ADDED CODE BY JOEYVINYL */
set {now1, count(TTM_Squeeze 1 day ago > 0,1)}
set {now2, count(TTM_Squeeze < 1,1)}
set {now, now1 + now2}
add column now
sort column 8 descending
]



roca1018
163 posts
msg #152576
Ignore roca1018
6/9/2020 8:04:44 AM

Thanks

Rich

Cheese
1,374 posts
msg #152742
Ignore Cheese
6/23/2020 11:34:48 PM

pop

vmittal
13 posts
msg #153348
Ignore vmittal
8/1/2020 3:37:16 PM

Thanks a million. This is excellent.

vmittal
13 posts
msg #155076
Ignore vmittal
12/23/2020 5:04:01 PM

Can you do just for going long or momo up not negative?
Thanks.

StockFetcher Forums · Filter Exchange · TTM squeezed fired day ago<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.