Jump to content
Medved Trader Forums
Sign in to follow this  
jbfly03

Scan for TTM Squeeze

Recommended Posts

Has anyone created a scan for TTM Squeeze? I like to look at the weekly chart and find stocks that have the 'squeeze' on. I haven't started working on any code, but thought someone may already have something they could share with a noob.

Share this post


Link to post
Share on other sites

This is what I've come up with so far. It allows me to find stocks that the TTM value is negative 1 bar (1 week) prior to moving positive. I still have to go in to each stock that matches the scan and see if the squeeze is actually on and then moves to off. That's what I want to do - find stocks where the squeeze was on, and 1 week later the squeeze was off with a positive move. So what I have isn't ideal but I guess it's a start. 

ttm.PNG

Share this post


Link to post
Share on other sites

Hello and welcome to the forum.
Here is some info I found that may help.
*
After looking into the TTM Squeeze indicator I see:
1. Red dots mean no trade.
2. Green dots means the indicator is on.
3. A red dot followed by green dot means the indicator has fired and volatility is expanding.

4.Trading: It is said that -
The bars (histogram) going up or down is a measure of momentum.
Going long comes when you have a red dot followed by a green dot and bars going up.
Going short comes when you have a red dot followed by a green dot and bars going down.

**
How I start a paintbar.
Like you are doing in the pic I start out in the basic editor and then move to the advance editor to fine tune.

**1 & 2 above**
With the "Squeeze" line I have found with  == 0 for green dot and == 1 for red dot.
if (TTMSqueeze_Squeeze == 0) then you get a "Green Dot"
if (TTMSqueeze_Squeeze == 1) then you get a "Red Dot"

**3 above**
Indicator has Fired
To test for a red dot followed by a green dot I found something like this:
One bar ago dot was red and on current bar it trying to stay green.
if ((TTMSqueeze_Squeeze[1] == 1) && (TTMSqueeze_Squeeze == 0))

If someone would want the signal to confirm first they can move the bars back one.
if ((TTMSqueeze_Squeeze[2] == 1) && (TTMSqueeze_Squeeze[1] == 0))

**4 above**
With the "Bar" line like in your scan I have found:
Bar > 0 Above the 0 line.
if (TTMSqueeze_Bar > 0)

Bar < 0 Below the 0 line.
if (TTMSqueeze_Bar < 0)

Note: I've notice that you will have a bar all the time but they do not show if the value is very small like -/+ 0.001
I changed my indicator colors so I could see this.

5a5a821e16249_ScreenHunter_01Jan_1316_08.jpg.a9864bb44415d8930b3c46228961b4d6.jpg

When I watched a video they used the dots and bars that could be seen to maybe go long or short.
More testing needed on this one to find the right bar values that show.
For now I'm going to use -/+ 0.0015 so I can see the bar instead of 0.
***
Now that we know the basics we can add more values together.
If we were looking for a entry to maybe go long you need something like:
Red dot followed by a green dot and then bars above the 0 line.
if ((TTMSqueeze_Squeeze[1] == 1) && (TTMSqueeze_Squeeze == 0) && (TTMSqueeze_Bar > 0.0015))

If we were looking for a entry to maybe go short you need something like:
Red dot followed by a green dot and then bars below the 0 line.
if ((TTMSqueeze_Squeeze[1] == 1) && (TTMSqueeze_Squeeze == 0) && (TTMSqueeze_Bar < -0.0015))

Since the market is closed I have not done much testing and I can't verify everything now.

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Can someone check on the value of the Red and Green dots on the  TTM Squeeze.

I had thought with the "Squeeze" line  == 0 for green dot and == 1 for red dot, but that only works on 3 of the 5 listings here using the same time frame. (monthly)

Thanks

5a5aa4c41ff3c_ScreenHunter_02Jan_1319_18.jpg.26494e2d3868399df6f313121a910ead.jpg

  • Thanks 1

Share this post


Link to post
Share on other sites

That is awesome information, thank you for that excellent write up. I didn't know how to code the values for the 'Squeeze' vs the 'Bar' within the TTM indicator. I attached the scan I came up with and it is returning exactly what I'm looking for. Thanks again.

ttm.PNG

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×