OPEN-SOURCE SCRIPT

Squeeze & Release [AlgoAlpha]

Updated
Introduction:
💡The Squeeze & Release by AlgoAlpha is an innovative tool designed to capture price volatility dynamics using a combination of EMA-based calculations and ATR principles. This script aims to provide traders with clear visual cues to spot potential market squeezes and release scenarios. Hence it is important to note that this indicator shows information on volatility, not direction.

Core Logic and Components:

🔶EMA Calculations: The script utilizes the Exponential Moving Average (EMA) in multiple ways to smooth out the data and provide indicator direction. There are specific lengths for the EMAs that users can modify as per their preference.
🔶ATR Dynamics: Average True Range (ATR) is a core component of the script. The differential between the smoothed ATR and its EMA is used to plot the main line. This differential, when represented as a percentage of the high-low range, provides insights into volatility.
🔶Squeeze and Release Detection: The script identifies and highlights squeeze and release scenarios based on the crossover and cross-under events between our main line and its smoothed version. Squeezes are potential setups where the market may be consolidating, and releases indicate a potential breakout or breakdown.
🔶Hyper Squeeze Detection: A unique feature that detects instances when the main line is rising consistently over a user-defined period. Hyper squeeze marks areas of extremely low volatility.
snapshot

Visual Components:

The main line (ATR-based) changes color depending on its position relative to its EMA.
A middle line plotted at zero level which provides a quick visual cue about the main line's position. If the main line is above the zero level, it indicates that the price is squeezing on a longer time horizon, even if the indicator indicates a shorter-term release.
"𝓢" and "𝓡" characters are plotted to represent 'Squeeze' and 'Release' scenarios respectively.
snapshot

Standard Deviation Bands are plotted to help users gauge the extremity and significance of the signal from the indicator, if the indicator is closer to either the upper or lower deviation bands, this means that statistically, the current value is considered to be more extreme and as it is further away from the mean where the indicator is oscillating at for the majority of the time. Thus indicating that the price has experienced an unusual amount or squeeze or release depending on the value of the indicator.
snapshot

Usage Guidelines:

☝️Traders can use the script to:
  • Identify potential consolidation (squeeze) zones.
  • Gauge potential breakout or breakdown scenarios (release).
  • Fine-tune their entries and exits based on volatility.
  • Adjust the various lengths provided in the input for better customization based on individual trading styles and the asset being traded.
Release Notes
Added alerts: Squeeze, Release, Hyper Squeeze
algoalphaalgotradingchartreleasesqueezestatisticsTechnical AnalysisVolatilityvolatilityindexvolatilityindicatorvolatiltyWave Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


🔶15% OFF CODE FOR VIP BUNDLE: 'ALPH4' 🔶(ends soon.)

🚨Get premium: algoalpha.io

🛜Get FREE signals: discord.gg/xCmqTVRexz

❓Do you have feedback or indicator ideas? Join our server to tell us about it!
Also on:

Disclaimer