Using Webhooks to Automate the Squeeze Indicator (2024)

The TTM Squeeze is a popular indicator that looks to identify potential breakouts for a stock. With the addition of Webhooks, we can now combine automation with external trading platforms and custom indicators to take advantage of unique trading opportunities.

In this article, we’ll explore how the Squeeze indicator works and how we can use it to trigger automations in Option Alpha using webhooks and TradingView alerts. Once the alert triggers, the webhook is called and the automation can open a position using the buy or sell signal.

Squeeze Indicator

The Squeeze Indicator combines Bollinger Bands (BB) and Keltner Channels (KC) to identify squeeze conditions in the market. Inspired by other popular Squeeze indicators, this customized version includes enhanced features and distinct color coding to improve clarity and usability.

Using Webhooks to Automate the Squeeze Indicator (1)

The original ‘TTM Squeeze’ indicator, developed by John Carter, is a momentum-based indicator highlighting periods of consolidation that are likely to precede significant price moves to signal potential opportunities.

The Squeeze Indicator is intended to detect periods when the market is in a tight trading range (squeeze) and signal potential breakout opportunities. This can be a powerful tool for traders looking to signal trades after periods of consolidation and before impending volatility in the market.

Key components of the Squeeze Indicator

  1. Bollinger Bands (BB)
    • Calculated using a simple moving average (SMA) and standard deviation.
    • Bands are set at a default length of 20 periods and a multiplier of 2.0.
  2. Keltner Channels (KC)
    • Calculated using an exponential moving average (EMA) and average true range (ATR).
    • Channels are set at a default length of 20 periods and a multiplier of 1.5.
  3. Squeeze Condition
    • Squeeze On: Occurs when the Bollinger Bands are within the Keltner Channels, indicating low volatility and a potential squeeze.
    • Squeeze Off: Occurs when the Bollinger Bands expand beyond the Keltner Channels, signaling a possible release of volatility.
  4. Momentum Oscillator:
    • Uses a linear regression of the source price, adjusted by the average of the highest high and lowest low over a specified period.
    • Plots a histogram that visually represents momentum, helping to confirm the direction of the potential breakout.

Bollinger Bands measure market volatility and are plotted at a standard deviation level above and below a simple moving average.

Keltner Channels use the average true range (ATR) to set channel distance, which is plotted around an exponential moving average.

The Squeeze fires when the Bollinger Bands move inside the Keltner Channels, indicating a period of low volatility and consolidation. When the Bollinger Bands move outside the Keltner Channels, the squeeze has "fired," suggesting that a significant price move may imminent.

Features of the Squeeze Indicator

  1. Dynamic color coding
    • Positive Momentum: Green shades.
    • Negative Momentum: Blue shades.
    • Squeeze Indicators:
    Blue for no squeeze; Black for squeeze on; Gray for squeeze off
  2. Alerts for squeeze release
    • Squeeze Release Up:Triggers an alert when the squeeze condition transitions from on to off, indicating potential upward breakout.
    •Squeeze Release Down: Triggers an alert when the squeeze condition transitions from off to on, indicating potential downward breakout.

How traders use the Squeeze Indicator

  • Identifying Breakouts: Helps traders spot potential breakouts before they happen.
  • Volatility Analysis: Measures market volatility effectively, helping traders understand market conditions.
  • Momentum Detection: Assesses the strength and direction of price movements.
  • Flexibility: Can be used in various markets and timeframes.

How to set up Alerts in TradingView

To automate your trading strategy using the Squeeze indicator and Option Alpha, you need to set up alerts in TradingView and connect them to Option Alpha using webhooks.

Add the Squeeze Indicator to Your Chart

Create Alerts for the Squeeze Indicator

  • Click on the "Alerts" button (clock icon) at the top of the screen.
  • Set up an alert for when the squeeze fires (e.g., when the black dots turn to grey dots).
  • Configure the alert conditions.

Using Webhooks to Automate the Squeeze Indicator (4)

How to set up Webhooks in TradingView

Use Option Alpha’s webhooks to send alerts to your bots and trigger an automation to open a position.

Create a Webhook in Option Alpha

You can create a new webhook URL inside your Option Alpha Settings:

Using Webhooks to Automate the Squeeze Indicator (5)

Or when creating a New Automation in a bot's Settings tab (you can also use an existing webhook; webhooks can be used in multiple bots):

Using Webhooks to Automate the Squeeze Indicator (6)

Add the unique Webhook URL to the TradingView alert

  • In the alert's notifications window select "Webhook URL"
  • Copy your unique Option Alpha webhook URL and paste it into the alert

Using Webhooks to Automate the Squeeze Indicator (7)

Example webhook URL setup:https://app.optionalpha.com/api/webhook/your-webhook-url

Configure your Option Alpha automations

Once your TradingView alerts are set up to send webhooks, configure Option Alpha to receive these alerts and trigger corresponding automations. Create a bot or add the automations to an existing bot using the webhook trigger. This will ensure that each webhook for the Up vs. Down squeeze signal triggers your desired actions.

Using Webhooks to Automate the Squeeze Indicator (8)

Example automation workflow

Set Up Squeeze Alert in TradingView

  • Condition: Squeeze indicator fires
  • Action: Send webhook to Option Alpha with a buy signal

Configure Option Alpha Automation

  • Webhook Trigger: Receive buy signal from TradingView
  • Action: Automation runs and executes and opens a bullish position

*Option Alpha is not affiliated with TradingView and does not endorse any specific strategy, indicator, or alert. Additional fees may be required to use TradingView. Option Alpha is not responsible for any data latency issues inside TradingView.

Using Webhooks to Automate the Squeeze Indicator (2024)
Top Articles
Q&A with Frankie Smith: my journey into finance
Premier League CEO Q&A: Richard Masters opens up on some of football's biggest talking points
2018 Jeep Wrangler Unlimited All New for sale - Portland, OR - craigslist
It's Official: Sabrina Carpenter's Bangs Are Taking Over TikTok
Tmf Saul's Investing Discussions
Caesars Rewards Loyalty Program Review [Previously Total Rewards]
Prosper TX Visitors Guide - Dallas Fort Worth Guide
Nikki Catsouras Head Cut In Half
Irving Hac
Canelo Vs Ryder Directv
MADRID BALANZA, MªJ., y VIZCAÍNO SÁNCHEZ, J., 2008, "Collares de época bizantina procedentes de la necrópolis oriental de Carthago Spartaria", Verdolay, nº10, p.173-196.
Our History | Lilly Grove Missionary Baptist Church - Houston, TX
Hover Racer Drive Watchdocumentaries
Moe Gangat Age
Miami Valley Hospital Central Scheduling
Facebook Marketplace Charlottesville
How Many Cc's Is A 96 Cubic Inch Engine
Shannon Dacombe
Michael Shaara Books In Order - Books In Order
Sprinkler Lv2
Nordstrom Rack Glendale Photos
Rochester Ny Missed Connections
[PDF] PDF - Education Update - Free Download PDF
Caring Hearts For Canines Aberdeen Nc
Ontdek Pearson support voor digitaal testen en scoren
Asteroid City Showtimes Near Violet Crown Charlottesville
Deshuesadero El Pulpo
What Individuals Need to Know When Raising Money for a Charitable Cause
Dtlr On 87Th Cottage Grove
Gina's Pizza Port Charlotte Fl
Yoshidakins
Robot or human?
Workday Latech Edu
Hermann Memorial Urgent Care Near Me
How to Destroy Rule 34
Chilangos Hillsborough Nj
Avance Primary Care Morrisville
450 Miles Away From Me
Hingham Police Scanner Wicked Local
Marcus Roberts 1040 Answers
Craigslist Mexicali Cars And Trucks - By Owner
Cpmc Mission Bernal Campus & Orthopedic Institute Photos
Homeloanserv Account Login
Pa Legion Baseball
Foxxequeen
Penny Paws San Antonio Photos
Collision Masters Fairbanks
The Cutest Photos of Enrique Iglesias and Anna Kournikova with Their Three Kids
Fresno Craglist
Solving Quadratics All Methods Worksheet Answers
Maurices Thanks Crossword Clue
Dumb Money Showtimes Near Regal Stonecrest At Piper Glen
Latest Posts
Article information

Author: Allyn Kozey

Last Updated:

Views: 5271

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Allyn Kozey

Birthday: 1993-12-21

Address: Suite 454 40343 Larson Union, Port Melia, TX 16164

Phone: +2456904400762

Job: Investor Administrator

Hobby: Sketching, Puzzles, Pet, Mountaineering, Skydiving, Dowsing, Sports

Introduction: My name is Allyn Kozey, I am a outstanding, colorful, adventurous, encouraging, zealous, tender, helpful person who loves writing and wants to share my knowledge and understanding with you.