Be Notified of Multiple Timeframe TTM_Squeezes - futures io
futures io

Be Notified of Multiple Timeframe TTM_Squeezes

Discussion in ThinkOrSwim

    1. trending_up 2,184 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 3 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Be Notified of Multiple Timeframe TTM_Squeezes

(login for full post details)
  #1 (permalink)
Chicago IL / USA
Posts: 1 since Mar 2018
Thanks: 0 given, 0 received

Hi - I want to be notified when a ticker has more than one TTM_Squeeze
in play. For e.g. if I am in a 2 minute chart and the stock symbol
has a squeeze in the daily chart, I want TOS to tell me that
a squeeze also exists in the daily chart by some kind of message on
the 2 minute chart.

I know that I can do a TOS scan and do a multiple timeframe query
for TTM_Squeezes, but I wanted to mirror this functionality in

Following (in the attachments) are some screenshots of what progress I have so far:

I used the ticker symbol OLLI, but any ticker symbol could be used with
a daily squeeze.

Note that the 2 minute OLLI chart does not have a squeeze, but the daily one does
(i.e. red dots in the zero line).
I was trying to show a label in red when the daily had a squeeze. But it shows
green signifying that there is no squeeze. If I switch to the daily chart, the label does turn red.
So, it looks like my thinkscript is
detecting a squeeze only when the chart I'm displaying has a squeeze.

Does anybody have any ideas?

The script contents of TM_Identity_Multiple_Timeframe_Squeezes is this:
DefineGlobalColor("green", Color.GREEN);
DefineGlobalColor("red", Color.RED);

plot DailyClose = close(period = "Day"); # plot daily closing price

def DaySqz = if (DailyClose.TTM_Squeeze().SqueezeAlert == 0)
then 1 else 0; # Test whether DailyClose has a squeeze

AddLabel(yes, DaySqz, GlobalColor("green")); # display boolean value

AddLabel(yes, "Day", if DaySqz
then GlobalColor("red") else GlobalColor("green" )); # display label red if dailyclose has squeeze


Attached Thumbnails
Click image for larger version

Name:	OLLI_2min_chart.gif
Views:	231
Size:	74.8 KB
ID:	248498   Click image for larger version

Name:	OLLI_daily_chart.gif
Views:	174
Size:	91.6 KB
ID:	248499   Click image for larger version

Name:	Studies_On_this_chart.gif
Views:	127
Size:	48.2 KB
ID:	248500  
Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(82 thanks from 10 posts)
looks_twoSalao's Journalby Salao
(25 thanks from 6 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(25 thanks from 9 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(12 thanks from 7 posts)
looks_5Maybe a little bit different journalby Malykubo
(7 thanks from 5 posts)
Best Threads (Most Thanked)
in the last 7 days on futures io
The Crude Dude Oil Trading System
73 thanks
futures io site changelog and issues/problem reporting
73 thanks
Would You Sell Your System?
71 thanks
FIO Journal Challenge - April 2021 w/Jigsaw Trading
32 thanks
Big Mike in Ecuador
28 thanks
(login for full post details)
  #2 (permalink)
New York
Posts: 1 since Apr 2014
Thanks: 1 given, 0 received

Hi Tom. Where you ever able to figure out how to the the label on multiple timeframes for TTM_Squeeze?
I have been trying for a while also. Not able to do it.
so far I got this

def sqz = !TTM_Squeeze().SqueezeAlert;
def direction = TTM_Squeeze()>TTM_Squeeze()[1];
def count = if sqz and !sqz[1] then 1 else count[1]+1;
def fired = if !sqz and sqz[1] then 1 else 0;
def firedCount = if fired then 1 else firedCount[1]+1;
def firedDirection = if fired then direction else firedDirection[1];
addLabel(yes, if sqz then “Squeeze:” + count else if sum(fired,5) then “Fired:” + firedCOunt + if firedDirection then ” Long” else ” Short” else “-”, if sqz then else if sum(fired,5) and firedDirection then else;

or I this one

def ttm_Squeeze = (TTM_Squeeze().SqueezeAlert == 0);
AddLabel(yes, concat("x=", ttm_Squeeze), color.RED);

Hopefully you get this message.

Reply With Quote

futures io Trading Community Platforms and Indicators ThinkOrSwim > Be Notified of Multiple Timeframe TTM_Squeezes

Last Updated on May 6, 2019

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Journal Challenge w/$1,800 in prizes!


Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only

Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts