MTF Squeeze Analyzer - [tradeviZion]MTF Squeeze Analyzer
Multi-Timeframe Squeeze Pro Analyzer Tool
Overview:
The MTF Squeeze Analyzer is a comprehensive tool designed to help traders monitor the TTM Squeeze indicator across multiple timeframes in a streamlined and efficient manner. Built with Pine Script™ version 5, this indicator enhances your market analysis by providing detailed insights into squeeze conditions and momentum shifts, enabling you to make more informed trading decisions.
Key Features:
1. Multi-Timeframe Monitoring:
Comprehensive Coverage: Track squeeze conditions across multiple timeframes, including 1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 2-hour, 4-hour, and daily charts.
Squeeze Counts: Keep count of the number of consecutive bars the price has been within each squeeze level (low, mid, high), helping you assess the strength and duration of consolidation periods.
2. Dynamic Table Display:
Customizable Appearance: Adjust table position, text size, and colors to suit your preferences.
Color-Coded Indicators: Easily identify squeeze levels and momentum shifts with intuitive color schemes.
Message Integration: Features rotating messages to keep you engaged and informed.
3. Alerts for Key Market Events:
Squeeze Start and Fire Alerts: Receive notifications when a squeeze starts or fires on your selected timeframes.
Custom Squeeze Count Alerts: Set thresholds for squeeze counts and get alerted when these levels are reached, allowing you to anticipate potential breakouts.
Fully Customizable: Choose which alerts you want to receive and tailor them to your trading strategy.
4. Momentum Analysis:
Momentum Oscillator: Visualize momentum using a histogram that changes color based on momentum shifts.
Detailed Insights: Determine whether momentum is increasing or decreasing to make more strategic trading decisions.
How It Works:
The indicator is based on the TTM Squeeze concept, which identifies periods of low volatility where the market is "squeezing" before a potential breakout. It analyzes the relationship between Bollinger Bands and Keltner Channels to determine squeeze conditions and uses linear regression to calculate momentum.
1. Squeeze Levels:
No Squeeze (Green): Market is not in a squeeze.
Low Compression Squeeze (Gray): Mild consolidation, potential for a breakout.
Mid Compression Squeeze (Red): Moderate consolidation, higher breakout potential.
High Compression Squeeze (Orange): Strong consolidation, significant breakout potential.
2. Squeeze Counts:
Tracks the number of consecutive bars in each squeeze condition.
Helps identify how long the market has been consolidating, providing clues about potential breakout timing.
3. Momentum Histogram:
Upward Momentum: Shown in aqua or blue, indicating increasing or decreasing upward momentum.
Downward Momentum: Displayed in red or yellow, representing increasing or decreasing downward momentum.
Using Alerts:
Stay ahead of market movements with customizable alerts:
1. Enable Alerts in Settings:
Squeeze Start Alert: Get notified when a new squeeze begins.
Squeeze Fire Alert: Be alerted when a squeeze ends, signaling a potential breakout.
Squeeze Count Alert: Set a specific number of bars for a squeeze condition, and receive an alert when this count is reached.
2. Set Up Alerts on Your Chart:
Click on the indicator name and select " Add Alert on MTF Squeeze Analyzer ".
Choose your desired alert conditions and customize the notification settings.
Click " Create " to activate the alerts.
How to Set It Up:
1. Add the Indicator to Your Chart:
Search for " MTF Squeeze Analyzer " in the TradingView Indicators library.
Add it to your chart.
2. Customize Your Settings:
Table Display:
Choose whether to show the table and select its position on the chart.
Adjust text size and colors to enhance readability.
Timeframe Selection:
Select the timeframes you want to monitor.
Enable or disable specific timeframes based on your trading strategy.
Colors & Styles:
Customize colors for different squeeze levels and momentum shifts.
Adjust header and text colors to match your chart theme.
Alert Settings:
Enable alerts for squeeze start, squeeze fire, and squeeze counts.
Set your preferred squeeze type and count threshold for alerts.
3. Interpret the Data:
Table Information:
The table displays the squeeze status and counts for each selected timeframe.
Colors indicate the type of squeeze, making it easy to assess market conditions at a glance.
Momentum Histogram:
Use the histogram to gauge the strength and direction of market momentum.
Observe color changes to identify shifts in momentum.
Why Use MTF Squeeze Analyzer ?
Enhanced Market Insight:
Gain a deeper understanding of market dynamics by monitoring multiple timeframes simultaneously.
Identify potential breakout opportunities by analyzing squeeze durations and momentum shifts.
Customizable and User-Friendly:
Tailor the indicator to fit your trading style and preferences.
Easily adjust settings without needing to delve into the code.
Time-Efficient:
Save time by viewing all relevant squeeze information in one place.
Reduce the need to switch between different charts and timeframes.
Stay Informed with Alerts:
Never miss a critical market movement with fully customizable alerts.
Focus on other tasks while the indicator monitors the market for you.
Acknowledgment:
This tool builds upon the foundational work of John Carter , who developed the TTM Squeeze concept. It also incorporates enhancements from LazyBear and Makit0 , providing a more versatile and powerful indicator. MTF Squeeze Analyzer extends these concepts by adding multi-timeframe analysis, squeeze counting, and advanced alerting features, offering traders a comprehensive solution for market analysis.
Note: Always practice proper risk management and test the indicator thoroughly to ensure it aligns with your trading strategy. Past performance is not indicative of future results.
Trade smarter with TradeVizion—unlock your trading potential today!
Squeeze
MTF SqzMom [tradeviZion]Credits:
John Carter for creating the TTM Squeeze and TTM Squeeze Pro.
Lazybear for the original interpretation of the TTM Squeeze: Squeeze Momentum Indicator.
Makit0 for evolving Lazybear's script by incorporating TTM Squeeze Pro upgrades – Squeeze PRO Arrows.
MTF SqzMom - Multi-Timeframe Squeeze & Momentum Tool
MTF SqzMom is a tool designed to help traders easily monitor squeeze and momentum signals across multiple timeframes in a simple, organized format. Built using Pine Script 5, it ensures that data remains consistent, even when switching between different time intervals on the chart.
Key Features:
Multi-Timeframe Monitoring: Track squeeze and momentum signals across various timeframes, all in one view. This includes key timeframes like 1-minute, 5-minute, hourly, and daily.
Dynamic Table Display: A color-coded table that automatically adjusts based on the selected timeframes, offering a clear view of market conditions.
Alerts for Key Market Events: Get notifications when a squeeze starts or fires across your chosen timeframes, so you can stay informed without needing to monitor the chart continuously.
Customizable Appearance: Tailor the look of the table by selecting colors for squeeze levels and momentum shifts, and choose the best position on your chart for easy access.
How It Works:
MTF SqzMom is based on the concept of the squeeze, which signals periods of lower volatility where price breakouts may occur. The tool tracks this by monitoring the contraction of Bollinger Bands within Keltner Channels. Along with this, it provides momentum analysis to help you gauge the potential direction of the market after a squeeze.
Squeeze Conditions: The script tracks four levels of squeeze conditions (no squeeze, low, mid, and high), each represented by a different color in the table.
Momentum Analysis: Momentum is visually represented by colors indicating four stages: up increasing, up decreasing, down increasing, and down decreasing. This color coding helps you quickly assess whether the market is gaining or losing momentum.
Using Alerts:
You can enable two types of alerts: when a squeeze starts (indicating consolidation) and when a squeeze fires (indicating a breakout). These alerts cover all timeframes you’ve selected, so you never miss important signals.
How to Set It Up:
1. Enable Alerts in Settings: Turn on "Alert for Squeeze Start" and "Alert for Squeeze Fire" in the settings.
2. Add Alerts to Your Chart:
Click the three dots next to the indicator name.
Select "Add alert on tradeviZion - MTF SqzMom."
3. Customize and Save: Adjust alert options, choose your notification type, and click "Create."
Why Use MTF SqzMom ?
Consistent Data: The tool ensures that squeeze and momentum data remain consistent, even when you switch between chart intervals.
Real-Time Alerts: Stay updated with alerts for squeeze conditions without needing to constantly watch the chart.
Simple to Use, Customizable to Fit: You can easily adjust the table’s look and choose the timeframes and colors that best suit your trading style.
Acknowledgment:
While this tool builds on the TTM Squeeze concept developed by John Carter of Simpler Trading, it offers added flexibility through multi-timeframe analysis, alerts, and customizability to make monitoring market conditions more accessible.
Composite Z-Score with Linear Regression Bands [UAlgo]The Composite Z-Score with Linear Regression Bands is a technical indicator designed to provide traders with a comprehensive analysis of price momentum, volatility, and volume. By combining multiple moving averages with slope analysis, volume/volatility compression-expansion metrics, and Z-Score calculations, this indicator aims to highlight potential breakout and breakdown points with high accuracy. The inclusion of linear regression bands further enhances the analysis by providing dynamic support and resistance levels, which adapt to market conditions. This makes the indicator particularly useful in identifying overbought/oversold conditions, volume squeezes, and the overall direction of the trend.
🔶 Key Features
Multi-Length Slope Calculation: The indicator uses multiple Hull Moving Averages (HMA) across various lengths to calculate slope angles, which are then converted into Z-Scores. This helps in capturing both short-term and long-term price momentum.
Volume/Volatility Composite Analysis: By calculating a composite value derived from both volume and volatility, the indicator identifies periods of compression (squeezes) and expansion, which are crucial for detecting potential breakout opportunities.
Linear Regression Bands: The inclusion of dynamic linear regression bands provides traders with adaptive support and resistance levels. These bands are enhanced by the composite value, which adjusts the band width based on market conditions, offering a clearer view of possible price reversals.
Overbought/Oversold Detection: The indicator highlights overbought and oversold conditions by comparing Z-Scores against the upper and lower bounds of the regression bands, which can signal potential reversal points.
Customizable Inputs: Users can customize key parameters such as the lengths of the moving averages, the regression band period, and the number of deviations used for the bands, allowing for flexibility in adapting the indicator to different market environments.
🔶 Interpreting the Indicator
Z-Score Plots: The individual Z-Score plots represent the normalized slope of the Hull Moving Averages over different periods. Positive values indicate upward momentum, while negative values suggest downward momentum. The combined Z-Sum provides a broader view of the overall market momentum.
Composite Value: The composite value is a ratio of volume to volatility, which highlights periods of market compression and expansion. When the composite value rises, it suggests increasing market activity, often preceding a breakout.
Why are we calculating values for multiple lengths?
The Composite Z-Score with Linear Regression Bands indicator employs a multi-timeframe analysis by calculating Z-scores for various moving average lengths. This approach provides a more comprehensive view of market dynamics and helps to identify trends and potential reversals across different timeframes. By considering multiple lengths, we can:
Capture a broader range of market behaviors: Different moving average lengths capture different aspects of price movement. Shorter lengths are more sensitive to recent price changes, while longer lengths provide a smoother representation of the underlying trend.
Reduce the impact of noise: By combining Z-scores from multiple lengths, we can help to filter out some of the noise that can be present in shorter-term data and obtain a more robust signal.
Enhance the reliability of signals: When Z-scores from multiple lengths align, it can increase the confidence in the identified trend or potential reversal. This can help to reduce the likelihood of false signals.
In essence, calculating values for multiple lengths allows the indicator to provide a more nuanced and reliable assessment of market conditions, making it a valuable tool for traders and analysts.
Linear Regression Bands: The central line represents the linear regression of the Z-Sum, while the upper and lower bands represent the dynamic resistance and support levels, respectively. The deviation from the regression line indicates the strength of the current trend. When price moves beyond these bands, it may signal an overbought (above upper band) or oversold (below lower band) condition.
Volume/Volatility Squeeze: When the price moves between the regression bands and the volume/volatility-adjusted bands, the market is in a squeeze. Breakouts from this squeeze can lead to significant price moves, which are indicated by the filling of areas between the Z-Score plots and the bands.
Color Interpretation: The indicator uses color changes to make it easier to interpret the data. Teal colors generally indicate upward momentum or strong conditions, while red suggests downward momentum or weakening conditions. The intensity of the color reflects the strength of the signal.
Overbought/Oversold Signals: The indicator marks potential overbought and oversold conditions when Z-Scores cross above or below the upper and lower regression bands, respectively. These signals are crucial for identifying potential reversal points in the market.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Momentum & Squeeze Oscillator [UAlgo]The Momentum & Squeeze Oscillator is a technical analysis tool designed to help traders identify shifts in market momentum and potential squeeze conditions. This oscillator combines multiple timeframes and periods to provide a detailed view of market dynamics. It enhances the decision-making process for both short-term and long-term traders by visualizing momentum with customizable colors and alerts.
🔶 Key Features
Custom Timeframe Selection: Allows users to select a custom timeframe for oscillator calculations, providing flexibility in analyzing different market periods.
Recalculation Option: Enables or disables the recalculation of the indicator, offering more control over real-time data processing.
Squeeze Background Visualization: Highlights potential squeeze conditions with a background color, helping traders quickly spot consolidation periods.
Adjustable Squeeze Sensitivity: Users can modify the sensitivity of the squeeze detection, tailoring the indicator to their specific trading style and market conditions.
Bar Coloring Condition: Option to color the price bars based on momentum conditions, enhancing the visual representation of market trends.
Threshold Bands: Option to fill threshold bands for a clearer visualization of overbought and oversold levels.
Reference Lines: Display reference lines for overbought, oversold, and mid-levels, aiding in quick assessment of momentum extremes.
Multiple Output Modes: Offers different output visualization modes, including:
ALL: Displays all calculated momentum values (fast, medium, slow).
AVG: Shows the average momentum, providing a consolidated view.
STD: Displays the standard deviation of momentum, useful for understanding volatility.
Alerts: Configurable alerts for key momentum events such as crossovers and squeeze conditions, keeping traders informed of important market changes.
🔶 Usage
The Momentum & Squeeze Oscillator can be used for various trading purposes:
Trend Identification: Use the oscillator to determine the direction and strength of market trends. By analyzing the average, fast, medium, and slow momentum lines, traders can gain insights into short-term and long-term market movements.
Squeeze Detection: The indicator highlights periods of low volatility (squeeze conditions) which often precede significant price movements. Traders can use this information to anticipate and prepare for potential breakouts.
Overbought/Oversold Conditions: The oscillator helps identify overbought and oversold conditions, indicating potential reversal points. This is particularly useful for timing entry and exit points in the market.
Momentum Shifts: By monitoring the crossover of momentum lines with key levels (e.g., the 50 level), traders can spot shifts in market momentum, allowing them to adjust their positions accordingly.
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Squeeze Momentum Oscillator [AlgoAlpha]🎉📈 Introducing the Squeeze Momentum Oscillator by AlgoAlpha 📉🎊
Unlock the secrets of market dynamics with our innovative Squeeze Momentum Oscillator! Crafted for those who seek to stay ahead in the fast-paced trading environment, this tool amalgamates critical market momentum and volatility indicators to offer a multifaceted view of potential market movements. Here's why it's an indispensable part of your trading toolkit:
Key Features:
🌈 Customizable Color Schemes: Easily distinguish between bullish (green) and bearish (red) momentum phases for intuitive analysis.
🔧 Extensive Input Settings: Tailor the oscillator lengths for both Underlying and Swing Momentum to match your unique trading approach.
📊 Dedicated Squeeze Settings: Leverage precise volatility insights to identify market squeeze scenarios, signaling potential breakouts or consolidations.
🔍 Advanced Divergence Detection: Utilize sophisticated algorithms to detect and visualize both bullish and bearish divergences, pointing towards possible market reversals.
📈 Hyper Squeeze Detection: Stay alert to high-momentum market movements with our hyper squeeze feature, designed to extremely suppressed market volatility.
🔔 Comprehensive Alert System: Never miss a trading opportunity with alerts for momentum changes, squeeze conditions, and more.
Quick Guide to Using the Squeeze Momentum Oscillator:
🛠 Add the Indicator: Add the indicator to your favourites. Adjust the oscillator and squeeze settings to suit your trading preferences.
📊 Market Analysis: Keep an eye on the squeeze value and momentum z-score for insights into volatility and market direction. Hyper Squeeze signals are your cue for high momentum trading opportunities.
🔔 Alerts: Configure alerts for shifts in underlying and swing momentum, as well as entry and exit points for squeeze conditions, to capture market moves efficiently.
How It Works:
The Squeeze Momentum Oscillator by AlgoAlpha synergistically combines the principles of momentum tracking and market squeeze detection. By integrating the core logic of the Squeeze & Release indicator, it calculates the Squeeze Value (SV) through a comparison of the Exponential Moving Average (EMA) of the Average True Range (ATR) against the high-low price EMA. This SV is further analyzed alongside its EMA to pinpoint squeeze conditions, indicative of potential market breakouts or consolidations. In addition to this, the oscillator employs Hyper Squeeze Detection for identifying extremely low volatility. The momentum aspect of the oscillator evaluates the price movement relative to EMAs of significant highs and lows, refining these observations with a z-score normalization for short-term momentum insights. Moreover, the incorporation of divergence detection aids in identifying potential reversals, making this oscillator a comprehensive tool for traders looking to harness the power of volatility and momentum in their market analysis. The combination of the Squeeze & Release and the Momentum Oscillator allows traders to time their trades with more precision by entering when the market is in a squeeze and front running the volatility of a major move.
Elevate your trading strategy with the Squeeze Momentum Oscillator by AlgoAlpha and gain a competitive edge in deciphering market dynamics! 🌟💼 Happy trading!
Squeeze Momentum TD - A Revisited Version of the TTM SqueezeDescription:
The "Squeeze Momentum TD" is our unique take on the highly acclaimed TTM Squeeze indicator, renowned in the trading community for its efficiency in pinpointing market momentum. This script is a tribute and an extension to the foundational work laid by several pivotal figures in the trading industry:
• John Carter, for his creation of the TTM Squeeze and TTM Squeeze Pro, which revolutionized the way traders interpret volatility and momentum.
• Lazybear, whose original interpretation of the TTM Squeeze, known as the "Squeeze Momentum Indicator", provided an invaluable foundation for further development.
• Makit0, who evolved Lazybear's script to incorporate enhancements from the TTM Squeeze Pro, resulting in the "Squeeze PRO Arrows".
Our script, "Squeeze Momentum TD", represents a custom version developed after reviewing all variations of the TTM Squeeze indicator. This iteration focuses on a distinct visualization approach, featuring an overlay band on the chart for an user-friendly experience. We've distilled the essence of the TTM Squeeze and its advanced version, the TTM Squeeze Pro, into a form that emphasizes intuitive usability while retaining comprehensive analytical depth.
Features:
-Customizable Bollinger Bands and Keltner Channels: These core components of the TTM Squeeze.
-Dynamic Squeeze Conditions: Ranging from No Squeeze to High Compression.
-Momentum Oscillator: A linear regression-based momentum calculation, offering clear insights into market trends.
-User-Defined Color Schemes: Personalize your experience with adjustable colors for bands and plot shapes.
-Advanced Alert System: Alerts for key market shifts like Bull Watch Out, Bear Watch Out, and Momentum shifts.
-Adaptive Band Widths: Modify the band widths to suit your preference.
How to use it?
• Transition from Light Green to Dark Green: Indicates a potential end to the bullish momentum. This 'Bull Watch Out' signal suggests that traders should be cautious about continuing bullish trends.
• Transition from Light Red to Dark Red: Signals that the bearish momentum might be fading, triggering a 'Bear Watch Out' alert. It's a hint for traders to be wary of ongoing bearish trends.
• Shift from Dark Green to Light Green: This change suggests an increase in bullish momentum. It's an indicator for traders to consider bullish positions.
• Change from Dark Red to Light Red: Implies that bearish momentum is picking up. Traders might want to explore bearish strategies under this condition.
• Rapid Change from Light Red to Light Green: This swift shift indicates a quick transition from bearish to bullish sentiment. It's a strong signal for traders to consider switching to bullish positions.
• Quick Shift from Light Green to Light Red: Demonstrates a speedy change from bullish to bearish momentum. It suggests that traders might want to adjust their strategies to align with the emerging bearish trend.
Acknowledgements:
Special thanks to Beardy_Fred for the significant contributions to the development of this script. This work stands as a testament to the collaborative spirit of the trading community, continuously evolving to meet the demands of diverse trading strategies.
Disclaimer:
This script is provided for educational and informational purposes only. Users should conduct their own due diligence before making any trading decisions.
Squeeze & Release [AlgoAlpha]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.
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.
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.
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.
Range Detector [LuxAlgo]The Range Detector indicator aims to detect and highlight intervals where prices are ranging. The extremities of the ranges are highlighted in real-time, with breakouts being indicated by the color changes of the extremities.
🔶 USAGE
Ranging prices are defined by a period of stationarity, that is where prices move within a specific range.
Detecting ranging markets is a common task performed manually by traders. Price breaking one of the extremities of a range can be indicative of a new trend, with an uptrend if price breaks the upper range extremity, and a downtrend if price breaks the lower range extremity.
Ranges are highlighted as zones and are set retrospectively, that is the starting point of a range is offset in the past. The exact moment a range is detected is highlighted by a gray background color. The average between the maximum/minimum of a zone is also highlighted as a dotted line and is also set retrospectively.
The range extremities are set in real-time, blue extremities indicate the range extremities were not broken, green extremities indicate that price broke the upper range extremity, while red extremities indicate price broke the lower range extremity.
Extremities are extended until a new range is detected, allowing past ranges extremities can be used as future support/resistances.
🔶 DETAILS
The detection algorithm used to detect ranges tests if all the prices within a user-set window are all within two extremities. These extremities are determined by the mean of the detection window plus/minus an ATR value.
When a new range is detected, the script checks if this new range overlaps with a previously detected range, if this is the case, both ranges are merged into one; updating the extremities of the previous range.
This can be observed with the real-time extremities changing within a highlighted zone.
🔶 SETTINGS
Minimum Range Length: Minimum amount of bars needed to detect a range.
Range Width: Multiplicative factor for the ATR used to detect new ranges. Lower values detect ranges with a lower width. Using higher values might return false positives.
ATR Length: ATR length used to determine the range width.
IV Squeeze - Sunil Bhave This script calculates both Bollinger Bands and Keltner Channels on a 5-minute chart. It identifies IV squeeze conditions when the lower Bollinger Band is above the lower Keltner Channel and the upper Bollinger Band is below the upper Keltner Channel. When a squeeze is detected, it plots a red triangle below the chart bars and alerts you with a message.
Please note that this script is for educational purposes only.
DBMA - Dual Bollinger Moving AverageThe Dual Bollinger moving average (DBMA) consists of a moving average (MA) & two Bollinger Bands (BB), with the color of the bands representing the level of price compression. In its default settings, it is a 20-day simple moving average with 2 upper Bollinger Bands, having the standard deviation (SD) settings of 0.5 & 1, respectively.
How close the price is to the moving average?
For a pullback trader, the entry point should be close to the moving average, preferably with price compression. How close should it be, is where the bands serve as a guide. The low of the pullback candle should be within the bands, that is, at least within the far band (1 SD of the MA), or even better if it's within the near band (0.5 SD). When the price is outside the bands, it should not be considered favourable for a pullback entry.
For how long has the price been closer to the moving average?
John Carter’s TTM Squeeze indicator looked at the relationship between Bollinger Bands and Keltner's Channels to help identify period of volatility contractions. Bollinger Bands being completely enclosed within the Keltner Channels is indicative of a very low volatility. This is a state of volatility contraction known as squeeze. Using different ATR lengths (1.0, 1.5 and 2.0) for Keltner Channels, we can differentiate between levels of squeeze (High, Mid & Low compression, respectively). Greater the compression, higher the potential for explosive moves.
The squeeze portion of the script is based on LazyBear's script ( Squeeze Momentum Indicator )
The High, Mid & Low compression squeezes are depicted via the color of the bands being red, orange, or yellow, respectively. With the low of the pullback candle within the bands, & the squeeze color changing to red, it should be considered favourable for a pullback entry.
Trailing the price with the lower bands
The lower bands can be used for trailing with the moving average. While trailing, once the price closes below the moving average, the trailing stoploss (TSL) is said to be triggered, & the trade is exited. Here we use the bands to give it some cushion. Let the price close below the 1SD band for labelling the TSL as being triggered to exit the trade. If the price closes below the MA but is still within the bands, the signal is to keep holding the trade.
Divergence RSI V2This indicator is based on the concept of divergence. I recommend that you find out and study about this yourself as the concept of divergence will not be explained in depth in this description.
This indicator will show divergences between the asset price and the RSI oscillator. The indicator will look for divergent points between the rising highs and falling lows of the asset; and the rising lows and falling highs of the RSI.
The trend of the asset tends to follow the behavior of the oscillator when a divergence occurs. So if we find a divergence between the two, the price of the asset is likely to follow the trend of the oscillator.
This indicator looks for these types of divergences and will show (based on the RSI) if there is a bullish or bearish divergence.
If it is bullish, it will show a line joining those points in green and if it is bearish in red. In addition, it will show a label where you can see the number of occurrences that have been found from a certain point to another.
Note: this indicator can be complemented with the “Divergence V2” indicator which is also found in my library.
Settings
Backtesting Bars : is the number of bars back that the indicator will check. No more than 1000 is recommended as this will slow down the search.
Tolerance: number of times a divergent line can cross a bar. If you place 0, no bar can be crossed by a diverging line.
Min Bars To detect: will only search for divergences (or lines) that have the minimum number of bars selected in this option. Default option is 30.
Min Bars To detect: it will only search for divergences (or lines) that have the maximum number of bars selected in this option. Default option is 100.
Source Highs: The high points will be based on the close of each bar. You can use as another alternative.
Source Lows: The low points will be based on the close of each bar. You can use as another alternative.
Use squeeze parameter: only look for divergences (bullish or bearish) at times when such an indicator is in favor of the trend or coincides with the corresponding RSI divergence.
Divergence V2This indicator is based on the concept of divergence. I recommend that you find out and study about this yourself as the concept of divergence will not be explained in depth in this description.
This indicator will show divergences between the asset price and the RSI oscillator. The indicator will look for divergent points between the rising highs and falling lows of the asset; and the rising lows and falling highs of the RSI.
The trend of the asset tends to follow the behavior of the oscillator when a divergence occurs. So if we find a divergence between the two, the price of the asset is likely to follow the trend of the oscillator.
This indicator looks for these types of divergences and will show (based on the RSI) if there is a bullish or bearish divergence.
If it is bullish, it will show a line joining those points in green and if it is bearish in red. In addition, it will show a label where you can see the number of occurrences that have been found from a certain point to another.
Note: this indicator can be complemented with the “Divergence RSI V2” indicator which is also found in my library.
Settings
Backtesting Bars: is the number of bars back that the indicator will check. No more than 1000 is recommended as this will slow down the search.
Tolerance: number of times a divergent line can cross a bar. If you place 0, no bar can be crossed by a diverging line.
Min Bars To detect: will only search for divergences (or lines) that have the minimum number of bars selected in this option. Default option is 30.
Min Bars To detect: it will only search for divergences (or lines) that have the maximum number of bars selected in this option. Default option is 100.
Source Highs: The high points will be based on the close of each bar. You can use as another alternative.
Source Lows: The low points will be based on the close of each bar. You can use as another alternative.
Use squeeze parameter : only look for divergences (bullish or bearish) at times when such an indicator is in favor of the trend or coincides with the corresponding RSI divergence.
EMA orderly stacked or notThis script plots a green circle on top of the chart when the EMAs are stacked positively, a red circle if they are stacked negatively and gray if neither positively nor negatively stacked.
The EMAs used are:
8 EMA
21 EMA
34 EMA
55 EMA
89 EMA
Useful when you look for a quick and easy way to see if these EMAs are stacked positively or negatively as a confirmation to the Squeeze Pro indicator if going long or short (Squeeze Pro is developed by John Carter at SimplerTrading.com and can be purchased there).
Default 100 bars back, but that can be adjusted.
Remember to do your own research.
Feel free to adjust the script to your liking.
The script is not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by me.
Have fun!
VWAP Bollinger Band Crossover Breakout with ResistanceCredit to © Jesus_Salvatierra for VWAP script
This script help you find a trend in momentum stock that is about to breakout and shows resistance point. This script utilizes Bollinger bands VWAP and is good for intra day charts.
VWAP, or Volume Weighted Average Price, is a technical analysis tool used to measure the average price a security trades at during a given time period, weighted by the trading volume for each price level. It is commonly used by traders and investors to identify the true average price of a security and to assess whether they are buying or selling at a fair price.
A Bollinger Band is a technical analysis tool that uses standard deviation to measure the volatility of a security. The Bollinger Band is typically composed of three lines: the upper band, the lower band, and the middle band. The middle band is a simple moving average of the security's price, while the upper and lower bands are calculated based on the standard deviation of the security's price.
A Bollinger Band crossover occurs when the price of a security crosses above or below one of the bands. When the price crosses above the upper band, it is considered overbought, while when it crosses below the lower band, it is considered oversold. Traders often use Bollinger Band crossovers as a signal to enter or exit a position, depending on their trading strategy.
The VWAP and Bollinger Band crossover are two separate technical analysis tools that can be used in conjunction with each other. When a security's price crosses above or below the Bollinger Band, traders may look to the VWAP to confirm whether the security is trading at a fair price. If the security is trading above the VWAP, it may be overvalued, while if it is trading below the VWAP, it may be undervalued. Similarly, traders may use the Bollinger Band crossover as a signal to enter or exit a position, while also taking into account the VWAP to assess whether the price is fair.
Mora's Compression IndicatorIntroducing Mora's Price Compression indicator.
One of the biggest challenges in trading strategies is to differentiate between zones in which price is consolidated (so called squeezed) and zones of price expansion. Zones of consolidation can indicate traders' indecision or the creation of order blocks, but regardless of their mechanism, most indicators behave differently in those areas as oppose to times when price is trending.
A traditional indicator of consolidation zones is the so call Squeeze, which combines Bollinger Bands and Keltner’s Channels.. although broadly used, its interpretation is not quite straightforward.
Here a new indicator is introduced to identify areas of consolidation or expansion based on current and historical volatility.
Ultimately we know the price is consolidated (current volatility) when it starts raging within a narrower band that we are use to see (Historical volatility), so the ratio of the current to historical volatility becomes a straightforward identification of consolidation zones and that is what this indicator provides.
The indicator is scaled such that values near zero mean price is compressed and values near 100 price is over-extended. The indicators is designed to allow different time-frames, while avoiding repainting.
Simple RangeThe daily price range is a good proxy to judge an instrument’s volatility. I have combined multiple concepts in this indicator to display information regarding the daily price range & its volatility.
A trading period's range is simply the difference between its high and the low. This script shows the daily high-to-low range of the price as a column chart. It has 3 main components:
1. Narrow-range days (NR7) & Wide-range Days (WR20) - as plot columns
Original concept from Thomas Bulkowski
Modified from "NR4 & NR7 Indicator" script by theapextrader7
Modified from "WR - BC Identifier" script by wrpteam2020
Narrow range days mark price contractions that often precede price expansions. This script uses NR7 (narrow range 7) as a narrow-range day. This value can be changed by the user if, instead of an NR7, he or she wishes to use NR4 or NR21, or any other interval of his or her choice. NR7 is an indecisive trading day in which the range is narrower than any of the previous six days (a total of 7 days). This is a popular concept given by Thomas Bulkowski. A breakout is said to occur when price closes above the top or below the bottom of the NR7. Upside breakout of an NR 7 candle with high volumes indicates bullishness.
Similarly, highs & lows of wide-range bars (on big volumes) are also significant reference levels for price. Wide-range candle are identified by size of the body candle (open - close). The script compares the size of previous 20 candles to identify WR20 candles. This value can also be changed by the user.
The script shows NR7 & WR20 as orange & blue bars, respectively.
The user can also turn on the option to identify a big high-to-low range candle greater than a pre-defined threshold (default is 5%). These show up as green or red bars.
2. TTM Squeeze - as background
Original concept from John Carter's book "Mastering the Trade"
Based on "Squeeze Momentum Indicator" script by LazyBear
John Carter’s TTM Squeeze indicator looks at the relationship between Bollinger Bands and Keltner's Channels to help identify period of volatility contractions. Bollinger Bands being completely enclosed within the Keltner Channels is indicative of a very low volatility. This is a state of volatility contraction known as squeeze. Using different ATR lengths (1.0, 1.5 and 2.0) for Keltner Channels, we can differentiate between levels of squeeze (High, Mid & Low compression, respectively). Greater the compression, higher the potential for explosive moves.
In the script, the High, Mid & Low compression squeezes are depicted via the background color being red, orange, or yellow, respectively.
3. Average Daily Range - as table
Original idea by alpine_trader
Modified from "ADR% - Average Daily Range % by MikeC" script by TheScrutiniser
Average Day Range (ADR) tells how much the price moves between the high and low on a given day. This is the day Range, which is then averaged to create ADR. The script uses an average of the last 20 days to calculate the ADR. Unlike ATR (Average True Range), this excludes Gaps.
The script displays the ADR as a % value in a table.
If you want to find stocks that move a lot on an average on most days, then look for stocks that have ADR% of 5% or more.
If you prefer lower volatility stocks, focus on stocks with lower ADR% values, such as 2% or less.
How it comes together
For a bullish "momentum burst", or a velocity trade:
Select stocks with Average Day Range % (ADR) greater than 5
Identify significant reference price levels via highs & lows of WR20 bars (on big volumes)
Wait for a decent mid-to-high compression squeeze
Look for clusters of NR7 candles in the consolidation
Any breakout from this consolidation should be accompanied by more than average (preferably pocket pivot) volumes
1st Gray Cross Signals ━ Histogram SQZMOM [whvntr][LazyBear]This is the Histogram Version of one of my other indicators named: SQZ Momentum + 1st Gray Cross Signals (with arrows) Which is a modification of "Squeeze Momentum Indicator" by user: "LazyBear". In that indicator of his he described, and suggested, the use of his gray cross signals to find points of interest for trading based on the direction of momentum when the first gray cross appears... I have programmed these points, and highlighted them, for ease of use. The 1st gray cross strategy, he said , is from John F. Carter's book, Chapter 11, "Mastering the Trade".
Here we have the Histogram version, with background highlights only, and nothing on the chart, in true SQZ Momentum style.
Disclaimer: using this indicator, or any indicator anywhere, involves risk when trading and isn't a guarantee of 100% accurate results.
Combined Moving Averages + Squeeze & Volume Spike SignalsThis is a set of 4 combined moving averages. Each moving average is a combination of an EMA, SMA, HMA, RMA, WMA and VWMA with the same length as set in your input settings. All 6 of them are added together and then divided by 6 for an average of all of them. This is based on the theory that most traders use their own preference of moving averages, so combining them all should give us a better idea of where price should actually react since we are using the average of what most traders are using on their charts. It also smooths the moving averages out as well so you get a much easier to read moving average than any of them on their own which should help you hold positions longer and time your entries better.
The default lengths used for this indicator are as follows: 10, 50, 100 and 500. These lengths can be updated in the settings. The 10 and 500 will change colors when the individual moving average is less than or greater than its previous value. Price above or below the moving average does not affect the colors. The 50 and 100 are colored based on whether the 50 is greater/less than the 100.
The two middle length moving averages by default are the 50 and 100. This has been turned into a cloud because it is the area where price typically bounces, since tons of traders use the 50 and 100 moving averages. This should be your long/short zone when price is trending.
Each moving average can be set to use a different source such as close, open, high, low, ohlc4, etc. You can also adjust the length of each moving average. Default settings work well, but feel free to customize them to your liking. You can also change the colors of the lines in the settings.
Beware that changing the lengths of MA #2 and MA #3 will change the signals, squeezes and the cloud.
VOLUME SPIKES
The cloud will change to a brighter color when a volume spike is detected. When a major volume spike is detected, it will turn very bright colored green/red according to the direction of the cloud. This notifies you of volume spikes so you have a better idea of how strong the trend is. If the cloud is a dark green/red then that means that volume is less than or equal to the recent median volume.
SIGNALS
There are also signals that will be given when the current candle is in the cloud, the candle is going in the same direction as the cloud, the MA #2 and MA #3 is going in the same direction and a volume spike is detected. These help you identify good entries when markets are trending. Be cautious of these signals when the trend is sideways and not clearly moving in one direction. The signals can be turned on or off in the settings.
SQUEEZE
Many times when moving averages squeeze together, a big move happens shortly after. Because of this I added a yellow background color when a squeeze is detected. It looks at the median value difference of the MA #2 and MA #3 and if the current value difference is less than the median multiplied by the multiplier in the settings then it will change the background color to notify you. The default value of the multiplier is .6, meaning the squeeze signal will only show if the current value difference of the cloud is less than .6 of the median difference. The multiplier can be adjusted in the settings to suit your preferences. Lower values will only show tighter squeezes.
MARKETS
This indicator can be used on all markets including stocks, crypto, futures and forex.
TIMEFRAMES
This indicator can be used on all timeframes.
PAIRINGS
We recommend pairing this combined moving average with Trend Friend Swing Trade And Scalp Signals for extra confluence. Look for price to bounce in the cloud with good volume and a confirming signal from Trend Friend for highly probable moves.
Squeeze Index [LuxAlgo]The Squeeze Index aims to measure the action of price being squeezed, and is expressed as a percentage, with higher values suggesting prices are subject to a higher degree of compression.
Settings
Convergence Factor: Convergence factor of exponential envelopes.
Length: Period of the indicator.
Src: Source input of the indicator.
Usage
Prices being squeezed refer to the action of price being compressed within a tightening area. Prices in a tight area logically indicate a period of stationarity, price breaking out of this area will generally indicate the trader whether to buy or sell depending on the breakout direction.
The convergence factor and length settings both play an important role in the returned indicator values. A convergence factor greater than the period value will detect more squeezed prices area, while a period greater than the convergence will return fewer detected squeezed areas.
We recommend using a convergence factor equal to the period setting or a convergence factor twice as high.
The above chart makes use of a convergence factor of 100 and a period of 10.
Due to the calculation method, it is possible to see retracements being interpreted as price squeezing. This effect can be emphasized with higher convergence factor values.
Details
In order to measure the effect of price being squeezed in a tighter area we refer to damping, where the oscillations amplitude of a system decrease over time. If the envelopes of a damped system can be estimated, then getting the difference between the upper and lower extremity of these envelopes would return a decreasing series of values.
This approach is used here. First the difference between the exponential envelopes extremities is obtained, the logarithm of this difference if obtained due to the extremities converging exponentially toward their input.
We then use the correlation oscillator to get a scaled measurement.
MACD frontSide backSide + TTM Squeeze by bangkokskaterDark Mode is enabled by default for black theme
disable Dark Mode for white theme
MACD frontSide backSide
===================
an elegant, much better way to use MACD
for trend following momentum ( aka momo) style
MACD with default settings of 12/26 smoothing of 9
✔️ but without histogram
✔️ only has MACD and signal "lines"
green = frontSide momentum impulse
take longs only
red = backSide momentum impulse
take shorts only
black area = exit (once green or red is no longer showing)
or keep holding till next bigger TP
PS: credits to Warrior Trading Ross Cameron for this idea
youtu.be
TTM Squeeze
===================
white dots = incoming pump / dump (monitor for entry)
PS: credits to John Carter's TTM Squeeze & Greeny for PineScript adaptation
Squeeze Momentum Strategy [LazyBear] Buy Sell TP SL Alerts-Modified version of Squeeze Momentum Indicator by @LazyBear.
-Converted to version 5,
-Taken inspiration from @KivancOzbilgic for its buy sell calculations,
-Used @Bunghole strategy template with Take Profit, Stop Loss and Enable/Disable Toggles
-Added Custom Date Backtesting Module
------------------------------------------------------------------------------------------------------------------------
All credit goes to above
Problem with original version:
The original Squeeze Momentum Strategy did not have buy sell signals and there was alot of confusion as to when to enter and exit.
There was no proper strategy that would allow backtesting on which further analysis could be carried out.
There are 3 aspects this strategy:
1 ) Strategy Logic (easily toggleable from the dropdown menu from strategy settings)
- LazyBear (I have made this simple by using Kivanc technique of Momentums Moving Average Crossover, BUY when MA cross above signal line, SELL when crossdown signal line)
- Zero Crossover Line (BUY signal when crossover zero line, and SELL crossdown zero line)
2) Long Short TP and SL
- In strategies there is usually only 1 SL and 1 TP, and it is assumed that if a 2% SL giving a good profit %, then it would be best for both long and short. However this is not the case for many. Many markets/pairs, go down with much more speed then they go up with. Hence once we have a profitable backtesting setting, then we should start optimizing Long and Short SL's seperately. Once that is done, we should start optimizing for Long and Short TP's separately, starting with Longs first in both cases.
3) Enable and Disable Toggles of Long and Short Trades
- Many markets dont allow short trades, or are not suitable for short trades. In this case it would be much more feasible to disable "Short" Trading and see results of Long Only as a built in graphic view of backtestor provides a more easy to understand data feed as compared to the performance summary in which you have to review long and short profitability separately.
4) Custom Data Backtesting
- One of most crucial aspects while optimizing for backtesting is to check a strategies performance on uptrends, downtrend and sideways markets seperately as to understand the weak points of strategy.
- Once you enable custom date backtesting, you will see lines on the chart which can be dragged left right based on where you want to start and end the backtesting from and to.
Note:
- Not a financial advise
- Open to feedback, questions, improvements, errors etc.
- More info on how the squeeze momentum works visit LazyBear indicator link:
Happy Trading!
Cheers
M Tahreem Alam @mtahreemalam
Variety-Filtered, Squeeze Moving Averages [Loxx]Variety-Filtered, Squeeze Moving Averages is a chop zone indicator that identifies when price is below a specific volatility threshold calculated as the difference between a fast and slow moving average and filtered using ATR- or Pips-based threshold. This indicator can be use as both an entry and exit indicator. It identifies both chop zones and breakouts/breakdowns
How to use
When the candles turn white and the threshold bands appear on the chart, this is indicative of low volatility
When price exits the threshold bands, price will usually explode up or down giving a long or short signal. This acts as a sort of squeeze momentum.
Included:
Bar coloring
Signals
Alerts, 4 types of alerts: Squeeze started, Squeeze ended, long, and short
Loxx's Expanded Source Types
35+ Loxx's Moving Averages
Bollinger Bands SqueezeBollinger Bands set to only display when a squeeze is taking place. Squeeze will be highlighted.