Trend Duration Forecast [ChartPrime]⯁ OVERVIEW   
The  Trend Duration Forecast   indicator is designed to estimate the probable lifespan of a bullish or bearish trend. Using a  Hull Moving Average (HMA)  to detect directional shifts, it tracks the duration of each historical trend and calculates an average to forecast how long the current trend is statistically likely to continue. This allows traders to visualize both real-time trend strength and potential exhaustion zones with exceptional clarity.
 ⯁ KEY FEATURES   
   
   Dynamic Trend Detection:  Utilizes the Hull Moving Average to identify when price transitions into a new uptrend or downtrend.  
  
   Trend Duration Counting:  Measures the number of bars in each completed bullish and bearish phase to understand trend persistence.  
  
   Forecast Projection:  Automatically projects an estimated trend continuation line based on the average length of recent trends.  
  
   Real-Time Updates:  Continuously updates the “Real Length” label as the trend develops.
  
   Historical Data Table:  Displays previous trend durations for both bullish and bearish cycles, along with their averages.  
  
   Adaptive Sampling:  Uses a customizable sample size to smooth out volatility in the forecast and provide statistically meaningful projections.  
   Color-Based Clarity:  Highlights uptrends in green and downtrends in orange for instant visual interpretation.    
 
 ⯁ USAGE   
   
  Use the  Trend Detection Sensitivity  setting to control how fast or slow the indicator reacts to trend changes — lower values increase responsiveness, while higher values smooth out noise.  
  
  Compare the  Real Length  of the ongoing trend with the  Probable Length  forecast to estimate whether the move is nearing exhaustion.  
  
  Observe the historical duration table to understand the average lifespan of trends in the current market structure.  
  
  Use the color-coded HMA line and projection arrows to identify when momentum strength is fading and prepare for possible reversals.  
  Ideal for swing or trend-following strategies where trend longevity is crucial to managing entries and exits effectively.  
 
 ⯁ CONCLUSION   
The  Trend Duration Forecast   gives traders a quantitative edge by combining real-time trend tracking with statistical forecasting. It helps identify not only when a new trend begins, but also how long it’s likely to persist based on past market behavior. This indicator enhances timing precision for both entries and exits, supporting smarter trend-following decisions with clear, data-driven insights.
Chartprime
Zone Shift [ChartPrime]⯁ OVERVIEW 
 Zone Shift   is a dynamic trend detection tool that uses EMA/HMA-based bands to determine trend shifts and plot key reaction levels. It highlights trend direction through colored candles and marks important retests with visual cues to help traders stay aligned with momentum.
 ⯁ KEY FEATURES 
 
  Dynamic EMA-HMA Band:
Creates a three-line channel using the average of an EMA and HMA for the midline, and expands it using average candle range to form upper and lower bounds. This band visually adapts to market volatility.
 
float ema  = ta.ema(close, length)
float hma  = ta.hma(close, length-40)
float dist = ta.sma(high-low, 200)
float mid  = math.avg(ema, hma)
float top  = mid + dist
float bot  = mid - dist
 
  
  Trend Detection (Band Cross Logic):
Detects an uptrend when the Low crosses above the top band.
Detects a downtrend when the High crosses below the bottom band.
Bars change color to lime for uptrends and blue for downtrends.
  
  Trend Initiation Level:
At the start of a new trend, the indicator locks in the extreme point (low for uptrend, high for downtrend) and plots a dashed horizontal level, serving as a potential retest zone.
  
  Trend Retest Signal:
If price crosses back over the Trend Initiation level in the direction of the trend, a diamond label (⯁) is plotted at the retest point — confirming that price is revisiting a key shift level.
  
  Visual Band Layout:
Midline: Dashed line shows the average of EMA and HMA.
Top/Bottom: Solid lines showing dynamic thresholds above/below the midline.
These help visualize compression, expansion, and possible breakout zones.
  
  Color-Based Candle Plotting:
Candles are recolored in real time according to the current trend, allowing instant visual alignment with the market’s directional bias.
  
  Noise-Filtered Retests:
To avoid repetitive signals, retests are only marked if they occur more than 5 bars after the previous one — filtering out minor fluctuations.
 
 ⯁ USAGE 
 
  Use colored candles to align trades with the dominant trend.
  Treat dashed trendStart levels as important support/resistance zones.
  Watch for ⯁ diamond labels as confirmation of retests for continuation or entry.
  Use band boundaries to assess trend strength and volatility expansion.
  Combine with your existing setups to validate momentum and zone shifts.
 
 ⯁ CONCLUSION 
 Zone Shift   helps traders visually capture trend changes and key reaction points with precision. By combining band breakouts with real-time retest signals and trend-colored candles, this tool simplifies the process of reading market structure shifts and identifying high-confluence entry areas.
RSI-Adaptive T3 + Squeeze Momentum Strategy✅ Strategy Guide: RSI-Adaptive T3 + Squeeze Momentum Strategy 
📌  Overview 
The RSI-Adaptive T3 + Squeeze Momentum Strategy is a dynamic trend-following strategy based on an  RSI-responsive T3 moving average  and  Squeeze Momentum detection .
It adapts in real-time to market volatility to enhance entry precision and optimize risk.
⚠️ This strategy is provided for educational and research purposes only.
Past performance does not guarantee future results.
🎯  Strategy Objectives 
The main objective of this strategy is to catch the early phase of a trend and generate consistent entry signals.
Designed to be intuitive and accessible for traders from beginner to advanced levels.
✨  Key Features 
 
 RSI-Responsive T3: T3 length dynamically adjusts according to RSI values for adaptive trend detection
 Squeeze Momentum: Combines Bollinger Bands and Keltner Channels to identify trend buildup phases
 Visual Triggers: Entry signals are generated from T3 crossovers and momentum strength after squeeze release
 
📊  Trading Rules 
 Long Entry: 
When T3 crosses upward, momentum is positive, and the squeeze has just been released.
 Short Entry: 
When T3 crosses downward, momentum is negative, and the squeeze has just been released.
 Exit (Reversal): 
When the opposite condition to the entry is triggered, the position is reversed.
💰  Risk Management Parameters 
 
 Pair & Timeframe: BTC/USD (30-minute chart)
 Capital (simulated): $30,00
 Order size: `$100` per trade (realistic, low-risk sizing)
 Commission: 0.02%
 Slippage: 2 pips
 Risk per Trade: 5%
 Number of Trades (backtest period): 181
 
 📊 Performance Overview 
 
 Symbol: BTC/USD
 Timeframe: 30-minute chart
 Date Range: January 1, 2024 – July 3, 2025
 Win Rate: 47.8%
 Profit Factor: 2.01
 Net Profit: 173.16 (units not specified)
 Max Drawdown: 5.77% or 24.91 (0.79%)
 
⚙️  Indicator Parameters 
 Indicator Name:  RSI-Adaptive T3 + Squeeze Momentum
 
 RSI Length: 14
 T3 Min Length: 5
 T3 Max Length: 50
 T3 Volume Factor: 0.7
 BB Length: 27 (Multiplier: 2.0)
 KC Length: 20 (Multiplier: 1.5, TrueRange enabled)
 
🖼  Visual Support 
T3 slope direction, squeeze status, and momentum bars are visually plotted on the chart,
providing high clarity for quick trend analysis and execution.
🔧  Strategy Improvements & Uniqueness 
Inspired by the  RSI Adaptive T3 by ChartPrime  and  Squeeze Momentum Indicator by LazyBear ,
this strategy fuses both into a  hybrid trend-reversal and momentum breakout detection system .
Compared to traditional trend-following methods, it excels at  capturing early trend signals with greater sensitivity .
✅  Summary 
The RSI-Adaptive T3 + Squeeze Momentum Strategy combines momentum detection with volatility-responsive risk management.
With a strong balance between visual clarity and practicality, it serves as a powerful tool for traders seeking high repeatability.
⚠️ This strategy is based on historical data and does not guarantee future profits.
Always use appropriate risk management when applying it.
Parabolic RSI Strategy [ChartPrime × PineIndicators]This strategy combines the strengths of the Relative Strength Index (RSI) with a Parabolic SAR logic applied directly to RSI values.
 Full credit to ChartPrime for the original concept and indicator, licensed under the MPL 2.0. 
It provides clear momentum-based trade signals using an innovative method that tracks RSI trend reversals via a customized Parabolic SAR, enhancing traditional oscillator strategies with dynamic trend confirmation.
 How It Works 
The system overlays a Parabolic SAR on the RSI, detecting trend shifts in RSI itself rather than on price, offering early reversal insight with visual and algorithmic clarity.
 Core Components 
 1. RSI-Based Trend Detection 
 
  Calculates RSI using a customizable length (default: 14).
  Uses upper and lower thresholds (default: 70/30) for overbought/oversold zones.
 
 2. Parabolic SAR Applied to RSI 
 
  A custom Parabolic SAR function tracks momentum within the RSI, not price.
  This allows the system to capture RSI trend reversals more responsively.
  Configurable SAR parameters: Start, Increment, and Maximum acceleration.
 
 3. Signal Generation 
 
   Long Entry:  Triggered when the SAR flips below the RSI line.
   Short Entry:  Triggered when the SAR flips above the RSI line.
  Optional RSI filter ensures that:
 
  Long entries only occur above a minimum RSI (e.g. 50).
  Short entries only occur below a maximum RSI.
 
  Built-in logic prevents new positions from being opened against trend without prior exit.
 
 Trade Modes & Controls 
 
  Choose from:
 
   Long Only 
   Short Only 
   Long & Short 
 
  Optional setting to  reverse positions on opposite signal  (instead of waiting for a flat close).
 
 Visual Features 
 1. RSI Plotting with Thresholds 
 
  RSI is displayed in a dedicated pane with overbought/oversold fill zones.
  Custom horizontal lines mark threshold boundaries.
 
 2. Parabolic SAR Overlay on RSI 
 
  SAR dots color-coded for trend direction.
  Visible only when enabled by user input.
 
 3. Entry & Exit Markers 
 
   Diamonds:  Mark entry points (above for shorts, below for longs).
   Crosses:  Mark exit points.
 
 Strategy Strengths 
 
  Provides early momentum reversal entries without relying on price candles.
  Combines oscillator and trend logic without repainting.
  Works well in both trending and mean-reverting markets.
  Easy to configure with fine-tuned filter options.
 
 Recommended Use Cases 
 
  Intraday or swing traders who want to catch RSI-based reversals early.
  Traders seeking smoother signals than price-based Parabolic SAR entries.
  Users of RSI looking to reduce false positives via trend tracking.
 
 Customization Options 
 
  RSI Length and Thresholds.
  SAR Start, Increment, and Maximum values.
  Trade Direction Mode (Long, Short, Both).
  Optional RSI filter and reverse-on-signal settings.
  SAR dot color customization.
 
 Conclusion 
The Parabolic RSI Strategy   is an  innovative, non-repainting momentum strategy  that enhances RSI-based systems with trend-confirming logic using Parabolic SAR. By applying SAR logic to RSI values, this strategy offers early, visualized, and filtered entries and exits that adapt to market dynamics.
 Credit to ChartPrime for the original methodology, published under MPL-2.0.
Gradient Trend Filter STRATEGY [ChartPrime/PineIndicators]This strategy is based on the Gradient Trend Filter indicator developed by ChartPrime. Full credit for the concept and indicator goes to ChartPrime. 
The Gradient Trend Filter Strategy is designed to execute trades based on the trend analysis and filtering system provided by the Gradient Trend Filter indicator. It integrates a noise-filtered trend detection system with a color-gradient visualization, helping traders identify trend strength, momentum shifts, and potential reversals.
 How the Gradient Trend Filter Strategy Works 
 1. Noise Filtering for Smoother Trends 
To reduce false signals caused by market noise, the strategy applies a three-stage smoothing function to the source price. This function ensures that trend shifts are detected more accurately, minimizing unnecessary trade entries and exits.
 
  The filter is based on an Exponential Moving Average (EMA)-style smoothing technique.
  It processes price data in three successive passes, refining the trend signal before generating trade entries.
  This filtering technique helps eliminate minor fluctuations and highlights the true underlying trend.
 
 2. Multi-Layered Trend Bands & Color-Based Trend Visualization 
The Gradient Trend Filter constructs multiple trend bands around the filtered trend line, acting as dynamic support and resistance zones.
 
  The mid-line changes color based on the trend direction:
Green for uptrends
Red for downtrends
  A gradient cloud is formed around the trend line, dynamically shifting colors to provide early warning signals of trend reversals.
  The outer bands function as potential support and resistance, helping traders determine stop-loss and take-profit zones.
 
 Visualization elements used in this strategy: 
 
  Trend Filter Line → Changes color between green (bullish) and red (bearish).
  Trend Cloud → Dynamically adjusts color based on trend strength.
  Orange Markers → Appear when a trend shift is confirmed.
 
 Trade Entry & Exit Conditions 
This strategy automatically enters trades based on confirmed trend shifts detected by the Gradient Trend Filter.
 1. Trade Entry Rules 
 
  Long Entry:
A bullish trend shift is detected (trend direction changes to green).
The filtered trend value crosses above zero, confirming upward momentum.
The strategy enters a long position.
  Short Entry:
A bearish trend shift is detected (trend direction changes to red).
The filtered trend value crosses below zero, confirming downward momentum.
The strategy enters a short position.
 
 2. Trade Exit Rules 
 
  Closing a Long Position:
If a bearish trend shift occurs, the strategy closes the long position.
  Closing a Short Position:
If a bullish trend shift occurs, the strategy closes the short position.
 
The trend shift markers (orange diamonds) act as a confirmation signal, reinforcing the validity of trade entries and exits.
 Customization Options 
This strategy allows traders to adjust key parameters for flexibility in different market conditions:
 
  Trade Direction: Choose between  Long Only, Short Only, or Long & Short .
  Trend Length: Modify the length of the smoothing function to adapt to different timeframes.
  Line Width & Colors: Customize the visual appearance of trend lines and cloud colors.
  Performance Table: Enable or disable the equity performance table that tracks historical trade results.
 
 Performance Tracking & Reporting 
A built-in performance table is included to monitor monthly and yearly trading performance.
 
  The table calculates monthly percentage returns, displaying them in a structured format.
  Color-coded values highlight profitable months (blue) and losing months (red).
  Tracks yearly cumulative performance to assess long-term strategy effectiveness.
 
Traders can use this feature to evaluate historical performance trends and optimize their strategy settings accordingly.
 How to Use This Strategy 
 
  Identify Trend Strength & Reversals:
Use the trend line and cloud color changes to assess trend strength and detect potential reversals.
  Monitor Momentum Shifts:
Pay attention to gradient cloud color shifts, as they often appear before the trend line changes color.
This can indicate early momentum weakening or strengthening.
  Act on Trend Shift Markers:
Use orange diamonds as confirmation signals for trend shifts and trade entry/exit points.
  Utilize Cloud Bands as Support/Resistance:
The outer bands of the cloud serve as dynamic support and resistance, helping with stop-loss and take-profit placement.
 
 Considerations & Limitations 
 
  Trend Lag: Since the strategy applies a smoothing function, entries may be slightly delayed compared to raw price action.
  Volatile Market Conditions: In high-volatility markets, trend shifts may occur more frequently, leading to higher trade frequency.
  Optimized for Trend Trading: This strategy is best suited for trending markets and may produce false signals in sideways (ranging) conditions.
 
 Conclusion 
The Gradient Trend Filter Strategy is a trend-following system based on the Gradient Trend Filter indicator by ChartPrime. It integrates noise filtering, trend visualization, and gradient-based color shifts to help traders identify strong market trends and potential reversals.
By combining trend filtering with a multi-layered cloud system, the strategy provides clear trade signals while minimizing noise. Traders can use this strategy for long-term trend trading, momentum shifts, and support/resistance-based decision-making.
This strategy is a fully automated system that allows traders to execute long, short, or both directions, with customizable settings to adapt to different market conditions.
 Credit for the original concept and indicator goes to ChartPrime.
Future Trend Channel [ChartPrime]The  Future Trend Channel   indicator is a dynamic tool for identifying trends and projecting future prices based on channel formations. The indicator uses SMA (Simple Moving Average) and volatility calculations to plot channels that visually represent trends. It also detects moments of lower momentum, indicated by neutral color changes in the channels, and projects future price levels for up to 50 bars ahead.
 ⯁ KEY FEATURES AND HOW TO USE   
   
   ⯌ Dynamic Trend Channels :  
The indicator draws channels when a trend is identified. It uses a combination of SMA and volatility to determine the direction and strength of the trend. Each channel is visualized with a specific color, where green indicates an uptrend and orange represents a downtrend.  
 Example of channels during uptrend and downtrend:   
  
   ⯌ Momentum-Based Color Shifts :  
The indicator adapts its channel colors based on momentum changes. When the starting point (Y1) of a channel is higher than its ending point (Y2) during an uptrend, the channel turns neutral, indicating lower momentum and a possible ranging market. The same applies in a downtrend, where the channel turns neutral if Y1 is lower than Y2.  
 Example of neutral momentum channels:   
  
   ⯌ Future Price Projection :  
At the end of each channel, the indicator generates a projected future price based on the midpoint of the channel. By default, this projection is made 50 bars into the future, but users can adjust the number of bars to their preference.  
 Example of future price projection:   
  
   ⯌ Diamond Signals for Valid Trends :  
Lime-colored diamonds appear when an uptrend channel is confirmed, while orange diamonds indicate valid downtrend channels. These signals confirm the presence of a strong trend and help identify valid entry and exit points. Neutral channels, which indicate lower momentum, do not show diamond signals.  
 Example of trend confirmation signals:   
  
   ⯌ Customizable Settings :  
Users can adjust the channel length (how far back the trend is analyzed) and the width (which determines the channel boundaries based on volatility). The future price projection can also be customized to forecast further or fewer bars into the future.  
 
 ⯁ USER INPUTS   
   
   Trend Length : Sets the number of bars used to calculate the trend channels.  
   Channel Width : Adjusts the width of the channels, based on volatility (ATR multiplier).  
   Up and Down Colors : Allows customization of the colors used for uptrend and downtrend channels.  
   Future Bars : Sets the number of bars used for future price projection.  
 
 ⯁ CONCLUSION   
The  Future Trend Channel   indicator is a versatile tool for identifying and trading trends. With its ability to detect momentum shifts and project future prices, it provides traders with key insights for making more informed decisions. The use of diamond signals for trend validation adds an extra layer of confirmation, helping traders act with greater confidence during volatile or trending markets.





