jbfly03 Posted January 13, 2018 Report Share Posted January 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
jbfly03 Posted January 13, 2018 Author Report Share Posted January 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
L W Posted January 13, 2018 Report Share Posted January 13, 2018 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. 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. 1 Quote Link to comment Share on other sites More sharing options...
L W Posted January 14, 2018 Report Share Posted January 14, 2018 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 1 Quote Link to comment Share on other sites More sharing options...
L W Posted January 14, 2018 Report Share Posted January 14, 2018 I was on Historical charts. Time for a break. Quote Link to comment Share on other sites More sharing options...
jbfly03 Posted January 14, 2018 Author Report Share Posted January 14, 2018 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. 1 Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 15, 2018 Report Share Posted January 15, 2018 Note: you don't really need the "returns" (well, the "And Stop"s) in that last rule. It stops after the last one anyway 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.