ADX Squeeze For ThinkOrSwim

antwerks

Active member
VIP
VIP Enthusiast
I love the ADX indicators of all kinds but sometimes due to my physical computer set up I have "alot going on" so I needed something more simplistic in a visual. This is where this indicator comes from, https://tos.mx/!unAvUQX4. (this can be used on all timeframes) This indicator gives a visual with labels of stocks where:
  • ADX, DI+, and DI- are all below a threshold (default 25)
  • And they stay under that threshold for a defined number of consecutive days (default 5)
This is a volatility compression setup — often referred to as a "squeeze" — which can precede breakouts or reversals. The assumption is Low directional movement (low ADX and both DI lines compressed) is an area of potential buildup before expansion.

Pros:
  1. Simple but Effective Squeeze Logic: The use of ADX + DI+ and DI- being under a shared threshold is a good proxy for sideways, low-momentum markets.
  2. Customizable Settings: Threshold and duration (requiredDays) are inputs, allowing flexibility to test across various tickers and timeframes.
  3. Efficient Scan Condition: The logic is optimized and clean, avoiding redundant calculations.
  4. Useful Visual Labels: Helpful for manual review of ADX/DI+/- values at the point of scan.
Labelling Meaning:
  • Color Key​


    ColorMeaning
    🟩 GreenBullish breakout (ADX expanding, DI+ > DI−, volume confirms)
    🟥 RedBearish breakout (ADX expanding, DI− > DI+, volume confirms)
    🟨 YellowSqueeze in progress (volatility compression)
    ⬛ GrayNo setup (no squeeze, no breakout)

Phase Label Breakdown:

Label TextMeaningColor
PHASE: Bullish BreakoutSqueeze resolved upward; DI+ > DI−; ADX rising; vol confirms🟢 Green
PHASE: Bearish BreakoutSqueeze resolved downward; DI− > DI+; ADX rising; vol confirms🔴 Red
PHASE: Squeeze CompressionCompression in play; waiting for breakout🟡 Yellow
PHASE: Neutral / No SetupNo squeeze; no valid signal yet⚪ Light Gray

1750300176843.png
 
Last edited:
This does pair well with Sam4Cok@Samer800 conversion of "Stochastic RSI 3in1 & Volatility peaks + ADX by AGU". I have added a top "highline" of 80 as a plot to identify bearish reversals and use the cross of the Stoc 1 and 3 line as a bullish signal. https://tos.mx/!D3UfSvaA
1750351956312.png
 
Last edited:
I love the ADX indicators of all kinds but sometimes due to my physical computer set up I have "alot going on" so I needed something more simplistic in a visual. This is where this indicator comes from, https://tos.mx/!T7R02R04. (this can be used on all timeframes) This indicator gives a visual with labels of stocks where:
  • ADX, DI+, and DI- are all below a threshold (default 25)
  • And they stay under that threshold for a defined number of consecutive days (default 5)
This is a volatility compression setup — often referred to as a "squeeze" — which can precede breakouts or reversals. The assumption is Low directional movement (low ADX and both DI lines compressed) is an area of potential buildup before expansion.

Pros:
  1. Simple but Effective Squeeze Logic: The use of ADX + DI+ and DI- being under a shared threshold is a good proxy for sideways, low-momentum markets.
  2. Customizable Settings: Threshold and duration (requiredDays) are inputs, allowing flexibility to test across various tickers and timeframes.
  3. Efficient Scan Condition: The logic is optimized and clean, avoiding redundant calculations.
  4. Useful Visual Labels: Helpful for manual review of ADX/DI+/- values at the point of scan.
Labelling Meaning:
  • Color Key​


    ColorMeaning
    🟩 GreenBullish breakout (ADX expanding, DI+ > DI−, volume confirms)
    🟥 RedBearish breakout (ADX expanding, DI− > DI+, volume confirms)
    🟨 YellowSqueeze in progress (volatility compression)
    ⬛ GrayNo setup (no squeeze, no breakout)

Phase Label Breakdown:

Label TextMeaningColor
PHASE: Bullish BreakoutSqueeze resolved upward; DI+ > DI−; ADX rising; vol confirms🟢 Green
PHASE: Bearish BreakoutSqueeze resolved downward; DI− > DI+; ADX rising; vol confirms🔴 Red
PHASE: Squeeze CompressionCompression in play; waiting for breakout🟡 Yellow
PHASE: Neutral / No SetupNo squeeze; no valid signal yet⚪ Light Gray

View attachment 24986
Ant, this looks amazing. I tried importing the link above but it defaulted into the upper price area and only gave me labels ? I'm not seeing the lower indicator.

Thanks
 
I enhanced it for my own use in case anyone would like to use this version:
http://tos.mx/!38DdGlCX

Key Improvements:
  1. Modular Inputs
    • Added toggles to enable/disable filters easily.
    • Customizable volume spike parameters
  2. Cooldown Period
    • Prevents repeated signals within cooldownBars after a breakout.
  3. Visual Enhancements
    • Breakout arrows for clearer chart signals.
    • Gradient-free labels showing squeeze duration (e.g., Squeeze (7 bars)).
  4. Optimized Logic
    • Stored repeated conditions as variables.
    • Streamlined directional filters with allowBull/allowBear.
  5. Professional Labels
    • Consolidated all labels into a logical group at the bottom.
    • Added color-coding for quick visual scanning.
Joe
 
Ant, love the indicator.... thank you! I noticed the DTE ADX Trend Alert Indicator on your chart that looks interesting. Can you post that code?

1751048818998.png
 
I enhanced it for my own use in case anyone would like to use this version:
http://tos.mx/!38DdGlCX

Key Improvements:
  1. Modular Inputs
    • Added toggles to enable/disable filters easily.
    • Customizable volume spike parameters
  2. Cooldown Period
    • Prevents repeated signals within cooldownBars after a breakout.
  3. Visual Enhancements
    • Breakout arrows for clearer chart signals.
    • Gradient-free labels showing squeeze duration (e.g., Squeeze (7 bars)).
  4. Optimized Logic
    • Stored repeated conditions as variables.
    • Streamlined directional filters with allowBull/allowBear.
  5. Professional Labels
    • Consolidated all labels into a logical group at the bottom.
    • Added color-coding for quick visual scanning.
Joe


This is interesting can you post some charts on how you use it ? Thank you!!
 

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
232 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