Creating a Custom Scan Using TTM Squeeze Histogram

Thinkorswim Scan TTM Squeeze Histogram
Learn how to build custom stock scans and spend less time reviewing charts. This video shows that you don’t need access to the source code to write a customized scan for a licensed indicator on the Thinkorswim platform. In this video, Thinkorswim Scan TTM Squeeze Histogram, you will learn how to build and run a custom scan. You will receive a free custom scan indicator via clicking the link below. This indicator is actually four different scans built into one. This video shows how to select which of the four scans to run.
*The TTM Squeeze is a proprietary indicator owned by Trade The Markets. It is available free to all TD Ameritrade clients who have access to the Thinkorswim platform.
DISCLAIMER: I AM NOT A CERTIFIED FINANCIAL ADVISOR AND NOTHING IN THIS VIDEO OR TEXT IS AN ADVERTISEMENT OR RECOMMENDATION TO BUY OR SELL ANY FINANCIAL INSTRUMENT. NOR IS THIS VIDEO OR TEXT INTENDED TO INSTRUCT YOU ON HOW TO MAKE BUY OR SELL DECISIONS USING ANY OF THESE INDICATORS.
*Thinkorswim is a chart analysis platform offered by TD Ameritrade: www.tdameritrade.com
TD Ameritrade provides financial services including the trading of Stocks, Futures, Options and Forex.
Please be sure to share this page with your friends and colleagues. Leaving comments below is the best way to help make the content of this site even better.
Hey Pete. First I want to congratulate you for the excellent job you are doing here. The content is excellent and extremely valuable. Thanks. I was wondering if you have available another video like this one ,with instructions of how to set up a scan and the study to go short on the stocks. I guess is a matter of changing the code description. If you can point me to the reight direction I will really appreciate it.
Thanks in advance
Tons of examples in the Q&A Forum. Here is a link to the search results I just did. Search term was “Squeeze histogram” in the Stock Scanners topic: https://www.hahn-tech.com/ans/cat/scans/?question_type=all&search=squeeze%20histogram
Anyone know how to update the code to only get an alert when the TTM Squeeze dot is green?
I think the answer to that question was already posted in our Q&A Forum: https://www.hahn-tech.com/ans/is-it-possible-to-have-an-alert-when-the-ttm-squeeze-indicator-changes-color/
Thanks Pete. Unfortunately, that doesn’t solve the problem. Currently I’m using the following thinkscript for a chart alert when the the Squeeze goes above the zero line [TTM_Squeeze_Alert() is equal to 1].
That thinkscript should remain the same. The adjustment I’m looking for is to the thinkscript of the indicator to allow for the statement to be true ONLY when the Squeeze dot is true. Is there a way to adjust that?
Sure thing. But no able to provide that level of assistance in the comments section of the video. That’s what the Q&A Forum is for. Thanks.
Correction: Squeeze dot is true SHOULD SAY Squeeze dot is green.
Ok. Thanks. I just posted my question here: https://www.hahn-tech.com/ans/ttm-squeeze-green-dot-alert/
Is there a way to download historic ttm squeeze values say on a daily time frame
Not for Thinkorswim. This has already been addressed in our Q&A forum.
I added the code to the scan and charts. I am trying to sort just by Low to high pivot but ts scans all names that have done it looking back so i get 4000 results. How do i scan so it just tells me if it changed in the current or very recent period?
disregard i figured it out
Glad to hear that. I was away from the computer and could not access the tools needed to provide assistance.
I dowloaded the code and added this in the Chart studies and also in the TOS Scan filter. But when I do the scan the squeeze histogram is not spiked up in the chart even when the Stock is showing up in the scanner.
Check that you have set the time frame exactly the same on both. If you are using intraday time frame check the chart setting named “Start Aggregation at market open” That needs to be turned off or your intraday charts will never match the rest of the tools on the platform.
Where do I find how to link a watchlist scan to a chart in TOS? My Chart is red but there seems to be no place to label RED the Scan.??
A scan is not a watchlist. So lets make sure we understand the terms. It is possible to link a watchlist but it is not possible to link the results section of a scan.
I copy/pasted the “Strat_PivotRev_TrailSqz” script directly from the website onto ThinkScript Editor and made sure any previous lines were deleted, still no error codes and still “ok” button is disabled.
Sorry but I can’t help you here. I just tested it and it’s works fine. I suggest you post this in the Q&A forum and include a screenshot showing what your scan look like. Perhaps we can see something you missed.
Thank you for the educational videos. I have a question: after I try to create a custom scan in ThinkScript Editor, the “OK” button remains grey and won’t let me save it, I have tried many times, there are no error codes in the script, the “OK” button is still grey and I cannot save it, could you help please ? Thank you.
There are only two scenarios in which the OK button is disabled One is when the code generates an error. Second would be if the code editor was empty. If you have code in the editor and the OK button is disabled but still don’t see an error there must be something blocking you from seeing it.
Been working with your TTM Squeeze just recently and trying to change the scan to alert me when the red or yellow bars are below a given level so that I can check the stock out and perhaps put it on another watch list to watch closer. Another option may be two have two consecutive yellow bars as the 2nd is the confirmation bar. Those would be ideal options. Can this be done?
Tons of examples listed in the Q&A forum. Just use the search box at the top of the page to find what you are seeking. The following link shows the search results for “TTM Squeeze” on all categories in the forum: https://www.hahn-tech.com/ans/?question_type=all&category=&search=TTM%20Squeeze
TTM_Squeeze histogram
When I copy/pasted your script, it produced three errors. (I’m on a macOS 10.16.3)
Invalid statement: plot at 9:1
Invalid statement: assignBackgroundC… at 13:1
Invalid statement: hist at 17:1
Any suggestions?
My buddy is on Windows and he has it running. Is there a difference in the macOS and WindowsOS library that might cause these errors?
Thanks
Did you try the link I provided in my last reply?
Sorry…I must have missed your last reply. But, I did just find https://drive.google.com/file/d/0BwDtomDCJd6fNUlxeTM5YVNGa2c/view
Is this it?
Thanks for your reply Pete.
No, that is not the link I provided. Here it is again. Just import this directly and don’t bother trying to copy/paste: http://tos.mx/HYCVaUd
Also, don’t try pasting code in the comment section of a video The Q&A forum is the place to request more advanced assistance. But you will not need any more assistance because that link I included above will bypass the entire issue you are having.
Peter, thank you VERY much for your reply and the link. Understand not posting code in comment section of the video…if I can, I will delete it. BTW, the reason I had 17 lines is because I tried to match the script in your video…it had null lines and, therefore, had 17 lines. I put in the null lines and tried to match the video line for line.
Actually, now that we’re in a COVID-19 non-social status, we stayed in last night and I went through all of your tutorials and was successfully able to do each of your scripts. (I also found your post with the shared link in the other post thread…thanks)
Thinkorswim TTM Squeeze Watchlist
Thinkorswim Custom Watch List Columns
Thinkorswim Watchlist TTM Squeeze
Custom Watchlist Columns Colored to Match Dots on TTM Squeeze Centerline
I also was successful in creating three additional columns for daily, weekly and monthly (and, following your suggestion, named them D_Sqz, W_Sqz, M_Sqz)…I now have three columns with color. Which leads me to one more question: in Charts, we are able to customize a time frame but we don’t seem to have that option in watchlist time frames. Is that correct?
You have provided your followers with some excellent add on tools…thank you.
Thanks so much for taking the time to let us know what you did and how you got things working. Glad things are setup and working for you now. As for custom time frames, those are only supported on the charts. This is not available anywhere else on the platform, yet. Be sure to submit a feature request to TDA support if custom time frames across the platform are essential to your trading success. Thanks for the voluntary contribution too! Take care.
And to answer you question, I use Mac as well and when I test it works perfectly. There is nothing wrong relating to a “library”.
Im no good with coding but i have it setup so i can run the pivot high and the pivot low at the same time,pivot low spike colored green and pivot high red.
Hi, is there a way to set a condition to scan for a certain value of the histogram bars?
Scanning for a specific value of the histogram is invalid. The values of the histogram will vary widely based on the price of the stock being scanned. This video shows the type of scan that is valid for the histogram of the TTM Squeeze: https://www.hahn-tech.com/thinkorswim-scan-ttm-squeeze-histogram/
I would like to install Custom Scan Using TTM Squeeze Histogram on my Thinkorswim platform as you introduce in the above Video. Please provide to me the instructions and the Thinkscript Codes so I can copy and paste later. Are there any charges for this service? Please let me know. Thank you very much.
There is no charge for the code associated with this video. The link to download the code is included in the video description and also within the video itself.
great video. I am trying to use the same scan but i can not figure out how to change it to notify me when there is a 1 bar pivot. Would you be able to help.
Did you search the Q&A forum? I believe this one matches your request: https://www.hahn-tech.com/ans/ttm-squeeze-scan-for-second-yellow-bar-after-2-or-more-red-bars/
Great video
Hi,I’ve been struggling to build a scan/study that indicates when there is a squeeze set off either positive or negative I don’t see the value for the actual squeeze indicator (dots) change from 0 only in color on ToS. Is there any way to isolate the spikes for only when a green dot is set off after a single or series of red dots? In other words apply these scans but only for periods directly after market compression? Or is this impossible without access to the source code? Can it be recreated using the fundamentals of the TTM_Squeeze indicator?
The dots changing color is already available as a built-in scan. It’s listed under “licensed studies”.
Thank you Pete for pointing me in the right direction, I was able to use the code from the licensed scan to back test positive and negative squeeze offs, is there a way to filter out strategies that happen pre/post market?
Simplest way to do that is to change your chart setting to not display extended hours trade data.
Enri, that sounds like a nice code. Would you be able to post your codes for the positive and negative squeeze off? Also, which licensed study did you base it off of? Thanks.
That sounds like a nice code. Would you be able to post your codes for the positive and negative squeeze off? Also, which licensed study did you base it off of? Thanks.
I am on an older macbook pro, and am unable to follow the directions for importing the file into TOS so I tried manually entering the code EXACTLY as it appears on your video, and TOS gives me a “value never assigned to scan at 10:6”
Not sure why this is happening and I’m hoping you have some insight, as this scan would save me many hours of searching. Thanks for everything you do and provide here!
Have you tried following these instructions from our FAQ’s? https://www.hahn-tech.com/ans/how-to-download-and-import-study-ts-files-into-thinkorswim/
Pete – thank you for the prompt reply! I have not yet checked out the FAQs, but will do so shortly. If I have any issues at that point I’ll follow back up with you. Thanks again.
Hi Pete – I didn’t realize that I had gone through all those steps last night when I saw your reply this morning. I tried again to no avail. I have taken a bunch of photos to document the process, but am uncomfortable posting certain identifying aspects of the process here.
I guess I’ll just try to sort it out again, or live without it. Thanks again for your help.
PS – for whatever it’s worth, I was able to copy the code directly from your post for the TTM multi-colored watch list, and paste it successfully.
Hi,
Can you please share TTM Squeeze code…I am unable to find it in your demo
The link for the code with this video is provided right there in the video description.
Hello. For some reason the code will not open.
Do not open. Download and import: https://www.hahn-tech.com/ans/how-to-download-and-import-study-ts-files-into-thinkorswim/
Pingback: Thinkorswim MTF MACD Scan - Hahn-Tech, LLC
Pingback: Thinkorswim Scan To Strategy - Hahn-Tech, LLC