OPEN-SOURCE SCRIPT

ST+SQZMOM v.3

Updated
ST+SQZMOM v.3 Indicator
inspired by Supertrend and SQZMOM of LazyBear

Purpose: This script is designed to help traders identify market trends and potential trading opportunities using two key indicators: Supertrend and Squeeze Momentum Indicator (SQZMOM).

---

Key Features:

1. Supertrend Indicator:
- Trend Detection: Shows whether the market is in an uptrend or downtrend.
- Dynamic Levels: Uses Average True Range (ATR) to set support and resistance levels.

2. Squeeze Momentum Indicator (SQZMOM):
- Volatility Measurement: Identifies periods of low volatility (squeeze) and potential breakout points.
- Bollinger Bands & Keltner Channels: Combines these two tools to assess market conditions.

3. Custom Alerts:
- Trend Change Alerts: Notifies you when the trend changes.
- Squeeze Alerts: Alerts you when the market is entering or exiting a squeeze.

4. Customizable Settings:
- Adjust parameters like ATR length, Bollinger Bands length, and moving average periods to fit your trading style.

---

How It Works:

1. Calculate Trend:
- The script calculates the Supertrend to determine if the market is trending up or down.

2. Identify Squeeze:
- It checks if the market is in a squeeze (low volatility) or has released from a squeeze (high volatility).

3. Set Targets and Stop Loss:
- Based on the trend and squeeze conditions, it calculates entry points, target levels, and stop loss levels for trades.

4. Visual Indicators:
- Plots the Supertrend line, Bollinger Bands, Keltner Channels, and shapes to indicate market conditions (e.g., squeeze on/off, trend changes).

5. Trigger Alerts:
- Sends alerts when specific conditions are met, such as a squeeze release or trend change.

---

Conclusion

The ST+SQZMOM v.3 Indicator is a powerful tool for traders looking to analyze market trends and volatility. By combining the Supertrend and Squeeze Momentum indicators, it provides a comprehensive view of market conditions, helping you make informed trading decisions.
Release Notes
update wrong logic, on alert safe mode target 2 and 3
Release Notes
change line 112 and line 113
Bollinger Bands (BB)Keltner Channels (KC)Trend 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?

Disclaimer