TTM Squeeze Format, Scan, Watchlist, Label For ThinkOrSwim

Hello all, I'm looking for a ttm squeeze histogram turns up or down signal where it labels an arrow sign up or down on a chart. Please point me to the direction.

Thanks in advance
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Have been having limited success lately with my squeeze efforts. I believe the black dot squeezes have not afforded the best results. Does anyone have any suggestions or a scanner that will filter out all but bullish red & orange dot stocks?
 
I was also looking for code that changes the label of the squeeze condition (yellow for low compression, red for mid squeeze and magenta for high compression squeezes).
 
Oh no, you have to put it with the code I posted earlier. Just create a new study, call it something like AdvancedSqueezeScanner and paste all of this and then use it on the scan tab. Should be go to go.

Code:
# AdvancedSqueezeScanner
# Momentum Squeeze open coding by Moebius, based on John Carter
# Scan by WTF_Dude
# Added Squeeze Label with directional color
# Label is green when momentum is ascending, red when descending

declare lower;

input length = 20; #hint length: Length for average calculation
input price = close;
input SDmult = 2.0;
input ATRmult = 1.5;

   def K = (Highest(High, length) + Lowest(low, length)) /
               2 + ExpAverage(close, length);
  def Momo = Inertia(price - K / 2, length);

def SD = StDev(close, length);
def Avg = Average(close, length);
def ATR = Average(TrueRange(high, close, low), length);
def SDup = Avg + (SdMult * Sd);
def ATRup = Avg + (AtrMult * ATR);

def Squeeze = SDup < ATRup;
       
def zero = if IsNaN(close) or !IsNaN(Squeeze) then Double.NaN else 0;

def momobullup = Momo > Momo[1] and Momo > 0;
def momobulldown = Momo > 0 and Momo < Momo[1];
def momobeardown =  Momo > Momo[1] and Momo > 0;
def momobearup = Momo < 0 and Momo > Momo[1];



Plot BreakoutEitherDirection = squeeze[1] is true and squeeze is false;
plot BreakoutBull = squeeze[1] is true and squeeze is false and momobullup;
plot BreakoutBear = squeeze[1] is true and squeeze is false and momobulldown;

Plot BullTrendReversal = momobulldown is true and momobulldown[1] is false;
Plot BearTrendReversal = momobearup is true and momobearup[1] is false;

plot Squeeze_ChangetoBull = BearTrendReversal and squeeze is true;
plot Squeeze_ChangetoBear = BullTrendReversal and squeeze is true;

#End Code
hi @wtf_dude ! i love your shares. Is there any way to make these into labels for the chart? interested in the histo flip pos/neg, the histo shift from red/yellow and teal/royalblue, and last and best... the dots!!!!
 
I'm looking for a scanner that will find tickers in the TTM Squeeze at the first yellow bar.

Try this in the scanner
Screenshot 2024-02-28 102154.png
Screenshot 2024-02-28 102219.png
Code:
def ttm_histogram = TTM_Squeeze();
def red_squeeze   = if ttm_histogram < 0 and ttm_histogram < ttm_histogram[1] then 1 else 0;
plot first_yellow = if red_squeeze[1] == 1 and !red_squeeze and ttm_histogram < 0 then 1 else 0;
AddChartBubble(first_yellow, 0, first_yellow, Color.YELLOW);

#
 
Last edited:
Hi Everyone,

I am using TTM squeeze.

Can someone help me please to scan histogram is lightblue (cyan)and having a squeeze?

Thanks
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
293 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top