Trendline Bounce [EXCAVO]Automatic Trendline Detection with Multi-Stage Bounce Detection and Quality Filters
The Trendline Bounce automatically identifies support and resistance trendlines
validated by three or more confirmed pivot touches. When price returns to an established
line, the indicator places a directional bounce arrow and triggers the alert. A dual-
lookback architecture fires earlier than traditional pivot-confirmation methods, while
span, regime, and trend filters eliminate structurally weak or contextually invalid setups.
This is not a simple two-point line connector. The slope is derived from a best-fit
search across all qualifying pivots, every candidate line is rejected if any candle
between touch points crosses the boundary, and three parallel detection channels reduce
the confirmation delay without sacrificing structural validity.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW TO USE
Step 1 → Add the indicator. Trendlines appear immediately - solid line
is the most recent valid line per direction, dashed lines are
the previous ones (up to Max Lines per Side).
Step 2 → Watch for the bounce arrow. A triangle (▲ or ▼) marks the bar
where the third or later touch is detected. Check the dashboard
for the quality grade (A / B / C).
Step 3 → Use the Trend Filter and ATR Regime Filter inputs to narrow the
context. Enable Trend Filter to gate bounces by 200 EMA direction.
Enable ATR Regime Filter to suppress detections during extreme
volatility spikes.
Step 4 → Adjust Early Detection Lookback to trade off timing vs. accuracy.
Lower values fire earlier but may produce more noise. The Detection
Lookback controls the quality trendline anchor; Early Detection
Lookback controls how quickly subsequent touches are confirmed.
Step 5 → Use dashed historical lines for context. They show where price
previously respected trendlines and may act as reference levels.
Step 6 → Set alerts to monitor conditions in real time. Use "Any Bounce"
for general monitoring or direction-specific alerts for automated
setups via webhook.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW IT CALCULATES
◆ Pivot Detection (Quality Layer)
Swing highs and lows are confirmed using ta.pivothigh() / ta.pivotlow() with
Detection Lookback bars required on each side (default 14). A pivot high at bar B
requires bar B's high to be the maximum of the surrounding 14 bars on both sides.
Up to 60 pivots per direction are stored in a rolling buffer. These quality pivots
form the structural anchor for trendline fitting.
◆ Best-Slope Trendline Fitting
For each anchor pivot A, the algorithm scans all other pivots B to compute slope:
sl = (price_B - price_A) / (bar_B - bar_A). Slopes steeper than 0.5 x ATR per bar
are rejected. For each valid slope, the algorithm counts how many pivots fall within
ATR x Tolerance of the projected line. The slope maximizing confirmed touch count
(minimum 3) is selected. This approach finds the line that fits the most pivots
rather than simply connecting two points.
◆ Breakout Rejection Sampling
Once a candidate line passes the touch count test, 60 evenly spaced bars between the
first and last touch are sampled. If any sampled bar's high (for resistance) or low
(for support) exceeds the projected price plus tolerance, the line is rejected. This
catches wick or body violations between pivot points that pure pivot-based validation
would miss.
◆ Minimum Span Filter
A trendline whose first and last touch are fewer than Min Trendline Span bars apart
is discarded. Three pivots clustered within a few bars share no structural significance.
This filter ensures every displayed line represents a meaningful price reaction period,
not a short-term oscillation.
◆ Three-Channel Bounce Detection
After the structural line set is built, three parallel detection channels produce the
bounce arrow:
1. Quality path: when the most recent quality pivot (i_len delay) falls on an
established line within the tolerance band, a detection fires.
2. Early path: when the most recent fast pivot (Early Detection Lookback, default 5)
touches an already-established quality trendline, a detection fires earlier than
waiting for full quality confirmation.
3. Real-time path: every tick, each stored trendline is projected to the current bar.
If the current bar's high (resistance) or low (support) enters the tolerance band,
a detection fires immediately without waiting for pivot confirmation.
All three channels require the line to have been built from quality pivots. The early
and real-time channels only fire against pre-validated structural lines - they do not
create new lines themselves.
◆ Trend and Regime Gates
Two optional gates filter the output of all three detection channels. The Trend Filter
(200 EMA) passes bullish detections only when close is above the EMA and bearish
detections only when close is below. The ATR Regime Filter computes
ta.percentrank(ATR, 200) / 100 and suppresses all detections when the result exceeds
0.90 - this blocks entries during the top 10% of volatility events where trendline
breaks are more likely than bounces.
◆ Bounce Grade (A / B / C)
Each detected bounce is evaluated at the detection bar: volume ratio = volume /
SMA(volume, 20); wick position = (close - low) / (high - low) for bullish or
(high - close) / (high - low) for bearish. Grade A requires volume ratio >= 2.0
AND wick position >= 0.60. Grade B requires ratio >= 1.5 OR position >= 0.50.
Grade C is assigned otherwise.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ WHAT MAKES IT DIFFERENT
◆ Best-Slope Fitting Across All Pivots
Rather than connecting only two pivots, the algorithm finds the slope that maximizes
the number of confirmed touches. A line with three near-misses is ranked higher than
a line connecting two pivots perfectly, because more touches represent stronger
structural significance.
◆ Breakout Rejection via Bar Sampling
Most trendline tools draw a line between any two pivots regardless of what happens in
between. This indicator samples 60 bars between the first and last touch and rejects
any line where a candle crosses the boundary. Only lines price has genuinely respected
are shown.
◆ Minimum Span Filter
Trendlines that form in fewer bars than the span threshold are discarded. This removes
short-term pivot clusters that look like trendlines but carry no structural weight.
The result is fewer, higher-quality lines.
◆ Three-Channel Detection for Earlier Timing
Traditional trendline indicators confirm a bounce only after the full pivot lookback
elapses - on a 4H chart with lookback 14, that is 56 hours after the actual low. The
early detection channel reduces this to 5 bars (20 hours on 4H). The real-time channel
fires on the current bar. Both channels require the line to already be structurally
validated - they reduce timing delay without introducing unvalidated lines.
◆ Trend and Regime Filters
The 200 EMA gate removes counter-trend detections. The ATR regime gate suppresses
detections during the highest-volatility periods where trendline structure tends to
break rather than hold. Both filters are optional and off by default.
◆ Exact Touch Markers
Circles are placed at actual candle prices (high for resistance, low for support), not
at the theoretical projected price on the line. This makes it immediately visible
whether the wick tapped the line or the body closed through it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ DASHBOARD
Real-time panel (top right corner) showing current state:
Last Bounce - direction (▲ bullish / ▼ bearish) and quality grade (A/B/C) of the most recent bounce
Trend (200 EMA) - current price position relative to 200 EMA (▲ Bull / ▼ Bear)
Lines R / S - count of currently active resistance and support trendlines
Legend table (bottom left) explains every visual element. Both panels can be
toggled independently in Dashboard settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ SETTINGS
Trendlines
Detection Lookback - 14 bars (bars on each side to confirm a quality swing pivot; higher = fewer but stronger lines)
Max Lines per Side - 5 (maximum number of trendlines shown per direction)
Tolerance (xATR) - 0.5 (ATR multiple defining how close a pivot must be to the line to count as a touch)
Min Trendline Span - 30 bars (minimum bars between first and last touch; filters structurally insignificant lines)
Bounce Detection
Min Touches - 3 (minimum confirmed touches before a bounce arrow appears)
Show Grade (A/B/C) - ON (display quality grade in the dashboard)
Early Detection Lookback - 5 bars (shorter lookback for faster bounce detection on established lines)
Trend Filter (200 EMA) - OFF (when ON: bullish bounces above EMA only, bearish below only)
ATR Regime Filter - OFF (when ON: suppresses detections when ATR is above 90th percentile of last 200 bars)
Visualization
Support Color - blue (color for support trendlines and bullish bounce arrows)
Resistance Color - red (color for resistance trendlines and bearish bounce arrows)
Bounce Color - orange (color for bounce arrows)
Bar Coloring - OFF (color bars on bounce detection using direction color)
Show 200 EMA - OFF (plot 200-bar EMA on the chart)
Dashboard
Show Dashboard - ON
Dashboard Position - Top Right (Top Right / Top Left / Bottom Right / Bottom Left)
Show Legend - ON
Alert Settings
Allow Repainting - OFF (when off, detection confirms at bar close; enable only if monitoring open bars)
JSON Alerts - OFF (structured JSON payload for webhook automation)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ ALERTS
Bullish Bounce - price touches a confirmed support trendline for the 3rd+ time
Bearish Bounce - price touches a confirmed resistance trendline for the 3rd+ time
Any Bounce - bounce detected in either direction
All alerts respect the Allow Repainting setting. When off, bounces are confirmed
at bar close only. JSON Alerts option sends a structured payload with ticker,
price, timeframe, direction, and grade fields.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best regards,
EXCAVO
Disclaimer
Trading involves significant risk. This indicator is a technical analysis tool
and does not constitute financial advice, investment recommendations, or a
guarantee of future results. Past indicator behavior does not guarantee future
performance. Always use proper risk management and your own judgment.
Indicator

Indicator

Indicator

Hull Market Structure [BOSWaves]Hull Market Structure - Hull-Filtered Break of Structure Detection with Integrated Position Planning
Overview
Hull Market Structure is a structure-based trend identification system that detects Break of Structure and Change of Character events through swing pivot analysis filtered by Hull Moving Average trend direction, where signal validity, structural level plotting, and position tool generation are governed by the alignment between confirmed swing breaks and the underlying Hull trend state rather than raw price crossovers or unfiltered pivot reactions.
Instead of relying on unqualified structure breaks that fire regardless of trend context, BOS and CHoCH events are gated by Hull trend direction, ensuring that bullish structural breaks only register during confirmed Hull uptrends and bearish structural breaks only register during confirmed Hull downtrends, eliminating a significant portion of counter-trend noise that plagues standard market structure implementations.
This creates a structure detection framework that combines two independent but complementary layers of evidence: confirmed swing pivot breaks that identify structural shifts in price behavior, and Hull trend direction that filters those breaks for alignment with the dominant momentum state. When both layers agree, the indicator plots the structural event, labels it correctly as either a continuation BOS or a reversal CHoCH, and optionally deploys a full position planning tool with calculated entry, stop loss, and multi-target take profit levels.
Price structure is therefore evaluated not in isolation but in the context of a momentum-validated trend framework, producing signals that reflect genuine structural agreement rather than mechanical pivot crossovers.
Conceptual Framework
Hull Market Structure is founded on the principle that break of structure signals carry meaningful directional information only when they occur in alignment with the prevailing momentum trend, and that the distinction between a trend continuation break and a character-changing reversal break carries significant strategic weight that standard BOS indicators routinely ignore.
Traditional market structure tools plot every swing break regardless of trend context, producing frequent counter-trend signals that require manual filtering. This framework embeds that filtering directly into the detection logic, using the Hull Moving Average as a momentum validation layer that qualifies structural breaks before they are registered, and separately classifying each qualifying break as either a BOS or CHoCH based on the current structural trend state.
Three core principles guide the design:
Structure breaks should only fire when aligned with Hull trend direction, ensuring momentum context validates each structural event before it is presented.
Each structural break should be classified as continuation (BOS) or reversal (CHoCH) based on the prior structural trend state, preserving the critical distinction between trend-following and trend-changing breaks.
CHoCH events should optionally generate a full position planning framework at the point of reversal, translating structural signals directly into actionable trade planning output.
This shifts market structure analysis from mechanical pivot tracking into momentum-qualified structural event detection with integrated trade planning capability.
Theoretical Foundation
The indicator combines Hull Moving Average trend direction measurement, confirmed swing pivot detection, structural trend state tracking, BOS and CHoCH classification logic, and an optional position tool that calculates and plots entry, stop loss, and three take profit levels from each CHoCH event.
The Hull Moving Average provides low-lag trend direction through comparison of current and two-bar-lagged values, producing a responsive momentum filter that avoids the smoothing delay of standard moving averages. Pivot highs and lows are confirmed through a configurable left-right bar requirement applied to swing detection. Structural trend state is maintained independently of Hull direction, tracking the most recent structural break to determine whether the next break represents continuation or character change. The position tool derives risk levels directly from the CHoCH bar's price action, scaling take profit targets as configurable multiples of the measured risk.
Four internal systems operate in tandem:
Hull Trend Engine : Calculates the Hull Moving Average and determines directional state through comparison with its two-bar-lagged value, providing the momentum filter that gates structural break registration.
Swing Pivot Detection : Identifies confirmed swing highs and lows through the configurable pivot length parameter, maintaining current and previous pivot levels with their originating bar indices for structural level plotting.
Structure Break Classification : Tests price for crossovers of previous pivot levels when Hull trend alignment is confirmed, classifying each qualifying break as BOS or CHoCH based on whether it continues or contradicts the prior structural trend state.
Position Tool Engine : On CHoCH events with the position tool enabled, calculates entry, stop loss with percentage buffer, and three R-multiple take profit levels, plotting them with gradient-filled risk and reward zones that extend a configurable number of bars forward.
This design ensures that structural events carry both momentum validation and classification context, and that reversal signals translate directly into structured trade planning output.
How It Works
Hull Market Structure evaluates price through a sequence of structure-aware and momentum-validated processes:
Hull Direction Calculation : The Hull Moving Average is calculated over the configured length and compared with its two-bar-lagged value. A value above its lag registers bullish Hull trend, below registers bearish Hull trend.
Pivot Registration : Confirmed swing highs and lows are registered when sufficient bars to the left and right validate the pivot, storing the current and previous pivot price and bar index for each side independently.
Bull Break Testing : On each bar during a bullish Hull trend, price is tested against the previous confirmed swing high. A close crossing above that level after closing at or below it on the prior bar triggers a bull structural break.
Bear Break Testing : On each bar during a bearish Hull trend, price is tested against the previous confirmed swing low. A close crossing below that level after closing at or above it on the prior bar triggers a bear structural break.
Cooloff Enforcement : A configurable minimum bar distance between consecutive bullish and bearish signals is enforced independently for each direction, preventing signal clustering during volatile structural events.
BOS or CHoCH Classification : Each qualifying break is classified by comparing its direction to the current structural trend state. A bullish break during a bearish or neutral structural trend registers as CHoCH. A bullish break during an existing bullish structural trend registers as BOS. The same logic applies in reverse for bearish breaks.
Structural Level Plotting : A dashed line extends from the origin bar of the breached pivot to the signal bar at the pivot level, with a text label centered along the line displaying either BOS or CHoCH in the appropriate directional color.
Position Tool Deployment : On CHoCH events with the position tool enabled, entry is set to the open of the following bar, stop loss is derived from the signal bar's low or high with a percentage buffer applied, risk is calculated as the entry-to-stop distance, and three take profit levels are plotted at configurable R multiples above or below entry.
Position Zone Visualization : Gradient-filled boxes cover the risk zone between entry and stop loss, and the reward zones between each consecutive take profit level, extending rightward for the configured number of bars with opacity increasing at greater distances from entry.
Candle Coloring : Optional bar coloring applies the bullish or bearish color based on current structural trend state, providing continuous directional context independent of Hull trend or signal generation.
Together, these elements form a momentum-filtered structure detection system that classifies each qualifying event, plots the originating level, and translates reversal breaks into ready-to-use trade planning frameworks.
Interpretation
Hull Market Structure should be interpreted as a momentum-validated structural event system with integrated position planning output:
Hull Band Fill : The filled area between the Hull line and its two-bar-lagged value provides a continuous visual reference for Hull trend state and direction, coloring green during bullish Hull trend and red during bearish Hull trend.
BOS Label : Appears on a structural break that occurs in the same direction as the existing structural trend, confirming trend continuation through a new swing level breach with Hull momentum aligned.
CHoCH Label : Appears on a structural break that contradicts the existing structural trend, signaling a potential trend reversal where price has breached a swing level in the opposing direction with Hull momentum confirming.
Structural Level Lines : Dashed lines extending from the breached pivot's origin bar to the signal bar mark the exact level at which the structural event occurred, providing historical reference for the significance of each break.
Position Entry Line : Solid horizontal line at the open price of the bar following a CHoCH, representing the suggested trade entry level for the structural reversal setup.
Stop Loss Line : Dotted line below entry for long positions and above entry for short positions, calculated from the CHoCH bar's extreme with a configurable percentage buffer applied for risk breathing room.
TP1 / TP2 / TP3 Lines : Dotted take profit lines at configurable R multiples from entry, providing a three-stage exit framework scaled to the measured risk of each individual setup.
Risk and Reward Zones : Gradient-filled boxes between entry and stop loss and between consecutive take profit levels provide immediate visual risk-to-reward assessment without manual calculation.
Colored Candles : Optional bar coloring reflects current structural trend state, with bullish color applied after a bullish structural break and bearish color applied after a bearish structural break until the opposing direction breaks.
Hull trend alignment, structural classification, and position tool levels collectively provide more information than any element in isolation.
Signal Logic & Visual Cues
Hull Market Structure presents two structural signal types with distinct strategic implications:
BOS (Break of Structure) : Labeled in the trend direction color when a swing level is breached in alignment with the existing structural trend. Represents continuation of the established structural sequence and does not trigger position tool deployment.
CHoCH (Change of Character) : Labeled in the trend direction color when a swing level is breached against the existing structural trend. Represents a potential structural reversal and triggers position tool deployment when the feature is enabled.
Both signal types require Hull trend alignment to fire, ensuring that structural events are always evaluated in their momentum context. The cooloff parameter prevents successive signals of the same type from clustering within a defined bar window.
Alert generation covers bullish and bearish BOS events and bullish and bearish CHoCH events independently for systematic structural monitoring and notification workflows.
Strategy Integration
Hull Market Structure fits within momentum-validated market structure and systematic trade planning approaches:
CHoCH Reversal Entries : Use CHoCH signals as primary entry triggers where structural trend has reversed with Hull momentum confirming, deploying the position tool output as a complete trade framework from entry through to final target.
BOS Continuation Entries : Use BOS signals as confirmation of trend continuation within an established structural direction, timing pullback entries or adding to existing positions when structure is reinforcing rather than reversing.
Hull Alignment Filtering : Treat signals that occur when Hull trend has only recently flipped with greater caution than signals where Hull has been trending in the signal direction for multiple bars, as recent Hull flips carry less momentum confirmation than sustained directional readings.
R-Multiple Position Management : Use the three take profit levels from the position tool as a staged exit framework, scaling out of positions progressively rather than targeting a single fixed level, allowing partial profit capture while maintaining exposure to larger structural moves.
Stop Buffer Calibration : Adjust the SL Buffer percentage to accommodate the instrument's typical spread and volatility at structural levels, ensuring stops are positioned with sufficient room to avoid premature invalidation on normal retest activity.
Multi-Timeframe Structure Hierarchy : Apply higher-timeframe CHoCH events as directional bias anchors, using lower-timeframe BOS signals to time continuation entries within the broader structural context established by the higher-timeframe reversal.
Technical Implementation Details
Core Engine : Hull Moving Average with two-bar lag comparison for responsive directional trend state
Swing Detection : Configurable pivot high and low confirmation with left-right bar symmetry requirement
Structure Logic : Hull-gated swing break detection with independent bull and bear cooloff enforcement
Classification System : Structural trend state tracking for BOS versus CHoCH labeling on each qualifying break
Position Tool : CHoCH-triggered entry, buffered stop loss, and three R-multiple take profit level calculation
Visualization : Dashed structural level lines, gradient-filled risk and reward zones, dotted take profit lines, and BOS or CHoCH labels
Candle Coloring : Structural trend state-driven bar color independent of Hull trend state
Performance Profile : Optimized for real-time execution with configurable position count management removing oldest position tools when the maximum is exceeded
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday structure detection for scalping with shorter Hull length and tighter swing settings for fast structural response
15 - 60 min : Session-level BOS and CHoCH identification with balanced Hull length and swing sensitivity
4H - Daily : Swing-level structural trend mapping with longer Hull periods for sustained momentum validation
Suggested Baseline Configuration:
Hull Length : 50
Swing Length : 5
Signal Cooloff : 10
SL Buffer % : 0.1
Show Position Tool : Enabled
Max Positions Visible : 2
TP1 (R) : 1.0
TP2 (R) : 2.0
TP3 (R) : 3.0
Color Candles : Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's structural characteristics, volatility profile, and preferred signal frequency, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Too many signals firing : Increase Signal Cooloff to enforce greater bar separation between consecutive structural events, or increase Swing Length to demand more structurally significant pivot confirmations.
Signals too infrequent : Decrease Swing Length toward 2 for faster pivot confirmation, or reduce Signal Cooloff to allow signals to fire closer together during active structural periods.
Hull trend too reactive : Increase Hull Length to smooth the momentum filter and reduce sensitivity to short-term price fluctuations that cause rapid Hull direction changes.
Hull trend too slow : Decrease Hull Length toward 20 for a more responsive momentum filter that captures structural shifts earlier relative to price movement.
Stop loss too tight : Increase SL Buffer percentage to add more breathing room beyond the signal bar extreme, reducing the likelihood of premature stop-outs on retest activity at structural levels.
Position tools cluttering the chart : Reduce Max Positions Visible to limit the number of active position frameworks displayed, or decrease Position Extend to shorten how far levels project to the right.
Take profit levels too close or far : Adjust TP1, TP2, and TP3 R multiples to match the instrument's typical range extension following structural breaks, calibrating the exit framework to realistic reward expectations for the target market.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets where Hull direction persists across multiple sessions and structural breaks consistently follow the momentum direction, producing high-quality BOS and CHoCH alignments
Instruments with clean swing structure where pivot highs and lows form at clearly defined levels, reducing ambiguity in structural break identification
Reversal trading approaches where CHoCH detection with position tool output provides a systematic framework for entering structural trend changes with defined risk parameters
Multi-timeframe workflows where higher-timeframe CHoCH signals establish directional bias and lower-timeframe BOS signals provide continuation timing precision
Reduced Effectiveness:
Choppy, range-bound markets where Hull trend direction changes frequently and structural breaks fire in alternating directions without establishing sustained structural sequences
Low-volatility consolidation environments where swing pivots form in tight clusters, producing overlapping structural levels and ambiguous BOS or CHoCH classifications
Highly news-driven instruments where impulsive moves create structural breaks that immediately reverse before the position tool levels are reached
Markets with irregular spread or thin liquidity where pivot confirmation mechanics lag significantly behind the price events that created the structural swing
Instruments where the relationship between Hull trend and structural breaks is inconsistent, requiring additional confluence tools to validate signal quality before deployment
Integration Guidelines
Confluence : Combine with BOSWaves volume tools, order flow analysis, or adaptive band indicators for structural signal validation across multiple analytical dimensions
Hull Trend Respect : Treat CHoCH signals occurring when Hull has only recently reversed direction with reduced confidence relative to signals where Hull has sustained the new direction across multiple bars
Classification Awareness : Distinguish between BOS and CHoCH in strategy application; BOS signals support continuation approaches while CHoCH signals support reversal entries, and mixing the two without adaptation reduces strategic clarity
Position Tool Discipline : Use the position tool output as a complete trade framework rather than selectively taking only entry or stop information, as the R-multiple target structure is calibrated to the specific risk measured from each individual CHoCH event
State Discipline : Maintain directional bias aligned with current structural trend state until a CHoCH in the opposing direction is confirmed. Isolated price excursions against the structural trend that do not breach the relevant swing level do not constitute structural changes.
Disclaimer
Hull Market Structure is a professional-grade market structure and trade planning tool. It uses Hull-filtered break of structure detection with swing pivot classification and integrated position sizing but does not predict future price movements. Results depend on market conditions, instrument structural characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates volume context, order flow analysis, and comprehensive risk management. Indicator

Trend V2 Exact + Soft Filters**Trend V2 Exact + Soft Filters**
Trend V2 Exact + Soft Filters is a precision-based momentum and confirmation indicator designed to identify high-probability market turning points with clarity and structure. Built around a smoothed correlation trend engine, it delivers both early warnings and confirmed signals while maintaining strict control over signal quality.
At its core, the indicator plots two key lines:
* **Purple Line** – a smoothed representation of trend momentum
* **Yellow Line** – a signal line used for confirmation and timing
These lines operate within a structured zone system, allowing the script to detect when price action reaches statistically significant extremes before triggering any signals.
---
### 🔍 How It Works
The logic follows a two-stage process:
**1. Setup (Weak Signals)**
A potential trade is identified when:
* The Yellow line enters a defined extreme zone (overbought or oversold)
* The Purple line reaches a deeper threshold (“touch level”)
This creates a *“ready state”*, displayed as **Weak Buy (WB)** or **Weak Sell (WS)** signals. These are early warnings — not confirmations.
**2. Confirmation (Strong Signals)**
A trade is only confirmed when:
* The Purple line crosses the Yellow line *after* the setup is armed
* Optional filters (if enabled) agree with the direction
This produces **Strong Buy (SB)** or **Strong Sell (SS)** signals — the primary entries.
---
### ⚙️ Smart Signal Control
To improve reliability without over-filtering, the script includes optional **Soft Filters**:
* **Turn Filter** – ensures momentum is actually shifting direction
* **Volume Filter** – checks whether volume supports the move
* **Liquidity Filter** – evaluates participation using volume-based proxies
Each filter can be enabled or disabled depending on your trading style, allowing full control between responsiveness and confirmation strength.
---
🔁 Anti-Repaint & Signal Flow
The indicator uses a strict event-state system:
* Signals are only triggered once per cycle
* Buy and sell signals alternate (no stacking)
* Setups must fully complete before confirmation
This ensures clean, non-redundant signals and avoids noise in ranging conditions.
---
📊 Visual Structure
* Clear upper and lower bands highlight extreme conditions
* Strength and touch levels are plotted for transparency
* Signals are minimal, clean, and easy to read on any timeframe
---
✅ Best Use
Trend V2 is ideal for:
* Intraday and swing trading
* Identifying reversals and continuation entries
* Traders who want **early context (weak signals)** + **confirmed execution (strong signals)**
---
⚠️ Notes
This is a confirmation tool, not a standalone strategy. It performs best when combined with market structure, support/resistance, or higher timeframe bias.
---
Designed for traders who value precision, structure, and control over raw signal frequency.
Indicator

Market Regime Classifier [EXCAVO]Four-State Probabilistic Regime Detection Using a Hidden Markov Model
The Market Regime Classifier applies a four-state Hidden Markov Model (HMM)
to classify the current market environment as Bullish, Bearish, Volatile, or Sideways.
Rather than using fixed thresholds on ADX or moving average slopes, the model maintains
and continuously updates a probability distribution across all four states on every bar,
producing smooth, low-noise regime identification.
This is not a threshold-based classifier. State probabilities update through Bayesian
forward inference, so regime transitions emerge from the data rather than arbitrary
cutoff values.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW TO USE
Step 1 → Add the indicator to a new pane. The confidence histogram
appears immediately, colored by the current regime.
Step 2 → Read the regime from the histogram color and the dashboard
panel. Blue = Bullish, Red = Bearish, Orange = Volatile,
Gray = Sideways.
Step 3 → Monitor the confidence level. Above 80%, the model has high
conviction. Below 60%, the market is transitioning and both
adjacent states have similar probabilities.
Step 4 → Set up alerts for regime transitions. Each state change fires
on a closed bar only, eliminating repainting.
Step 5 → Check the dashboard for individual state probabilities. When
two states have close values, the market is ambiguous - this is
visible in the dashboard before a formal regime change occurs.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW IT CALCULATES
◆ Data Conditioning
Each bar computes the log return: ln(close / close ). The mean and standard
deviation of log returns are calculated over the lookback period. Both are then
normalized: norm_ret = (log_ret - mean) / stdev, and norm_vol = stdev /
sma(stdev, lookback). This standardization makes the model asset-agnostic,
producing consistent behavior across equities, crypto, and forex without
requiring parameter adjustments per instrument.
◆ Gaussian Emission Likelihoods
Each of the four states has a Gaussian emission function that evaluates how
well the current normalized volatility and return match that state's expected
profile. The emission formula is exp(-(x - center)^2 / width), where x is the
normalized observation, center is the expected value for that state, and width
controls the response range:
Bullish: norm_vol = 1.1, norm_ret = +0.8 (moderate volatility, positive drift)
Bearish: norm_vol = 1.1, norm_ret = -0.8 (moderate volatility, negative drift)
Sideways: norm_vol = 0.7, norm_ret = 0.0 (low volatility, no directional bias)
Volatile: norm_vol = 1.6 x sensitivity (elevated volatility, direction-agnostic)
A state's emission is high when the current bar's profile closely matches its center
and decreases exponentially as the observation diverges.
◆ Bayesian Forward Update
The model maintains four state probabilities (p_bull, p_bear, p_side, p_vola)
initialized at 0.25 each. On every bar, unnormalized posteriors are computed:
un_state = emission(state) x (p_state x 0.9 + sum_others x 0.033). The 0.9
self-transition coefficient gives the model inertia - it stays in the current
state unless emissions consistently support a different one. The 0.033
cross-transition coefficient (approximately (1 - 0.9) / 3) keeps all states
reachable. Posteriors are then normalized to sum to 1.0. The smoothing factor
controls how aggressively each bar's emission result shifts the running
probability, acting as an exponential moving average over the posterior series.
◆ State Classification and Confidence
The active regime is the state with the highest posterior probability (argmax).
Confidence equals this maximum probability expressed as a percentage. A regime
change is detected when the dominant state changes on a confirmed (closed) bar,
which fires all alerts. The dashboard shows all four probabilities simultaneously,
making it possible to observe when the market is approaching a state boundary
before the formal regime label changes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ WHAT MAKES IT DIFFERENT
◆ Probabilistic State Engine
Most regime classifiers use fixed thresholds: if ADX > 25 then trending, otherwise
ranging. This produces abrupt, oscillating switches at the boundary and gives no
information about conviction. The HMM produces a smooth probability distribution
across all four states simultaneously, with conviction visible at every bar as
an explicit confidence percentage.
◆ Four-State Classification
Two-state models (trending vs. ranging) conflate Volatile markets with trending ones
and miss the distinction between low-activity consolidation and trend exhaustion.
Four states allow separate identification of sustained directional moves
(Bullish/Bearish), low-activity accumulation ranges (Sideways), and high-volatility
uncertainty (Volatile) - conditions that require different position sizing and
strategy selection.
◆ Adaptive Volatility Threshold
The Volatile state's emission center scales with the Volatility Sensitivity input.
This makes the model configurable across asset classes: crypto spends more time at
elevated volatility levels and may benefit from a higher sensitivity value than
equities or forex.
◆ Transition Memory (Inertia)
The self-transition coefficient (0.9) gives the model inertia - a single anomalous
bar cannot flip the regime. The classifier requires consistent evidence across
multiple bars to overcome the self-transition bias. This reduces false transitions
during brief volatility spikes or one-bar outliers.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ DASHBOARD
Real-time panel showing the current model state:
Regime - active state (BULLISH / BEARISH / VOLATILE / SIDEWAYS), colored by type
Confidence - highest state probability as a percentage; highlighted orange above 80%
Bullish - current Bullish state probability
Bearish - current Bearish state probability
Volatile - current Volatile state probability
Sideways - current Sideways state probability
Norm Volatility - normalized volatility ratio; highlighted orange above 1.5 x sensitivity
Smoothing - active smoothing factor (informational)
Legend table (bottom left) explains histogram colors. Both panels toggle in Dashboard settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ SETTINGS
HMM Engine
Statistical Lookback - 50 bars (period for log-return mean and stdev; higher = more stable but slower to adapt)
Decision Smoothing - 0.40 (exponential smoothing factor; lower = more stable, higher = more reactive)
Volatility Sensitivity - 1.2 (scales the Volatile state emission center; increase for crypto, decrease for equities)
Visualization
Bullish Color - default blue (histogram and ribbon color during Bullish regime)
Bearish Color - default red (histogram and ribbon color during Bearish regime)
Volatile Color - default orange (histogram and ribbon color during Volatile regime)
Show Regime Ribbon - OFF (colored markers at pane bottom showing regime history)
Background Highlight - ON (subtle tint matching the active regime)
Alerts
JSON Alerts - OFF (enable for bot integration via 3Commas, Wunderbit, etc.)
Dashboard
Dashboard Position - Top Right
Show Dashboard - ON
Show Legend - ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ ALERTS
Bullish Regime - dominant state changed to Bullish on bar close
Bearish Regime - dominant state changed to Bearish on bar close
Volatile Regime - dominant state changed to Volatile on bar close
Sideways Regime - dominant state changed to Sideways on bar close
Regime Change - any state transition detected on bar close
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best regards,
EXCAVO
Disclaimer
Trading involves significant risk. This indicator is a technical analysis tool
and does not constitute financial advice, investment recommendations, or a
guarantee of future results. Past indicator behavior does not guarantee future
performance. Always use proper risk management and your own judgment.
Indicator

RSI MTF Dashboard + RSI/ATR-Based Volatility ZonesRSI MTF (multi-timeframe) Dashboard + RSI/ATR-Based Volatility Zones is a multi-timeframe RSI alignment dashboard built to connect RSI structure, timeframe agreement, and chart-side price context into one organized workflow. Instead of treating RSI as a single value on one timeframe, this script reads RSI across a full stack of timeframes and organizes that information into a compact table, a chart-side Stack Trend, an ATR-based envelope, a bottom-pinned bias strip, optional RSI-colored candles, and localized Bull/Bear pressure markers. The goal is to make it easier to see whether the broader RSI timeframe stack is supporting price, resisting price, mixed, or transitioning.
At the center of the script is the MTF RSI table. The table can display timeframe rows from 1 minute through monthly, with each row showing:
➡️ Current RSI
➡️ Current RSI vs Previous RSI
➡️ RSI SMA 20
➡️ RSI SMA 50
➡️ SMA slope arrows
➡️ Live bar timer information
➡️Lower-timeframe and higher-timeframe RSI averages
RSI is often more useful when read as a set of relationships instead of one isolated number. A single RSI value can show strength or weakness, but RSI in relation to its prior value, RSI SMA 20, RSI SMA 50, and higher timeframe context gives a cleaner view of whether momentum is building, fading, rotating, or staying aligned.
The chart-side MTF RSI Stack Trend is where the table becomes more than just a dashboard.
Each enabled timeframe row contributes to a full-stack RSI bias score using four relationships:
➡️ Current RSI regime
➡️ Current RSI vs Previous RSI
➡️ Current RSI vs RSI SMA 20
➡️ Current RSI vs RSI SMA 50
Those scores are combined into one MTF Stack Bias reading. When the stack leans bullish, the Stack Trend can project below price like a support-style trail. When the stack leans bearish, it can project above price like a resistance-style trail. When the stack is mixed or transitioning, the trail can fall back into a neutral state. That gives the chart one clean read of the broader RSI stack instead of forcing the user to mentally combine every row in the table.
The MTF Stack ATR Envelope expands that idea into a broader volatility zone. The envelope is built around the Stack Trend system and can reference the chart Stack Trend, a higher-timeframe Stack Trend, or the midpoint between both. This creates a volatility-adjusted zone around the broader RSI stack context.
The practical use is to help answer questions like:
➡️ Is price stretched away from the active RSI stack trail?
➡️ Is price trading inside the broader stack envelope?
➡️ Is the chart trail aligned with the higher-timeframe trail?
➡️ Is the stack acting more like support, resistance, or transition?
The MTF Stack Bias Trend Strip gives another view of the same engine. Instead of projecting the stack onto price, the strip shows the raw MTF Stack Bias as a compact gradient along the bottom of the chart.
This makes it easier to see when the broader stack is:
➡️ strengthening bullish
➡️ strengthening bearish
➡️ fading back toward neutral
➡️ chopping through mixed conditions
➡️ transitioning from one regime to another
The color behavior is intentionally visual. Stronger bullish readings can push toward yellow/orange, stronger bearish readings can push toward purple/extreme purple, and mixed readings stay closer to neutral.
The optional RSI Trend Candle Overlay brings the RSI color engine directly onto the main chart. Price candles still keep normal OHLC structure, but their body, wick, and border colors can reflect the current chart-timeframe RSI state. This makes it easier to see RSI strength, weakness, stretch, or neutrality without constantly checking a separate pane.
The Bull/Bear markers add a more localized pressure layer. These markers use a Price Action-style adaptive overbought/oversold engine built from a short Wilder-style high/low channel and adaptive trigger levels. They can be shown as raw pressure markers or filtered so bullish markers only appear during bullish stack regimes and bearish markers only appear during bearish stack regimes.
A practical way to read the script:
➡️ If the table rows are broadly bullish, RSI is above its moving-average references, and the Stack Trend is holding below price, the RSI timeframe stack is generally supporting the move.
➡️ If the table rows are broadly bearish, RSI is below its moving-average references, and the Stack Trend is pressing above price, the RSI timeframe stack is generally acting more like resistance.
➡️ If the table rows disagree, the trend strip fades toward neutral, or price is moving back through the envelope, the market may be transitioning or losing clean RSI alignment.
➡️ If the Bull/Bear markers agree with the active Stack Trend regime, they may help highlight localized pressure in the same direction as the broader RSI stack.
➡️ If the markers, candles, table, trail, and trend strip disagree, that disagreement can be useful information by itself because it often points to chop, cooling momentum, or a less directional environment.
The value of RSI MTF Table + ATR Envelope Trend is organization. It takes RSI behavior across multiple timeframes and turns it into a connected chart-side framework: table detail, stack bias, trail behavior, volatility zones, candle context, trend strip pressure, and localized markers. While this script is not meant to be a standalone buy/sell signal machine, it certainly has the necessary components and features to be just that once you learn its behavior over multiple timeframes. Used alongside oscillator, pressure, pivot-structure, and divergence tools, this script can also serve as a higher-level RSI alignment dashboard. The table and trend strip help answer whether the broader RSI stack is supporting, resisting, mixed, or transitioning, while companion tools can provide more detailed oscillator-side structure, pressure, pivots, and divergence context.
Attribution: this script uses SimpleCryptoLife library helpers for timeframe formatting and higher-timeframe stabilization. Some color-engine concepts, compact transparency-helper style, tiered RSI-style trend-color mapping, and PA-style overbought/oversold triangle concepts were inspired by ideas from SimpleCryptoLife’s open-source Price Action Trend work.
💥Chart examples💥
➖Bullish structure expectation➖
For this setup to continue developing, I want to see price reclaim the purple chart Stack Trend first, then begin working back toward the blue HTF Stack Trend.
The key idea is progression:
Price is still trading below both Stack Trend references, so the broader RSI stack is not fully supportive yet. A stronger bullish shift would start with price reclaiming the faster chart-side Stack Trend, then holding above it while the HTF Stack Trend begins to flatten or move underneath price.
What I’m watching:
• Price reclaiming the purple Stack Trend
• Purple Stack Trend turning back into support
• Yellow Stack Trend / envelope behavior improving underneath price
• Blue HTF Stack Trend flattening or moving below price
• Price holding above the prior local structure zone
Until that happens, rallies into the purple/blue Stack Trend area are still tests of resistance, not confirmed bullish structure.
➖Follow up to the above chart (Bullish structure follow-through)➖
This is the progression we wanted to see from the prior setup. Earlier, price was still below both the chart Stack Trend and the HTF Stack Trend, so the bullish structure was only an expectation — not confirmation yet. Now price has started to work back into the Stack Trend zone. The short-term RSI rows are strengthening, the bottom Stack Bias strip is shifting back into warmer pressure, and price is pushing into the same area that previously needed to be reclaimed.
The key improvement:
Price is no longer simply fading below the Stack Trend structure. It is actively testing the trail/envelope area from underneath and beginning to show the early signs of a bullish reclaim attempt.
What still matters next:
Price needs to hold above the faster chart-side Stack Trend and continue working toward the blue HTF Stack Trend. If that area flips from resistance into support, the bullish structure becomes much cleaner.
Until then, this is a bullish attempt in progress — stronger than the prior chart, but still needing confirmation above the broader HTF Stack Trend zone.
➖Repeated Stack Trend failure pattern➖
Price repeatedly loses the faster yellow/chart Stack Trend, then attempts to recover back into the purple/blue Stack Trend zone.
When price cannot reclaim that upper Stack Trend structure, the purple trail begins acting like resistance and price fades back underneath it.
The key read is progression: yellow weakness first, then failed reclaim into purple/blue resistance, followed by bearish continuation if price cannot push back above the broader Stack Trend stack.
➖Bullish Stack Trend support structure➖
This is the stronger version of the bullish reclaim pattern. Price first works above the faster chart Stack Trend, then the trail begins holding underneath price instead of acting as resistance. As the move expands, the broader blue HTF Stack Trend also lifts below price, giving the rally higher-timeframe support.
The key read:
Yellow/chart Stack Trend supports first, then the HTF Stack Trend confirms underneath. When price holds above both, the RSI stack structure shifts from recovery attempt into stronger bullish continuation.
➖Bearish Stack Trend rejection➖
Price attempted to recover back into the chart Stack Trend, but the broader blue HTF Stack Trend stayed overhead the entire time.
That kept the move capped. Once price failed to reclaim and hold above the purple trail, the Stack Trend structure shifted back into resistance and price faded lower.
The key read:
A bounce into the chart trail is not enough by itself. If the HTF Stack Trend remains above price, the broader RSI stack can still act like overhead resistance.
➖MTF Stack Bias Trend Strip➖
Yellow/orange shows stronger bullish stack pressure, purple shows stronger bearish stack pressure, and muted/gray transition areas show the stack moving through mixed conditions.
The key read:
The strip gives a quick visual summary of the broader RSI environment underneath price — making it easier to see when the market is trading with bullish pressure, bearish pressure, or shifting between regimes.
Indicator

Ask Dr. Alex AIAsk Dr. Alex AI — Interactive Chart Intelligence for PulseWire
Ask Dr. Alex AI is an interactive chart intelligence indicator built to help traders understand what the chart is saying before making a decision. Instead of only printing a simple buy or sell label, Ask Dr. Alex AI lets the user select a question from a built-in menu and then reveals the specific chart evidence behind the answer.
This indicator is designed as a guided market assistant for traders who want clearer context around support, resistance, patterns, momentum, trend pressure, forecast bias, and trade planning.
What Makes Ask Dr. Alex AI Different
Most indicators only show signals.
Ask Dr. Alex AI answers questions.
Users can select from guided questions such as:
Is this safe to trade right now?
Am I buying from support, selling from resistance, or chasing price?
What pattern is active?
What does the next candle / 10C forecast suggest?
What is the entry, stop loss, and take-profit plan?
ALL — Show Everything
Deep Scan Mode
When a question is selected, the indicator highlights the relevant chart areas and summarizes what it sees using the Dr. Alex AI answer panel.
Core Features
Interactive Question Menu
Choose a question and the indicator reveals only the relevant chart evidence.
Dr. Alex AI Answer Panel
Provides a plain-English summary of the current market condition.
Deep Scan Mode
Unlocks deeper diagnostic checks such as:
Trend Strength
MTF Agreement
Support Bounce Check
Resistance Rejection
Pattern Quality
Forecast Conflict
Ribbon Conflict
Entry Quality
Risk / Reward
Invalidation Point
Fakeout Risk
Wilson Tangent
Full Diagnostic
Support / Resistance Intelligence
Displays major support and resistance zones, higher-timeframe levels, and whether price is reacting from a meaningful area.
Pattern Awareness
Detects and explains major active patterns such as doji at support, hammer at support, double bottom, engulfing candles, marubozu candles, breakout retests, traps, and continuation patterns.
Respect Support Bounce Mode
When price touches major support and a bullish rejection pattern appears, the system can shift from hard bearish continuation into Support Bounce Watch / Bull Watch instead of blindly forecasting into support.
Next-Candle Bias Ribbon
A five-state visual ribbon helps summarize the projected next-candle condition:
Green = Bullish
Blue = Bull Watch
Gray = Neutral
Orange = Bear Watch
Red = Bearish
10-Candle Forecast View
Shows a forward projection path based on confidence, pattern context, support/resistance, trend pressure, and active sentiment.
Trade Plan Panel
When a setup is active, the indicator can display:
Entry range
Stop loss
TP1
TP2
Risk/reward model
Setup status
Confidence and Rank Engine
Uses a multi-factor scoring system to compare bullish and bearish pressure across trend, momentum, structure, volatility, MTF alignment, candle behavior, and ribbon state.
Machine-Learning-Inspired Scoring Logic
Ask Dr. Alex AI uses adaptive, weighted, machine-learning-inspired decision logic to evaluate chart conditions and adjust the way it interprets support bounces, forecast conflicts, momentum shifts, and pattern quality. It is designed to behave like an intelligent diagnostic layer, not just a static signal generator.
How to Use
Add the indicator to your chart.
Choose a question from the Ask Dr. Alex AI menu.
Review the highlighted chart evidence.
Read the Dr. Alex AI answer panel.
Use Deep Scan Mode when you want a more detailed diagnostic breakdown.
Use ALL — Show Everything when you want the full visual system displayed at once.
Best Use Case
Ask Dr. Alex AI is best used as a decision-support and educational chart assistant. It is built to help traders slow down, identify context, avoid chasing price, respect support/resistance, and understand why a setup is active, weak, conflicted, or invalidated.
It is especially useful for traders who want the chart to answer questions such as:
“Is this actually a trade, or am I forcing it?”
“Is price bouncing from support or breaking down?”
“Why is the forecast bullish if the trend is bearish?”
“Why is the signal waiting?”
“What must happen before this setup becomes valid?”
Important Disclaimer
Ask Dr. Alex AI is for educational and informational purposes only. It does not guarantee profits, predict the future with certainty, or replace personal judgment, risk management, or professional financial advice. Trading involves risk, and users are responsible for their own trading decisions.
Indicator

HTF/LTF Alignment ("Trend Is your Friend, Until the end!")HTF/LTF Alignment Dashboard
A clean multi-timeframe bias dashboard built around the 9 and 13 EMA. Tracks 9/13 EMA direction across three user-defined timeframes simultaneously and shows whether they're aligned at a glance — without making you flip charts.
What it does
Reads the 9 EMA (blue) and 13 EMA (grey) on three independently selectable timeframes (defaults: 1H / 15m / 5m) and prints the result as a compact dashboard on your chart. Each timeframe is color-coded — green when 9 EMA is above 13 EMA (bullish), red when below (bearish). A single alignment indicator at the top of the table reads "HTF/LTF Aligned" with a light blue dot when all three timeframes agree, grey when they don't.
The dashboard works on any chart timeframe. The three TFs in the table are pulled independently of what you're viewing, so you can sit on a 1m execution chart and still read 1H bias.
How to use it
1. Trend continuation — the cleanest setup
When all three TFs are aligned (blue dot lit), you're in a confirmed trending regime where higher and lower timeframes agree. This is the highest-probability environment to take continuation trades — pullbacks to value, breakouts, retests of broken structure. Trend is your friend, until the end. Trade with the alignment, not against it.
2. Possible reversal — read the flip cascade
The order in which timeframes change is the early-warning system. Reversals almost always start small and work outward:
LTF flips first → first crack, often just noise on its own
MTF flips → trend in your execution window has rolled
HTF flips → regime change confirmed
If you're holding a position in a fully-aligned market and the LTF flips against you, that's your cue to tighten stops, scale out, or stop adding. If two TFs have flipped and only the HTF holds, you're in the danger zone — the trend is dying. A full new-direction alignment (all three flip and re-agree) is the cleanest signal that the reversal is real, not a wick.
3. Top-down bias filter
Set TF1 to your bias timeframe, TF2 to your structure timeframe, TF3 to your execution timeframe. Only take longs when all three show BULL. Only take shorts when all three show BEAR. When the alignment dot is grey, the market is in transition — stand down or wait for it to settle.
4. Confluence trigger
Watch for the dot flipping from grey to light blue. That moment marks all three TFs agreeing for the first time and frequently coincides with momentum kicks and continuation legs. Pair it with your own entry trigger — structure break, pullback to a key level, breakout retest, or whatever you already use.
5. Don't fight the tide check
If your HTF row is BEAR and you're tempted to long an LTF setup, the dashboard sitting grey is the visual reminder you're trading against the higher tide. Reduce size, skip the trade, or wait for alignment to come to you.
Settings
Three timeframes, fully editable (HTF / MTF / LTF)
Table position: any of four corners or middle sides
Table size: Tiny / Small / Normal / Large
Every color editable — cell backgrounds, text colors, frame, borders, alignment indicator
Optional plot of the 9/13 EMA on the current chart (off by default; 9 = blue, 13 = grey)
"Use confirmed values only" toggle for non-repainting bias (locks each TF until that bar closes)
Three alerts: bullish alignment fired, bearish alignment fired, alignment lost
Notes
Default mode shows live developing bias — values can update intra-bar until each TF's bar closes. Flip on "Use confirmed values only" if you prefer locked, non-repainting values. For best data fidelity, keep your chart timeframe equal to or lower than the lowest TF in your dashboard. Works on any market — futures, FX, equities, crypto.
This is a bias and confluence tool. It won't tell you exactly where to enter or exit on its own — it shows you when the trend stack agrees, when it doesn't, and when it's starting to come apart Indicator

Moving Average Retest Planner [AGPro Series]Moving Average Retest Planner
🧠 Core Idea
Is a moving average retest clean enough to act as trend support or resistance, or is the reaction too weak to plan around?
📌 Overview / What it does
Moving Average Retest Planner is a chart-first planning tool built around one practical workflow: price moves away from an active moving average, returns into a controlled retest pocket, and the script evaluates whether that reaction has enough quality to deserve attention.
The script produces a moving average reference, a retest distance band, concept-native retest pockets, hold / watch / fail labels, invalidation rails, target rails, continuation markers, and a compact AGPro decision panel. It converts moving average slope, retest depth, wick response, close quality, relative volume, and target room into a normalized 0-100 Reaction Score.
It does not predict future price movement, automate trading, or claim that a moving average touch is automatically meaningful. Its role is to organize the current retest context into a clearer decision-support workflow.
🎯 Purpose & Design Philosophy
This script was built because many moving average tools stop at the most basic question: is price above or below the average?
That is rarely enough for real chart planning. A retest can be too early, too deep, too weak, or too close to nearby obstruction. The purpose of this script is to help traders evaluate whether the retest itself is clean, controlled, and supported by the surrounding structure.
The design supports traders who use moving averages as contextual references but want a more structured way to assess reaction quality, risk edge, and next action.
⚡ Why This Script Is Different
Most moving average tools focus on crossovers, ribbon direction, fixed EMA reclaim events, or simple above / below filters.
This script does NOT clone a 200 EMA reclaim map, a moving average ribbon stress model, a Hull MA zone tool, or a KAMA efficiency framework.
Instead, it focuses on one narrower decision layer: after price has moved away from an active configurable moving average, is the return into that average being defended or rejected with enough quality to become a valid planning area?
⚙️ Methodology
1. Context Detection
The script calculates the active moving average and checks whether the average has a meaningful slope. It separates bullish, bearish, and neutral contexts.
2. Reference Mapping
An ATR-normalized retest band is built around the active moving average. This band is used as the planning pocket rather than as a generic support / resistance zone.
3. Reaction Evaluation
When price returns into the band after moving away from it, the script evaluates slope quality, retest depth, wick response, close location, relative volume, and target room.
4. Visual Output
Qualified reactions can create retest pockets, hold / watch / fail labels, invalidation rails, target rails, continuation markers, alerts, and panel updates.
🗺️ How to Read the Chart
Zones = the active moving average retest pocket where price is being evaluated.
Labels = compact event markers for watch, hold, failure, and follow-through states.
Colors = bullish states use teal, bearish states use pink, neutral / waiting states use amber, and projected target context uses indigo.
Panel = summarizes MA Retest, Trend Side, Reaction Score, Risk Edge, and Action.
🚦 Signals & States
• WATCH → price is reacting near the moving average, but quality is below the READY threshold.
• READY → the retest score meets the required quality threshold.
• WAIT RETEST → trend context exists, but no clean retest is active yet.
• INVALIDATED → the active retest lost its invalidation edge.
• FOLLOW-THROUGH → price moved far enough from the trigger close to mark continuation after the retest.
• NO PLAN → the current chart does not contain a usable MA retest context.
🔔 Alerts Logic
Alerts can trigger when a READY retest appears, when an active retest invalidates, when follow-through is detected, or when the planner state changes.
These alerts are attention markers. They are not trade instructions, entry signals, or automated recommendations.
🧩 Confluence Logic
The strongest context appears when MA slope, controlled retest depth, clean wick response, strong close quality, relative volume support, and target room align at the same time.
When those components improve together, the Reaction Score rises. When the retest becomes too deep, too weak, or too close to obstruction, the score remains lower.
📊 When to Use
• Trending markets where price repeatedly returns to an active moving average
• Pullback continuation contexts
• Trend support or trend resistance evaluation
• Markets with enough liquidity for moving average reactions to be readable
• Multi-timeframe review where one average acts as a workflow reference
⚠️ When NOT to Use
• Very low-liquidity symbols
• Flat, noisy, low-range conditions
• Extreme news-driven volatility
• Charts where the selected moving average has no meaningful slope
• Situations where price is chopping through the average without clean reaction behavior
🎛️ Key Inputs
• MA Type and MA Length → define the active retest reference.
• Sensitivity → controls retest pocket width and required prior distance.
• Confirmation Mode → controls how strict the close-side hold must be.
• Minimum READY Score → sets the threshold for a high-quality retest state.
• Target R → defines the projected target rail from the invalidation edge.
• Label Cooldown and Max Visible Event Sets → manage label density and chart cleanliness.
• Panel Location, Panel Theme, Panel Font Size, and Label Font Size → control publication-ready presentation.
🖥️ Interface & Visual Design
The interface is built around a clean chart-first hierarchy.
The moving average and distance band show the active reference. Retest pockets highlight only qualified reaction areas. Labels sit above or below candles using ATR offsets so they remain readable. The panel gives the current planning answer without turning the script into a crowded dashboard.
🧪 Practical Usage Workflow
1. Read the panel to identify the current Action.
2. Check whether the moving average has a clear bullish or bearish trend side.
3. Look for a retest pocket and review the Reaction Score.
4. Compare the invalidation rail and target rail to judge the risk edge.
5. Treat alerts as prompts for review, not standalone decisions.
🔍 Interpretation Guidelines
The script should be read as a structured context model.
A high score means the detected retest has stronger alignment across the script's rules. A low score means the reaction is weaker, late, noisy, or poorly positioned. A failed retest means the active planning edge was lost according to the selected inputs.
The output is most useful when combined with broader structure, timeframe context, liquidity, and the trader's own risk process.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto trading system
• Not a guaranteed signal tool
• Not a replacement for risk management
• Not a generic moving average crossover indicator
⚠️ Limitations & Transparency
Moving averages are lagging references. The selected length, asset, timeframe, volatility profile, and liquidity conditions can all affect how clean or noisy the retest behavior appears.
In strong trends, price may continue without giving a clean retest. In choppy markets, price may touch the average many times without creating meaningful structure. The score should be interpreted as a rule-based quality read, not certainty.
🧠 Market Context Notes
Moving average retests are most useful when the average represents an active path of value or trend behavior. The cleaner the slope and the more controlled the return into the average, the more useful the retest context usually becomes.
Liquidity, volatility, and nearby structural levels still matter. A strong-looking retest with poor target room may be less useful than a moderate retest with cleaner space.
🧾 Use Case Examples
When price trends above the selected average, pulls back into the retest band, rejects lower prices with a clear wick, closes back above the average, and has enough target room, the panel may move into READY.
When price returns to the average but closes weakly through the band or later crosses the invalidation rail, the retest can move into INVALIDATED.
🧱 System Philosophy
Moving Average Retest Planner follows the AGPro decision-engine approach: show the setup context, score its quality, define the risk edge, map the target area, and state the next action.
The goal is not to add another signal to the chart. The goal is to help traders read whether the current retest is organized enough to deserve attention.
🔐 Non-Promise Statement
No certainty.
No guaranteed continuation.
No guaranteed reversal.
No automated decision.
📉 Risk Disclosure
Trading involves risk. Market conditions can change quickly, and any indicator can produce false or incomplete readings.
This script is for educational and analytical purposes only. It does not provide financial advice, investment advice, or guaranteed trading outcomes.
Users are responsible for their own decisions, testing, position sizing, and risk management.
📚 Educational Note
Use this tool to study how price behaves when it returns to an active moving average. The most important output is not a label by itself, but the relationship between retest quality, invalidation, target room, and broader market context.
Indicator

Trend Re-Entry Planner [AGPro Series]Trend Re-Entry Planner
🧠 Core Idea
Is an active trend pullback creating a clean re-entry planning context, or is the reset becoming too risky?
📌 Overview / What it does
Trend Re-Entry Planner is a chart-first trend continuation planning tool designed to evaluate pullbacks inside an active trend structure. The default profile is tuned for 1H charts, where re-entry pockets, trigger candles, invalidation edges, and target-room context usually remain more readable.
The script builds a re-entry pocket from the current impulse range, scores the quality of the pullback, maps a trend defense line, shows an invalidation edge, and estimates target-room context. The goal is to help users judge whether a pullback is becoming organized enough for review or whether the trend context should be rebuilt.
It does not predict price, automate entries, or turn every pullback into a signal. It is a rule-based planning framework for evaluating trend re-entry structure.
🎯 Purpose & Design Philosophy
This script was built for traders who already track trend continuation but want a cleaner way to decide whether a pullback is worth attention.
Many trend tools show direction. Many pullback tools mark a reaction. This script focuses on the planning layer between those two ideas: trend side, pullback depth, reset quality, trigger behavior, target room, risk edge, and next action.
The design supports a disciplined workflow: evaluate context first, then decide whether the setup is ready, confirmed, invalidated, or still waiting.
⚡ Why This Script Is Different
Most tools focus on trend direction, moving average crosses, or broad pullback labels.
This script does NOT clone SuperTrend pullback grading, generic trend continuation signals, or low-volume pullback zones.
Instead, it uses an EMA trend stack and impulse-based re-entry pocket to build a planning view around the current pullback. The output is not just a marker. It is a decision panel with a 0-100 re-entry score, pullback depth, risk edge, target-room context, and next-action state.
⚙️ Methodology
1. Context Detection
The script identifies active bullish or bearish trend structure using an EMA stack and directional slope.
2. Reference Mapping
It maps the current impulse range and builds a concept-native re-entry pocket from that range.
3. Reaction Evaluation
The engine scores trend slope, pullback depth, reset quality near the mid EMA, trigger candle behavior, and target-room availability.
4. Visual Output
The script displays the re-entry pocket, invalidation edge, target-room guide, event labels, sparse context labels, and a premium AG Pro planning panel.
🗺️ How to Read the Chart
Zones = the re-entry pocket and target-room area used for planning context.
Labels = READY, CONFIRMED, INVALIDATED, FOLLOW-THROUGH, and sparse context states.
Colors = teal for bullish continuation context, pink for bearish or invalidation context, yellow for watch/review states, and indigo for target-room or follow-through emphasis.
Panel = the compact decision dashboard showing trend side, re-entry score, pullback depth, risk edge, and action.
🚦 Signals & States
• WATCH → the pullback is developing but still needs confirmation or cleaner structure.
• READY → the re-entry context has enough quality for closer review.
• CONFIRMED → a qualifying trigger candle appears after the pullback context improves.
• FOLLOW-THROUGH → the confirmed context produces a stronger continuation marker.
• INVALIDATED → price crosses the active invalidation edge and the plan should be rebuilt.
🔔 Alerts Logic
Alerts trigger when the script detects READY, CONFIRMED, INVALIDATED, or FOLLOW-THROUGH states.
Each alert is an attention marker tied to the rule-based state engine. Alerts are not trade instructions and do not guarantee that continuation will occur.
🧩 Confluence Logic
The context becomes stronger when trend slope, pullback depth, mid-EMA reset quality, trigger candle behavior, and target-room availability align.
The script intentionally requires multiple conditions instead of labeling every trend pullback as meaningful.
📊 When to Use
• 1H charts with active directional structure
• Directional markets with clear trend structure
• Pullbacks after a visible impulse move
• Continuation review workflows
• Trend-following plans where risk edge and target room matter
⚠️ When NOT to Use
• Low-liquidity symbols with unreliable price movement
• Extremely choppy markets with frequent trend-stack flips
• News-driven volatility where pullback structure changes too quickly
• Markets where the active impulse range is stale or unclear
🎛️ Key Inputs
• Sensitivity → adjusts how selective the re-entry score model is.
• Planning Profile → keeps the default behavior tuned for hourly re-entry planning or allows manual/higher-timeframe adjustment.
• Impulse Lookback → controls the range used to build the re-entry pocket.
• Re-Entry Depth settings → define the shallow, ideal, and deep areas of the pocket.
• Thresholds → control WATCH, READY, and CONFIRMED state requirements.
• Visual settings → control zones, EMA stack, labels, panel theme, panel location, and font sizes.
🖥️ Interface & Visual Design
The interface is built around a clean AG Pro panel and chart-first planning visuals.
The re-entry pocket and target-room guide are intentionally restrained so price remains readable. Labels are limited and spaced to keep the chart informative without becoming crowded.
The first panel row uses the standard AGPro merged blue header format.
🧪 Practical Usage Workflow
1. Read the panel to identify trend side and current action.
2. Check whether price is interacting with the re-entry pocket.
3. Evaluate the score, pullback depth, and risk edge.
4. Wait for READY or CONFIRMED state before treating the context as review-worthy.
5. Rebuild the plan if the invalidation edge is crossed.
🔍 Interpretation Guidelines
Think in terms of planning quality, not certainty.
A higher score means the current pullback has more constructive re-entry characteristics according to the script's rule set. A lower score means the pullback is less organized, has poor target room, lacks a clear trigger, or has moved too close to invalidation.
Use the script as a structure-reading tool within broader market context.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto-trading system
• Not guaranteed signals
• Not a SuperTrend pullback clone
• Not a generic support/resistance zone map
⚠️ Limitations & Transparency
The script is rule-based and depends on visible chart data.
Timeframe differences, volatility shifts, low liquidity, and sudden news events can change how re-entry structure appears.
The score reflects the internal model only. It does not know future order flow, future liquidity, or future market intent.
🧠 Market Context Notes
Trend re-entry quality is usually clearer when a market has directional structure, a readable impulse, and enough room before nearby obstacles.
When a trend is mature, overly extended, or choppy, the same pullback behavior may carry less useful information.
🧾 Use Case Examples
When price pulls into the re-entry pocket during a bullish EMA stack and then prints a constructive trigger candle, the script may shift from WATCH to READY or CONFIRMED.
When price crosses the invalidation edge, the script marks the context as INVALIDATED so the user can rebuild the plan instead of forcing the old structure.
🧱 System Philosophy
AGPro planning tools are designed to turn chart structure into a clearer decision workflow.
This script follows that philosophy by focusing on context, readiness, risk edge, and next action rather than simple signal output.
🔐 Non-Promise Statement
No script can guarantee continuation, reversal, profit, or accuracy.
This tool provides structured context only. Users should combine it with their own analysis, timeframe review, and risk management process.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions, position sizing, trade management, and risk control.
This script does not provide financial advice and does not guarantee trading outcomes.
📚 Educational Note
Trend Re-Entry Planner is intended to help users study how pullbacks behave inside active trend structure and how planning context can be organized more clearly.
Indicator

Trend Pullback Risk Planner [AGPro Series]Trend Pullback Risk Planner
🧠 Core Idea
Is the current pullback normal trend digestion, or is it becoming a risk shift that deserves review?
📌 Overview / What it does
Trend Pullback Risk Planner is a chart-first trend risk planner built to evaluate active pullbacks inside an established trend.
The script maps a Pullback Risk Pocket, trend defense line, invalidation reference, target-room guide, compact state labels, alert conditions, and a clean AGPro panel. It converts trend slope, pullback depth, volume dry-up, defense response, and target obstruction into a 0-100 Continuation Score.
It does not predict price movement, automate execution, or print buy/sell commands. Its purpose is to help traders judge whether a pullback is still controlled enough to review, or whether the trend context is starting to lose quality.
🎯 Purpose & Design Philosophy
This script was built for traders who already see a trend but need a cleaner way to evaluate pullback risk.
Many pullback tools focus on marking every retracement as a possible continuation setup. This planner focuses on the decision question behind the setup: is the pullback still being defended, is it getting too deep, does target room remain clean, and what should be reviewed next?
The design supports a risk-first mindset. It helps users read pullback behavior without turning the chart into a crowded signal board or a generic support/resistance map.
⚡ Why This Script Is Different
Most tools focus on identifying pullbacks or continuation signals.
This script does NOT try to clone a low-volume pullback zone, a generic trend continuation score, a Supertrend pullback model, or a broad support/resistance system.
Instead, it treats the pullback as a live risk review. The unique output is the Pullback Risk Pocket: a controlled planning area where depth, defense, volume behavior, target room, and invalidation context are evaluated together before the panel prints the next action state.
⚙️ Methodology
1. Context Detection
The planner identifies trend side using EMA stack structure and normalized trend slope. Users can keep the side automatic or restrict the tool to bullish-only or bearish-only review.
2. Reference Mapping
The script builds a Pullback Risk Pocket between the base trend reference and the defense line. It also maps an invalidation reference and a target-room guide.
3. Reaction Evaluation
The model evaluates pullback depth versus ATR, trend slope, volume dry-up, wick/close response inside the pocket, and distance to the nearest target-side obstruction.
4. Visual Output
The result is shown through a centered risk pocket label, defense/risk/target guide lines, compact event labels, alerts, and an AGPro decision panel.
🗺️ How to Read the Chart
Zones = the Pullback Risk Pocket where an active pullback is reviewed for normal digestion versus risk shift.
Labels = continuation-ready, risk-watch, weak-pullback, risk-shift, follow-through, and sparse pocket-context markers.
Colors = bullish trend context uses AGPro teal, bearish trend context uses AGPro pink, warning states use yellow, and invalidation/risk-shift states use red.
Panel = the panel summarizes Trend Side, Pullback Depth, Risk Pocket status, Continuation Score, target-room context, and Action.
🚦 Signals & States
• TREND ACTIVE → trend context exists, but price has not reached the pullback risk pocket.
• POCKET NEAR → price is approaching the pullback risk pocket and deserves attention.
• HEALTHY PULLBACK → pullback is being reviewed with constructive but not yet high-grade conditions.
• RISK WATCH → pullback depth or response quality is becoming less clean.
• CONTINUATION READY → pullback risk pocket is defending with sufficient score and target-room context for review.
• FOLLOW-THROUGH → price is responding after a defended pullback pocket.
• WEAK PULLBACK → pullback touched the pocket, but score quality is weak.
• RISK SHIFT → price crossed the invalidation reference and the context should be rebuilt.
• NO TREND → trend structure is not aligned enough for the planner.
🔔 Alerts Logic
Alerts trigger when the planner detects a Continuation Ready state, a Risk Watch state, a Risk Shift event, or Follow-Through after a defended pocket.
These alerts are attention markers. They are not trade instructions, not execution commands, and not guaranteed outcomes.
🧩 Confluence Logic
The strongest context appears when trend slope, controlled pullback depth, quiet retracement volume, a constructive defense response, and clean target room align at the same time.
When one or more of these elements weakens, the planner shifts toward POCKET NEAR, RISK WATCH, WEAK PULLBACK, or RISK SHIFT instead of forcing a continuation interpretation.
📊 When to Use
• Trending markets with visible pullback structure
• Continuation review after a clean directional leg
• Situations where pullback depth and defense quality matter
• Trade-planning workflows that need risk, invalidation, and target-room context
⚠️ When NOT to Use
• Flat, low-directional range conditions
• Low-liquidity charts with unreliable wick and volume behavior
• Extreme news volatility where pullbacks can invalidate quickly
• Situations where the user expects an automatic buy/sell system
🎛️ Key Inputs
• Planner Side → controls Auto, Bullish Only, or Bearish Only evaluation.
• Sensitivity → changes how strict the risk pocket and scoring model behave.
• EMA Lengths → define fast trend pressure, base pullback reference, and defense line.
• Pullback Depth Lookback → controls how the script measures retracement depth from the latest trend-side extreme.
• Risk Pocket Width ATR → controls the thickness of the pullback review area.
• Invalidation Buffer ATR → controls the distance of the invalidation reference beyond the defense line.
• Clean Target Room ATR → defines preferred room before target-side obstruction.
• Visual settings → control pocket visibility, guide lines, labels, panel location, theme, and font sizes.
🖥️ Interface & Visual Design
The interface is built around one main object: the Pullback Risk Pocket.
The centered pocket label keeps the active state visible without forcing users to read many separate markers. The guide lines show defense, invalidation, and target-room context. The AGPro panel keeps the decision state compact and readable.
Labels use controlled spacing, cooldown, and maximum-count settings so the chart remains active without becoming crowded.
🧪 Practical Usage Workflow
1. Read the panel Action state.
2. Check Trend Side and Pullback Depth.
3. Review whether price is near, inside, defending, or breaching the Pullback Risk Pocket.
4. Compare the Continuation Score with target-room context.
5. Treat alerts as attention markers and confirm broader market context independently.
🔍 Interpretation Guidelines
A higher Continuation Score means the active pullback is showing stronger alignment between trend slope, controlled depth, volume dry-up, defense response, and remaining target room.
CONTINUATION READY does not mean a trade should be opened. It means the pullback remains structurally constructive under the script's rule set.
RISK WATCH and RISK SHIFT are caution states. They help users slow down when pullback depth, defense response, or invalidation context becomes weaker.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed signals.
It is not a generic support/resistance zone map.
It is not a clone of Low Volume Pullback Zones, Trend Continuation Quality, or Supertrend Pullback Quality.
⚠️ Limitations & Transparency
Timeframe differences can change trend slope, pullback depth, and target-room readings.
Volume behavior can vary across markets and data feeds.
Fast volatility expansion can move price through the pocket before a clean review state appears.
The script is rule-based and should be interpreted as an analytical planning layer, not as certainty.
🧠 Market Context Notes
Pullbacks are not automatically healthy because they occur inside a trend. A clean trend pullback usually needs controlled depth, reduced against-trend pressure, visible defense response, and enough room before the next obstruction.
This planner is designed to keep that review process structured.
🧾 Use Case Examples
When price pulls into the risk pocket with controlled depth, softer relative volume, and a strong close back toward the trend side, the planner may classify the state as CONTINUATION READY.
When price enters the pocket but response quality is weak or depth becomes excessive, the planner may show RISK WATCH.
When price crosses the invalidation reference beyond the defense line, the planner may show RISK SHIFT.
🧱 System Philosophy
Trend Pullback Risk Planner follows the AGPro Series decision-engine approach:
Trend first.
Pullback risk second.
Defense and target room before action.
Attention markers instead of promises.
🔐 Non-Promise Statement
No script can guarantee that a pullback will continue.
No state should be interpreted as certainty.
All outputs should be reviewed within broader market context.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions, risk management, and trade execution.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
The script is designed to help users think in structured pullback-risk terms: trend, depth, defense, target room, invalidation, and review.
Indicator

Pullback Acceptance Planner [AGPro Series]Pullback Acceptance Planner
🧠 Core Idea
Is the current trend pullback being accepted as continuation, or rejected as failure?
📌 Overview / What it does
Pullback Acceptance Planner is a public-free PulseWire planner built to evaluate one specific decision point: the moment price pulls back into a trend-support area and the trader needs to know whether the retracement is being accepted or rejected.
The script maps a live pullback acceptance pocket, accepted/rejected state labels, an invalidation risk shelf, a target-room band, and a clean AGPro decision panel. It converts pullback depth, close acceptance, trend support, volume behavior, invalidation distance, and target room into a 0-100 Acceptance Score.
It does not predict price direction, automate entries, or label every small retracement. Its purpose is to make the pullback review process cleaner, more visual, and more decision-focused.
🎯 Purpose & Design Philosophy
This script was built because many pullback tools stop at showing where price touched a moving average, trend line, or generic zone. That is not enough for a trader who needs to decide whether the pullback is still constructive.
Pullback Acceptance Planner fills that gap by focusing on acceptance behavior after the pullback reaches the planning pocket. It helps traders review trend-side support, close quality, participation, risk distance, and remaining room in one structured view.
The mindset is practical: do not chase every pullback, and do not treat every retracement as a signal. Wait for the pullback to show whether it is being accepted or rejected.
⚡ Why This Script Is Different
Most pullback tools focus on moving-average touches, simple continuation markers, or generic trend-risk labels.
This script does NOT clone Low Volume Pullback Zones, Trend Pullback Risk Planner, Opening Drive Quality, SuperTrend pullback tools, or broad continuation dashboards.
Instead, it answers a narrower question: after price enters a general trend pullback pocket, is the close behavior strong enough to call the pullback accepted, or is the invalidation shelf being lost?
That acceptance-first framing is the core identity of the script.
⚙️ Methodology
1. Context Detection
The engine reads EMA stack alignment, base EMA slope, ATR structure, and the selected planning side to determine whether a bullish or bearish pullback context is active.
2. Reference Mapping
The script builds a pullback acceptance pocket around the base EMA, then maps an invalidation risk shelf behind the pocket and a target-room band toward the nearest prior obstruction.
3. Reaction Evaluation
The 0-100 Acceptance Score evaluates pullback depth, close acceptance beyond the pocket edge, trend support, volume behavior, invalidation distance, and target room.
4. Visual Output
The chart displays the acceptance pocket, risk shelf, target-room band, compact state labels, alerts, and a five-row AGPro planner panel.
🗺️ How to Read the Chart
Zones = the pullback acceptance pocket, invalidation risk shelf, and target-room band.
Labels = current state changes such as PB ACCEPTED, PB REJECTED, ACCEPT WATCH, ROOM REVIEW, or PB FORMING.
Colors = bullish acceptance uses teal, bearish acceptance uses pink, watch/room review uses yellow or indigo, and rejection uses red.
Panel = the decision summary: Pullback State, Acceptance Score, Risk Edge, Room, and Action.
🚦 Signals & States
• PB ACCEPTED → price closed beyond the active pullback pocket with enough score quality.
• ACCEPT WATCH → pullback context is improving but still needs cleaner confirmation.
• ROOM REVIEW → acceptance quality exists, but nearby obstruction leaves limited target room.
• PB FORMING → price is inside or near the pocket and the planner is still building context.
• PB REJECTED → price crossed the invalidation shelf and the active pullback context failed.
• TREND WAIT / NO PULLBACK → there is no active pullback acceptance context to review.
🔔 Alerts Logic
Alerts trigger when a bullish or bearish pullback reaches accepted state, when acceptance watch appears, when target room needs review, when the pullback is rejected, or when a major follow-through event appears after acceptance.
Alerts are attention markers. They are not trade instructions.
🧩 Confluence Logic
The context becomes stronger when trend side, clean pullback depth, constructive close acceptance, controlled or recovering volume, reasonable invalidation distance, and sufficient target room align at the same time.
The score is intentionally multi-factor so a single moving-average touch cannot create a high-quality state by itself.
📊 When to Use
• Trending markets with clean retracements
• Swing or intraday continuation review
• Markets where pullback behavior matters more than raw trend direction
• Crypto, forex, stocks, indices, and commodities with enough liquidity
• Situations where a trader wants an invalidation reference and target-room read before acting
⚠️ When NOT to Use
• Very low-liquidity symbols
• Extremely noisy sideways chop
• News-driven spikes where ATR and trend structure distort quickly
• Ultra-low timeframes with unstable spread or poor execution quality
• Markets where price repeatedly crosses the base EMA without directional structure
🎛️ Key Inputs
• Planning Side → chooses Auto, Bullish Pullback, or Bearish Pullback.
• Sensitivity → changes trend strictness and scoring behavior.
• EMA Lengths → define the trend stack and acceptance pocket anchor.
• ATR Length → normalizes pocket width, labels, risk shelf, and target room.
• Pullback Review Window → controls how long a pocket touch remains active.
• ACCEPTED Threshold → sets the minimum score for accepted-state labels.
• Label / Panel Settings → control visibility, location, theme, font size, label size, and label density.
🖥️ Interface & Visual Design
The interface is chart-first. The main chart objects are the acceptance pocket, risk shelf, and target-room band, each with centered text when displayed.
The panel uses the AGPro standard: one merged blue header row containing only the script name, followed by five decision rows. The layout is intentionally compact so the chart stays premium, readable, and useful on first glance.
🧪 Practical Usage Workflow
1. Read the panel to identify Pullback State and Acceptance Score.
2. Check whether price is inside, above, or below the acceptance pocket.
3. Review the invalidation risk shelf before interpreting an accepted state.
4. Check the target-room band to see whether the path is open or obstructed.
5. Treat labels and alerts as review markers, not automatic trade decisions.
🔍 Interpretation Guidelines
A higher score means the pullback has cleaner depth, stronger close behavior, better trend support, healthier volume behavior, more reasonable invalidation distance, and better room.
An accepted label means the pullback has met the script's rule-based acceptance conditions. It does not mean price must continue.
A rejected label means the pullback context failed according to the invalidation shelf. It does not mean the market must reverse.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic support/resistance zone tool
• Not an order block, FVG, or broad SMC map
⚠️ Limitations & Transparency
• Timeframe differences can change how clean the pocket and score appear.
• Volatility expansion can widen risk and distort close acceptance.
• Low-liquidity markets can make volume behavior less reliable.
• Strong news candles can cross both pocket and target references too quickly.
• The script uses rule-based approximations, not future knowledge.
🧠 Market Context Notes
Pullback acceptance often depends on whether price can return toward trend support without losing structure. A constructive pullback usually keeps risk contained, avoids aggressive countertrend volume, and then shows acceptance through the pocket edge.
This script turns that process into a visual planner so the user can review risk, room, and state in one place.
🧾 Use Case Examples
When a bullish trend pulls back into the acceptance pocket, the script may print ACCEPT WATCH first. If price later closes above the pocket edge with enough score quality, the state can shift to PB ACCEPTED.
When a bearish trend rallies into the pocket but then closes back below the acceptance edge, the script can mark bearish acceptance. If price crosses the invalidation shelf instead, the state shifts toward rejection.
🧱 System Philosophy
Pullback Acceptance Planner follows the AGPro planner-style direction: the chart should not only show another signal. It should help the trader evaluate setup validity, strength, risk, target room, and next action.
🔐 Non-Promise Statement
No script can provide certainty.
No score can guarantee outcome.
This tool is designed for structured review and educational analysis.
📉 Risk Disclosure
Trading involves risk. Market conditions can change quickly, and historical or rule-based signals do not guarantee future results.
Users are responsible for their own analysis, risk management, and decisions.
This script does not provide financial advice.
📚 Educational Note
Use the script to study how pullbacks behave around trend support, invalidation shelves, and target-room constraints. The best value comes from comparing the planner state with broader market context.
Indicator

Failed Pullback Reversal Planner [AGPro Series]Failed Pullback Reversal Planner
🧠 Core Idea
Did the pullback fail to recover, and is it now creating a reversal-warning context?
📌 Overview / What it does
Failed Pullback Reversal Planner is a chart-first reversal risk planner built for one specific situation: a pullback inside an existing trend stops behaving like a healthy retracement and begins losing control.
The script maps a failed pullback pocket, control-loss rail, invalidation reference, target-room guide, compact state labels, alerts, and a clean AG Pro panel. It converts pullback depth, failed recovery, close behavior, volume response, and follow-through into a 0-100 Failure Score.
It does not predict future price movement, automate entries, or issue guaranteed buy/sell signals. Its role is to organize failed-pullback context into a clearer decision framework.
🎯 Purpose & Design Philosophy
This script was built because many pullback tools only focus on continuation quality. They often ask whether the pullback is healthy enough to resume the original trend.
Failed Pullback Reversal Planner focuses on the opposite decision layer. It asks whether the pullback failed to recover, lost the control reference, and now deserves reversal-risk review.
The design supports traders who want cleaner structure, risk location, target-room context, and next-action guidance without turning every candle into a signal.
⚡ Why This Script Is Different
Most tools focus on pullback continuation, moving-average bounces, or generic reversal markers.
This script does NOT clone Pullback Acceptance Planner, Low Volume Pullback Zones, Trend Continuation Quality, or a generic reversal signal indicator.
Instead, it treats failed pullbacks as a planning problem. Price must first enter a pullback context, then fail recovery around a control rail, then show enough close quality, volume response, and follow-through to raise reversal-risk state.
⚙️ Methodology
1. Context Detection
The script identifies former bullish or bearish trend context using fast, base, and slow EMA alignment.
2. Reference Mapping
It builds a failed pullback pocket, control-loss rail, invalidation reference, and target-room guide using ATR-normalized logic.
3. Reaction Evaluation
It scores pullback depth, failed recovery, close against the former trend, volume response, and nearby follow-through.
4. Visual Output
It displays concept-native zones, centered zone labels, compact event labels, guide rails, alerts, and a premium AG Pro planning panel.
🗺️ How to Read the Chart
Zones = the failed pullback pocket and reversal-risk zone.
Labels = pullback test, control-loss, reversal-risk, or reset markers.
Colors = teal shows bullish reversal-risk context, pink shows bearish reversal-risk context, amber shows watch context, red shows control-loss or risk context, and indigo shows reset/recovery context.
Panel = a compact decision dashboard showing Pullback State, Failure Score, Reversal Risk, Invalidation, and Action.
🚦 Signals & States
• PB TEST → a recent pullback is being monitored for failed-recovery behavior.
• CTRL LOST → price has lost the control reference but has not fully qualified the warning state.
• REV RISK → failed pullback context has enough score to deserve reversal-risk review.
• RESET → optional marker showing that price reclaimed the invalidation reference and the failed-pullback plan should be reset.
• NO SETUP → no active failed-pullback context is present.
🔔 Alerts Logic
Alerts trigger when the planner detects a monitored failed-pullback setup, a reversal-risk warning, invalidation/reset behavior, or meaningful follow-through after control loss.
Alerts are attention markers only. They are not trade instructions.
🧩 Confluence Logic
The strongest failed-pullback context appears when pullback depth is meaningful, price loses the control rail, the candle closes against the former trend, volume supports the shift, and follow-through begins beyond nearby structure.
When these components align, the Failure Score rises and the panel moves from watch context toward reversal-risk review.
📊 When to Use
• Trend pullbacks that start losing recovery quality
• Potential reversal transitions after a failed retracement
• Markets where a prior trend is weakening around a control reference
• Situations where invalidation and target-room context matter
⚠️ When NOT to Use
• Very low liquidity markets
• Extremely noisy sideways conditions
• News-driven volatility spikes
• Markets with no clean prior trend context
• Symbols where volume behavior is unreliable
🎛️ Key Inputs
• Sensitivity → controls how strict the failed-pullback model is.
• Former Trend Side → restricts evaluation to bullish-trend or bearish-trend failures when needed.
• Failure Window Bars → defines how long after a pullback touch control-loss behavior can qualify.
• Control-Loss Buffer ATR → adjusts the rail used to mark failed recovery.
• Invalidation Buffer ATR → controls the reset reference beyond the fast trend anchor.
• Label and Panel Settings → control panel location, theme, font size, label size, label spacing, and visible label count.
🖥️ Interface & Visual Design
The interface is built around a clean AG Pro decision panel and chart-first planning visuals.
The first panel row uses the AG Pro merged blue header standard with only the script name. The remaining rows focus on the active decision: pullback state, failure score, reversal risk, invalidation, and action.
The chart uses a focused failed pullback pocket, a reversal-risk zone, guide rails, and compact labels. The goal is a premium planning view without crowded generic signals.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check whether a pullback test is active.
3. Watch whether price loses the control rail.
4. Review the Failure Score and reversal-risk label.
5. Compare the invalidation reference and target-room guide before interpreting the context.
🔍 Interpretation Guidelines
Think in terms of failed recovery quality, not prediction.
A higher Failure Score means the current pullback has stronger failed-recovery characteristics across depth, control loss, close behavior, volume, and follow-through.
A control-loss state means the setup is weakening but may still need more confirmation.
A reset state means the failed-pullback idea has been reclaimed and should be reassessed.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a generic pullback continuation indicator
⚠️ Limitations & Transparency
• Timeframe differences can change how pullback depth and failure windows appear.
• High volatility can distort ATR-normalized rails.
• Low-volume instruments may reduce the reliability of the volume component.
• Sideways markets can create repeated failed-pullback noise.
• Outputs should be interpreted with broader market structure.
🧠 Market Context Notes
Failed pullbacks often matter when a market was expected to recover in the direction of the prior trend but instead loses the control reference.
The script does not assume that every failed recovery becomes a full reversal. It simply marks when the context is strong enough to deserve review.
🧾 Use Case Examples
When a bullish trend pulls back toward the fast/base EMA area, fails to recover, and closes below the control rail with stronger participation, the planner may raise bearish reversal-risk context.
When a bearish trend pulls back upward, fails to reject lower, and closes above the control rail with follow-through, the planner may raise bullish reversal-risk context.
🧱 System Philosophy
The script is built around decision quality. It does not try to add another signal layer. It asks whether a specific market behavior is valid, how strong it is, where it is invalidated, and what should be reviewed next.
🔐 Non-Promise Statement
No guarantees.
No certainty.
The script organizes observable market behavior into a structured analytical view.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, risk management, and decisions.
This script does not provide financial advice or guaranteed trading outcomes.
📚 Educational Note
Use the planner as an educational framework for studying failed pullbacks, recovery quality, control loss, and reversal-risk context.
Indicator

Momentum Pullback Continuation [AGPro Series]Momentum Pullback Continuation
🧠 Core Idea
Is a momentum pullback resetting cleanly for continuation, or is the move losing its execution quality?
📌 Overview / What it does
Momentum Pullback Continuation is a chart-first continuation planner built for traders who review momentum-driven trends after a controlled pullback.
The script maps a momentum reset pocket, continuation trigger line, invalidation rail, target-room corridor, state labels, alerts, and a clean AGPro planning panel. It converts trend support, momentum slope, pullback depth, close recovery, volume behavior, and target room into a 0-100 Continuation Score.
The default publication preset is 1H-focused. Higher timeframes can be tested from the inputs, but the strongest intended use case is hourly momentum pullback review.
It does not predict price, automate entries, or turn every trend pullback into a signal. It is a structured decision tool for evaluating whether the current momentum reset deserves closer review.
🎯 Purpose & Design Philosophy
This script was built to fill the gap between basic momentum readings and practical continuation planning.
Many traders can see that momentum exists, but the harder question is whether the pullback is resetting in a controlled way or damaging the continuation structure. This planner focuses on that decision layer.
The design supports a disciplined workflow: identify the active momentum side, inspect the reset pocket, evaluate the score, locate the invalidation rail, compare target room, and read the next-action state.
⚡ Why This Script Is Different
Most tools focus on momentum oscillators, moving-average direction, divergence events, or generic continuation labels.
This script does NOT clone Hidden Divergence Continuation Zones, Trend Continuation Quality, Structural Momentum Oscillator, ROC Momentum Shift Map, or a generic pullback signal map.
Instead, it treats the pullback as a planning event. The main output is not a buy/sell marker. It is a momentum reset decision state with score, risk edge, target-room context, and action guidance.
⚙️ Methodology
1. Context Detection
The script identifies bullish or bearish momentum context using an EMA stack, normalized trend slope, and smoothed rate-of-change pressure.
2. Reference Mapping
It builds a concept-native Momentum Reset Pocket around the active trend support area, then maps a continuation trigger line, invalidation rail, and target-room guide.
3. Reaction Evaluation
The score model evaluates momentum slope, pullback depth, trend support, close recovery, volume behavior, and available target room.
4. Visual Output
The chart shows the reset pocket, target-room corridor, trigger and risk guides, compact event labels, sparse context labels, alerts, and a premium AGPro panel.
🗺️ How to Read the Chart
Reset Pocket = the area where a momentum pullback is expected to stabilize before continuation can be reviewed.
Trigger Line = the fast continuation reference that price needs to recover after the reset.
Invalidation Rail = the planning line where the active reset context is considered lost.
Target-Room Corridor = the forward planning area between current price and the target-room guide.
Labels = RESET, WATCH, READY, WEAK, and INVALID attention markers.
Colors = teal marks bullish continuation context, pink marks bearish continuation context, amber marks weak or caution states, indigo marks watch/target-room context, and red marks invalidation.
Panel = summarizes Momentum State, Pullback Quality, Continuation Score, Risk Edge, and Action.
🚦 Signals & States
• RESET → price has interacted with the momentum reset pocket.
• WATCH → the reset is developing, but recovery or score quality is not complete.
• READY → momentum, pullback depth, recovery, volume context, and target room align strongly enough for structured review.
• WEAK → the pullback is too deep, low quality, or not recovering well enough.
• INVALID → price has crossed the invalidation rail and the active reset context should be rebuilt.
🔔 Alerts Logic
Alerts trigger when READY, WATCH, WEAK RESET, or INVALID states appear.
Each alert is an attention marker tied to the rule-based state engine. Alerts are not trade instructions and do not guarantee that continuation will occur.
🧩 Confluence Logic
The continuation context becomes stronger when trend support, positive momentum slope, controlled pullback depth, clean close recovery, acceptable volume behavior, and target-room availability align.
The script intentionally requires multiple conditions instead of labeling every pullback inside a trend as meaningful.
📊 When to Use
• Directional markets with visible momentum pressure
• 1H charts and nearby intraday momentum review
• Trend continuation review workflows
• Pullbacks after a clear momentum impulse
• Situations where risk edge and target room matter before acting
• Markets where volume and close behavior are readable enough to support context
⚠️ When NOT to Use
• Low-liquidity symbols with unreliable candles or volume
• Extremely choppy markets with frequent trend-side flips
• News-driven volatility where reset structure changes too quickly
• Very flat markets where momentum pressure is absent
• Instruments where the active pullback is far beyond the mapped risk edge
🎛️ Key Inputs
• Continuation Side → selects Auto, Bullish Only, or Bearish Only evaluation.
• Timeframe Profile → keeps the default script behavior focused on 1H charts, with optional broader intraday or all-timeframe testing.
• Sensitivity → adjusts how strict the momentum reset model is.
• EMA settings → define trigger, reset, and support references.
• Momentum ROC settings → control the internal momentum pressure reading.
• Reset Pocket Width → changes how wide the reset area is around trend support.
• READY / WATCH Score → sets state thresholds.
• Visual settings → control zones, guide lines, labels, panel theme, panel location, and font sizes.
🖥️ Interface & Visual Design
The interface is designed to stay chart-first and practical.
The reset pocket and target-room corridor provide the main visual planning structure. Labels are compact and spaced with cooldown controls. The AGPro panel uses a single merged blue header row and focuses only on the core decision fields.
🧪 Practical Usage Workflow
1. Read the panel Momentum State.
2. Check whether price is interacting with the Momentum Reset Pocket.
3. Compare Pullback Quality and Continuation Score.
4. Locate the Risk Edge and Target-Room Corridor.
5. Use the Action row to decide whether the context is READY, still WATCH, weak, invalid, or only worth scanning.
🔍 Interpretation Guidelines
Think of the script as a continuation readiness map, not a command system.
A higher score means the active momentum pullback matches the script's internal definition of cleaner continuation structure. A lower score means one or more components are missing, such as trend support, recovery quality, volume context, or target room.
The invalidation rail is a planning boundary for the active context. It is not a guaranteed stop level and should not replace the user's own risk process.
🚫 What This Script Is NOT
This script is not a prediction engine.
This script is not financial advice.
This script is not an auto-trading system.
This script does not provide guaranteed signals.
This script does not replace independent confirmation, position sizing, or risk management.
⚠️ Limitations & Transparency
Momentum continuation behavior changes across symbols, sessions, and timeframes.
The default 1H Focus profile intentionally suppresses active labels, zones, and alerts outside the intended hourly review window.
Low-liquidity markets can distort volume behavior and reset quality.
High volatility can widen risk edges and reduce target-room clarity.
Sideways conditions can create repeated resets without clean continuation.
No rule-based script can fully account for sudden news, spread changes, slippage, or discretionary execution constraints.
🧠 Market Context Notes
Momentum pullbacks are often more useful when the broader trend remains intact, the pullback is controlled rather than impulsive against trend, and the recovery candle shows clear close quality.
The best reads usually come from alignment between structure, momentum, volume, volatility, and clean forward room.
🧾 Use Case Examples
When price pulls into the reset pocket during bullish momentum and then recovers the trigger line with a stronger score, the script can mark READY for continuation review.
When price enters the pocket but momentum slope fades and pullback depth becomes excessive, the script can mark WEAK RESET.
When price crosses the invalidation rail, the active reset context is treated as lost and should be rebuilt.
🧱 System Philosophy
AGPro tools are built around structured interpretation.
The goal is not to create more chart noise. The goal is to turn visible market behavior into a cleaner decision framework: context, quality, risk, target room, and next action.
🔐 Non-Promise Statement
No script can provide certainty.
No score guarantees continuation.
The output should be interpreted as structured context, not as a promise of future price movement.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, confirmation, position sizing, and decisions.
This script is for educational and analytical use only and does not provide financial advice.
📚 Educational Note
Use the planner to study how momentum resets behave across different symbols and timeframes. Over time, compare READY, WATCH, WEAK RESET, and INVALID states to understand which environments produce cleaner continuation structure.
Indicator

Continuation Acceptance Planner [AGPro Series]Continuation Acceptance Planner
🧠 Core Idea
Is this continuation setup being accepted, delayed, or invalidated before the next decision point?
📌 Overview / What it does
Continuation Acceptance Planner is a chart-first continuation planning tool built to evaluate whether a pullback inside an active trend is producing real acceptance or only temporary hesitation.
The script builds a live continuation acceptance band around a trend base, scores the context from 0 to 100, maps the invalidation rail, checks target room against the nearest obstruction, and prints compact state labels such as ACCEPTED, DELAYED, PAUSED, WATCH, and INVALID.
It does not predict future price movement, automate entries, or produce guaranteed trade signals. Its role is to organize continuation context into a cleaner decision framework.
🎯 Purpose & Design Philosophy
This script was built for traders who want to judge continuation quality without turning every trend pullback into a signal.
Most continuation tools focus on bounce detection or trend strength only. This planner focuses on the decision layer: acceptance quality, pullback risk, target room, invalidation context, and the next action state.
The design supports a patient execution mindset. It helps the user ask whether the continuation is actually being accepted, still delayed, temporarily paused, too extended, or losing validity.
⚡ Why This Script Is Different
Most tools focus on generic trend continuation signals after a moving average touch or pullback bounce.
This script does NOT act as a simple buy/sell continuation indicator, and it does not clone a broad trend-continuation quality scanner.
Instead, it treats continuation as a planning problem: price must interact with an acceptance band, show a quality close, maintain enough room before obstruction, and stay above or below a clear invalidation rail.
⚙️ Methodology
1. Context Detection
The script identifies bullish or bearish continuation context using fast, base, and slow EMA alignment plus trend slope.
2. Reference Mapping
It creates a continuation acceptance band around the base EMA and maps the invalidation rail using the band edge, slow EMA, and ATR buffer.
3. Reaction Evaluation
It evaluates pullback depth, close acceptance, volume support, and whether price is delaying, accepting, extending, or moving toward invalidation.
4. Visual Output
The script displays a centered acceptance-band label, invalidation and target guides, compact state labels, and a premium AG Pro planning panel.
🗺️ How to Read the Chart
Zones = the live continuation acceptance band around the trend base.
Labels = accepted, delayed, invalidation, or watch-state markers with optional 0-100 score.
Colors = bullish continuation context uses teal, bearish continuation context uses pink, delayed context uses amber, and risk or invalidation context uses red.
Panel = a compact decision dashboard showing Continuation Score, Acceptance, Pullback Risk, Target Room, and Action.
🚦 Signals & States
• ACCEPTED → continuation context has a qualified acceptance close and enough score to review.
• DELAYED → price is interacting with the acceptance band but has not produced enough clean acceptance.
• PAUSED → the prior continuation side still matters, but the trend stack needs to rebuild before the setup becomes clean again.
• WATCH → continuation context exists, but the setup still needs clearer reaction.
• EXTENDED → price is away from the acceptance band and may be late for clean continuation planning.
• INVALID RISK → price is moving beyond the planner's invalidation rail.
🔔 Alerts Logic
Alerts trigger when continuation acceptance, delayed acceptance, invalidation risk, or blocked target room conditions appear.
Alerts are attention markers only. They are not trade instructions and should be interpreted with the broader chart context.
🧩 Confluence Logic
The strongest continuation context appears when trend alignment, controlled pullback depth, close acceptance, volume support, and clean target room align.
When these components align, the continuation score improves and the panel moves toward a clearer planning state.
📊 When to Use
• Primary timeframe: 1H
• Secondary timeframe: 4H
• Trending markets with structured pullbacks
• Continuation setups after a controlled pause
• Pullbacks into a moving trend base
• Situations where target room and invalidation clarity matter
⚠️ When NOT to Use
• When expecting dense signals on 1D or 1W charts
• Very low liquidity environments
• Extremely noisy sideways conditions
• High-volatility shock moves where trend anchors distort quickly
• Markets with no clean trend alignment
🎛️ Key Inputs
• Sensitivity → changes how strict the acceptance engine is.
• Target Obstruction Lookback → defines the prior obstruction used for target-room evaluation.
• Acceptance Band Width ATR → controls the width of the continuation band.
• Confirmation Mode → defines whether acceptance requires close behavior only, close plus volume, or stricter alignment.
• Label and Panel Settings → control visual density, font size, panel location, and theme.
🖥️ Interface & Visual Design
The panel is designed as a compact planning dashboard, not a data-heavy scanner.
The first row follows the AG Pro blue merged-header standard. The remaining rows focus only on the information needed for continuation planning: score, acceptance, pullback risk, target room, and action.
Chart visuals are intentionally controlled so the acceptance band, invalidation rail, target guide, and labels remain readable.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Check whether price is interacting with the acceptance band.
3. Review the continuation score and pullback risk.
4. Compare target room with the invalidation rail.
5. Use labels and alerts as attention markers, not as automatic decisions.
🔍 Interpretation Guidelines
Think in terms of setup quality, not prediction.
A higher score means the current continuation context has stronger alignment across trend, pullback depth, close behavior, volume, and target room.
A delayed state means the idea is not necessarily invalid, but the chart has not yet produced clean acceptance.
A paused state means the prior continuation context is still nearby, but alignment weakened enough that patience matters more than chasing.
An invalidation-risk state means the continuation structure should be reassessed.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not an auto-trading system
• Not a guaranteed signal generator
• Not a generic support/resistance or order-block map
• Not a gap continuation planner or breakout acceptance planner
⚠️ Limitations & Transparency
Timeframe differences can change how continuation bands and target-room references appear.
Volatility expansion can move the acceptance band and invalidation rail quickly.
Low-volume or synthetic symbols may reduce the usefulness of the volume component.
All outputs are rule-based and should be interpreted within broader market context.
🧠 Market Context Notes
Continuation planning depends on trend structure, liquidity, volatility, and obstruction distance.
The cleanest cases usually appear when pullbacks are controlled, the acceptance close is clear, and the next obstruction is not too close.
In the current public-release tuning, the script reads cleanest on 1H charts and remains usable on 4H. Daily and weekly charts can still provide context, but they are less expressive for the intended acceptance-versus-delay workflow.
🧾 Use Case Examples
When price pulls back into the acceptance band during a bullish trend and closes back above the base EMA with sufficient target room, the planner may shift toward ACCEPTED.
When price stays inside the band without a clean close, the planner may remain DELAYED.
When price closes beyond the invalidation rail, the planner flags INVALID RISK.
🧱 System Philosophy
The script follows the AGProLabs decision-engine approach: a useful public tool should help traders evaluate validity, strength, risk, target room, and the next action state.
It is built to guide interpretation, not to replace trader judgment.
🔐 Non-Promise Statement
No script can provide certainty.
No output from this script guarantees continuation, reversal, profit, or loss avoidance.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions.
This script does not provide financial advice and should be used only as an educational and analytical tool.
📚 Educational Note
Use the planner to study how continuation acceptance develops across different symbols, sessions, volatility regimes, and timeframes.
Indicator

UCY-VWATR (live)═══════════════════════════════════════
UCY-VWATR — Volume Weighted ATR Bands with Supertrend
═══════════════════════════════════════
▸ OVERVIEW
A volatility-band indicator that combines a Volume Weighted
Moving Average (VWMA) center line with ATR-based deviation
bands and a Supertrend overlay for trend direction.
The indicator visualizes how far price extends from its
volume-weighted mean in units of Average True Range, while
the Supertrend acts as a dynamic trend filter.
═══════════════════════════════════════
▸ HOW IT WORKS
- VWMA forms the central reference band (default: 20 period),
giving more weight to bars with higher volume than a standard
moving average.
- ATR (default: 14 period) generates three pairs of upper and
lower deviation bands at ±1, ±2, and ±3 multiples — mapping
volatility expansion zones around the mean.
- Supertrend (default: 10 period, factor 3.0) determines the
prevailing trend direction. Green = uptrend, Red = downtrend.
- Body-middle (the midpoint of each candle's open and close)
is compared against each band. When the body crosses beyond
a band in the direction of the active trend, a colored fill
appears — darker fills indicate stronger displacement from
the mean.
═══════════════════════════════════════
▸ HOW TO READ THE FILLS
In an UPTREND (green Supertrend):
- Body above VWMA → light green fill (mild momentum)
- Body above +1 ATR → medium green
- Body above +2 ATR → strong green
- Body above +3 ATR → extreme green (potential exhaustion)
In a DOWNTREND (red Supertrend):
- Body below VWMA → light red fill
- Body below -1 ATR → medium red
- Body below -2 ATR → strong red
- Body below -3 ATR → extreme red (potential exhaustion)
The intensity of the fill provides an at-a-glance read of
how stretched price is relative to its volume-weighted mean.
═══════════════════════════════════════
▸ POTENTIAL USE CASES
- Trend-following: Enter in the direction of the Supertrend
when price pulls back to VWMA or ±1 ATR band.
- Mean reversion: Look for exhaustion signals when price
reaches ±3 ATR bands against the prevailing trend.
- Breakout confirmation: A break and hold above/below ±1 ATR
in the direction of a fresh Supertrend flip can act as
trend confirmation.
- Volatility context: Wider band spacing signals high
volatility regimes; narrow bands indicate compression.
═══════════════════════════════════════
▸ SETTINGS
- VWMA Length: 20 (medium-term balance)
- ATR Length: 14 (classic Wilder period)
- ATR Multipliers: 1.0 / 2.0 / 3.0
- Supertrend ATR Length: 10
- Supertrend Factor: 3.0
All parameters are user-adjustable to fit different timeframes
and instruments. Lower multipliers suit ranging markets;
higher multipliers suit trending or volatile assets.
═══════════════════════════════════════
▸ NOTES
- Works on all timeframes and instruments (stocks, futures,
forex, crypto).
- VWMA requires volume data — best results on instruments
with reliable volume feeds (avoid forex spot pairs without
aggregated volume).
- Designed as a visual decision-support tool, not a
standalone signal generator.
═══════════════════════════════════════
⚠️ DISCLAIMER
This indicator is published for educational and analytical
purposes only. It does not constitute financial advice or a
recommendation to buy or sell any asset. All trading decisions
and their outcomes are the sole responsibility of the user.
Past performance does not guarantee future results. Indicator

Sortino Ratio Oscillator [MarkitTick]💡 The Sortino Ratio Oscillator introduces a sophisticated, risk-adjusted performance metric typically reserved for portfolio analysis, adapting it into a highly responsive momentum oscillator. By strictly penalizing downside volatility while rewarding upside momentum, it provides a much clearer picture of market strength compared to traditional oscillators that treat all volatility equally.
✨ Originality and Utility
Standard momentum indicators measure the velocity of price movement based on general variance. However, traditional models penalize both upside and downside volatility. A massive bullish breakout creates "high volatility," which standard indicators often misinterpret as an overextended or risky market condition.
This script resolves that inherent flaw by migrating the academic Sortino Ratio into a technical trading framework. It isolates "bad" volatility (price drops) from "good" volatility (price gains). The utility here is immense: traders can identify trends where the price action is genuinely supported by positive risk-adjusted returns, filtering out noisy markets where the downside deviation is too high. Furthermore, this tool features an integrated divergence detection engine, dynamic histogram coloring, and built-in webhook alert formatting, making it a comprehensive suite for algorithmic and discretionary traders alike.
🔬 Methodology and Concepts
The core engine of this indicator relies on continuously assessing the bar-to-bar percentage return of the asset.
First, it calculates the raw percentage return between the current close and the previous close.
Next, it isolates the downside returns. If a return is positive, it is ignored for the risk calculation (treated as zero). If it is negative, it is squared to emphasize larger drawdowns, following standard variance practices.
The script then computes the Simple Moving Average of these squared negative returns over a user-defined lookback window, calculating the square root to determine the final Downside Deviation.
Simultaneously, the Simple Moving Average of the raw returns is calculated to find the mean return over the same period.
The final Sortino Ratio is produced by dividing the mean return by the downside deviation.
To smooth the output and generate actionable crossovers, a secondary Signal Line is derived by applying an average to the raw Sortino Ratio.
To enhance the analytical depth, the script incorporates a robust divergence engine that scans for pivot highs and lows over a customizable lookback window. By comparing price action pivots with the oscillator's momentum peaks and troughs, it systematically maps out both regular and hidden divergences.
🎨 Visual Guide
The visual presentation is meticulously structured to provide instant clarity on risk-adjusted momentum states.
• The Sortino Histogram
The core oscillator is plotted as a multi-colored histogram. It utilizes a four-state coloring system to indicate momentum shifts:
Solid Bull Color: The ratio is above zero and rising, indicating accelerating positive risk-adjusted returns.
Transparent Bull Color: The ratio is above zero but falling, suggesting positive momentum is decelerating.
Solid Bear Color: The ratio is below zero and falling, indicating accelerating downside risk.
Transparent Bear Color: The ratio is below zero but rising, showing that downside risk is waning.
• Signal Line and Cloud Fill
A highlighted Signal Line tracks the moving average of the Sortino Ratio. The space between the Sortino histogram and the Signal Line is filled with a dynamic cloud, helping traders easily spot shifts in immediate trend strength.
• Threshold Lines
Dashed lines represent the Overbought and Oversold thresholds. A solid gray line marks the Zero Level, acting as the primary baseline for positive versus negative risk-adjusted states.
• Divergence Mapping
Regular Bullish (RB): Displayed as a solid line connecting price lows to oscillator lows, complete with a label below the candle.
Hidden Bullish (HB): Displayed as a dashed line, indicating trend continuation.
Regular Bearish (RD): Displayed as a solid line connecting price highs to oscillator highs.
Hidden Bearish (HD): Displayed as a dashed line.
• Candle Coloring
When enabled, the price chart's candles are painted to match the four-state color logic of the Sortino Histogram, linking the oscillator's data directly to the price action on the main chart.
📖 How to Use
Traders can interpret the Sortino Ratio Oscillator through several distinct frameworks depending on their trading style.
• Zero-Line Crossovers
A baseline shift occurs when the histogram crosses the zero line. A cross into positive territory confirms that the average returns now outweigh the downside deviation, signaling a structurally sound bullish environment. Conversely, a drop below zero warns that downside volatility is dominating the asset's behavior.
• Signal Line Interactions
Watch for the histogram to cross the Signal Line. When the Sortino Ratio spikes above its signal line, momentum is expanding. When it crosses below, it often precedes a consolidation or a reversal, as highlighted by the cloud fill changing colors.
• Extremes and Reversals
The Overbought and Oversold threshold lines act as exhaustion markers. An asset sustaining a Sortino Ratio above the Overbought level is exhibiting unusually high, unpenalized upside movement. While strong, traders should watch for the histogram to peak and cross back below the Signal Line as an early warning of a pullback.
• Trading Divergences
Divergences are perhaps the most powerful signals generated by this tool. Look for Regular Bullish Divergences when the price makes a lower low, but the Sortino Ratio makes a higher low. This indicates that despite the price drop, the underlying downside volatility is shrinking relative to the mean return, hinting at a bottom. Hidden Divergences are excellent for trading pullbacks in the direction of the macro trend.
⚙️ Inputs and Settings
• Sortino Settings
Lookback Length: Defines the period used to calculate the mean return and downside deviation. A shorter length is highly reactive, while a longer length provides macroscopic trend stability.
Signal Length: Adjusts the smoothness of the Signal Line.
Overbought / Oversold Levels: Customizes the threshold lines for extreme readings.
• Candle Coloring
A simple toggle to enable or disable the dynamic coloring of the main chart price candles based on the oscillator's state.
• Divergence Settings
Enable Divergence: Master toggle for the divergence engine.
Show Regular / Hidden: Independent toggles to filter specific divergence types.
Pivot Lookback Left / Right: Determines the strictness of the pivot point detection. Higher values require more significant peaks and troughs to form a valid pivot, filtering out noise.
• Webhook Action Names
Customizable string inputs allowing algorithmic traders to map specific script events directly to JSON payloads for automated execution platforms.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The Sortino Ratio, developed by Dr. Frank A. Sortino, is a vital modification of the Sharpe Ratio. In Modern Portfolio Theory, the Sharpe Ratio evaluates the performance of an investment by adjusting for its risk, defined universally as the standard deviation of its returns. However, standard deviation measures total volatility, treating an unexpected positive gain exactly the same as a negative loss.
This oscillator resolves that mathematical paradox by isolating downside deviation. The scientific framework dictates that a minimum acceptable return—in this script's case, zero—must be established. Only returns falling strictly below this threshold are aggregated and squared to calculate the downside variance. By exclusively measuring the standard deviation of negative asset returns, the formula effectively removes the penalty for upside volatility.
In a purely academic sense, a high Sortino Ratio mathematically proves that the asset is generating its returns without suffering significant, erratic drawdowns. Translated into technical analysis, when the indicator rises, it mathematically proves that the ratio of upward momentum relative to downward variance is expanding. This makes it an incredibly robust statistical measure, completely immune to the standard look-around bias of typical mathematical oscillators that collapse under the weight of sudden, positive price shocks.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Volumetric Trend Structure [BOSWaves]Volumetric Trend Structure - Pivot-Averaged Drift Detection with Volume-Normalized Band Visualization
Overview
Volumetric Trend Structure is a pivot-anchored trend identification system that constructs dynamic drift lines from the rolling average of confirmed swing highs and lows, where trend direction, band positioning, and volume histogram behavior are driven by structural pivot accumulation and statistically normalized volume measurement rather than fixed moving average thresholds or arbitrary volatility multiples.
Instead of relying on lagged moving average crossovers or static band calculations, trend state and directional reference levels are determined through confirmed pivot detection, multi-pivot averaging for drift line construction, and standard deviation-normalized volume scoring that adapts bar-by-bar to reflect genuine volume significance relative to recent history.
This creates a trend framework grounded in actual price structure rather than smoothed price derivatives. Drift lines move only when new confirmed pivots shift the structural average, trend state responds to price crossing structurally-derived boundaries, and the volume histogram mounted directly on the active band provides a continuously updating picture of volume participation intensity and directional character at the exact level that defines the current trend.
Price is therefore evaluated against drift boundaries that represent real swing structure rather than indicator-generated levels disconnected from market geometry.
Conceptual Framework
Volumetric Trend Structure is founded on the principle that robust trend boundaries should be derived from confirmed price structure pivots and their rolling averages, not from smoothed price series that shift continuously regardless of whether meaningful structural events have occurred.
Traditional trend-following methods anchor bands and trend references to exponential or simple moving averages that update on every bar and carry no structural significance in isolation. This framework replaces continuous-update logic with pivot-event-driven drift construction, where the upper and lower drift lines only shift when a new confirmed swing high or low is recorded, ensuring the boundaries reflect actual market structure rather than arithmetic price smoothing.
Three core principles guide the design:
Trend boundaries should emerge from confirmed pivot structure and their averages, providing structurally meaningful levels rather than arbitrary smoothed references.
Volume should be measured relative to its own statistical distribution, normalizing significance across instruments and timeframes rather than using raw absolute values.
Volume visualization should be anchored to the active structural boundary, directly connecting participation data to the trend level that defines current directional state.
This shifts trend analysis from continuous moving average mechanics into event-driven structural drift tracking with volume participation mapped directly onto the defining boundary.
Theoretical Foundation
The indicator combines confirmed pivot high and low detection, rolling pivot array averaging for drift line construction, standard deviation-normalized volume measurement, and directional volume gradient coloring across three configurable display modes.
Pivot highs and lows are confirmed using a configurable left-right bar requirement, ensuring only structurally validated swing points contribute to drift calculation. A rolling array of recent pivots feeds the upper and lower drift lines, with the average shifting only as new pivots register. Volume normalization divides raw volume by its rolling standard deviation, producing a dimensionless score that objectively ranks each bar's participation relative to recent history. Volume histogram bars are then plotted directly on the active drift band, scaled by the normalized score and oriented in the trend direction.
Four internal systems operate in tandem:
Pivot Detection and Array Management : Identifies confirmed swing highs and lows through the configurable pivot length parameter, maintaining rolling arrays of the most recent qualifying pivots for both upper and lower drift calculations.
Drift Line Construction : Averages the contents of each rolling pivot array to produce upper and lower drift lines that update only when new confirmed pivots register, anchoring the trend framework to real structural events.
Trend State Logic : Monitors price crossovers and crossunders of the upper and lower drift lines respectively, flipping trend state and reassigning the active band between the upper and lower drift lines based on current direction.
Volume Normalization and Histogram Engine : Calculates a standard deviation-based volume score, scales it to the chart's price range, and plots histogram bars on the active drift band with configurable directional coloring and spike detection.
This design allows trend structure to reflect genuine pivot-based market geometry while volume participation is measured and visualized with statistical objectivity.
How It Works
Volumetric Trend Structure evaluates price through a sequence of structure-aware processes:
Pivot Confirmation : Swing highs and lows are confirmed when the specified number of bars to the left and right all print lower highs or higher lows respectively, validating structural significance before the pivot is registered.
Array Update and Drift Recalculation : Each newly confirmed pivot is appended to its respective rolling array and the oldest entry removed if the array exceeds the configured pivot count, triggering immediate recalculation of the corresponding drift line average.
Trend Crossover Evaluation : On each bar, price is tested against both drift lines. A crossover above the upper drift establishes bullish state, and a crossunder below the lower drift establishes bearish state, with the previously opposing drift line becoming the new active band.
Active Band Assignment : In a bullish trend, the lower drift line serves as the active structural band providing support reference. In a bearish trend, the upper drift line serves as the active structural band providing resistance reference.
Volume Normalization : Each bar's raw volume is divided by its 200-bar rolling standard deviation, producing a normalized score capped at four standard deviations that objectively quantifies participation intensity.
Histogram Scaling : The normalized volume score is multiplied by a range-derived step size based on the 200-bar average bar range, producing price-unit histogram heights that scale appropriately to the chart without manual adjustment.
Volume Color Assignment : Depending on the selected color mode, histogram bars are colored by buy/sell pressure gradient derived from close position within the bar range (Delta), uniform trend direction (Trend), or trend direction with statistical spike highlighting (Trend + Spikes).
Spike Detection : Bars reaching four standard deviations of volume receive spike classification, triggering directional spike markers and overriding base color in applicable color modes.
Signal and Visual Output : Trend state transitions generate buy and sell triangle labels. Candles are colored with a volume-intensity gradient that brightens with participation strength. A trend fill extends between the active band and price for directional context.
Together, these elements form a continuously updating structural trend map where pivot geometry defines the boundaries and volume participation is measured and displayed with statistical precision directly on those boundaries.
Interpretation
Volumetric Trend Structure should be interpreted as a pivot-derived structural trend system with volume participation mapped onto the active directional boundary:
Bullish Trend State (Green) : Established when price closes above the upper drift line, with the lower drift line becoming the active support band and volume histogram projecting upward from it.
Bearish Trend State (Magenta) : Established when price closes below the lower drift line, with the upper drift line becoming the active resistance band and volume histogram projecting downward from it.
Drift Lines : Upper and lower structural boundaries derived from rolling averages of recent confirmed pivot highs and lows. These lines only shift when new confirmed pivots register, ensuring structural relevance.
Active Band : The drift line currently serving as the primary structural reference. The lower drift in a bullish trend and the upper drift in a bearish trend are displayed with a solid colored line and serve as the histogram anchor.
Trend Fill : Gradient fill between the active band and price provides a continuous visual representation of the distance and directional relationship between current price and the structural boundary.
Volume Histogram : Normalized volume bars extending from the active drift band reflect statistically scaled participation intensity on each bar, oriented upward in a bull trend and downward in a bear trend.
Delta Color Mode : Histogram bars colored by close-position gradient within the bar range, revealing whether volume on each bar was associated with buying or selling pressure regardless of trend direction.
Trend Color Mode : Uniform histogram coloring by current trend direction, providing a clean structural participation view without directional bar-level interpretation.
Trend + Spikes Mode : Trend-colored histogram with statistical spike bars highlighted in a distinct color, identifying exceptional participation events against the structural background.
◆ Spike Markers : Diamond labels plotted at bar highs in a bull trend and lows in a bear trend on statistically exceptional volume bars, marking participation outliers for immediate identification.
▲ / ▼ Trend Signals : Triangle labels at trend state transitions mark the crossover bar where the structural drift boundary was breached, providing clear visual anchoring of each directional change.
Colored Candles : Optional bar coloring reflects trend direction with intensity graduating from muted at low volume to fully saturated at peak participation, providing an immediate conviction reading. Note: The original chart candles must be disabled in chart settings for the trend-colored candles to display properly.
Drift line positioning, active band proximity, and volume histogram behavior at the structural boundary collectively provide more information than any element in isolation.
Signal Logic & Visual Cues
Volumetric Trend Structure presents two primary structural interaction signals alongside continuous volume participation monitoring:
Buy Signal (▲) : Green triangle appears when price closes above the upper drift line, marking the structural crossover that establishes bullish trend state and reassigns the lower drift as the active support band.
Sell Signal (▼) : Red triangle appears when price closes below the lower drift line, marking the structural crossunder that establishes bearish trend state and reassigns the upper drift as the active resistance band.
Volume spike detection provides continuous secondary context, with statistical outlier bars marked regardless of trend state to identify exceptional participation events that may precede structural developments.
Alert generation covers bullish and bearish trend state transitions for systematic structural monitoring workflows.
Strategy Integration
Volumetric Trend Structure fits within structural trend-following and volume-informed directional approaches:
Structure-Confirmed Entries : Use drift line crossovers as trend initiation points where price has demonstrated sufficient strength to breach a structurally-derived boundary, rather than reacting to moving average crossovers with no pivot significance.
Active Band Pullback Framework : Use the active drift band as a pullback reference within established trends, monitoring volume histogram behavior at the band for participation evidence supporting continuation.
Volume Spike Context : Treat spike events occurring near the active drift band as elevated-significance participation readings. Spikes confirming the trend direction at the band suggest strong structural support or resistance.
Delta Mode Flow Analysis : In Delta color mode, monitor the directional gradient of histogram bars at the active band to assess whether volume at the structural boundary is predominantly buying or selling pressure.
Pivot Count Sensitivity Adjustment : Reduce the Pivots to Average count for instruments requiring faster structural adaptation. Increase for markets where drift stability across more pivots better reflects the dominant trend.
Multi-Timeframe Structural Alignment : Apply higher-timeframe drift line positions as directional context, confirming that lower-timeframe entries align with the broader structural trend defined by multi-pivot averaging.
Technical Implementation Details
Core Engine : Confirmed pivot high and low detection with configurable left-right bar requirement
Drift Construction : Rolling array averaging of recent confirmed pivots with configurable array depth
Trend Logic : Drift line crossover and crossunder state switching with active band reassignment
Volume Normalization : Standard deviation-based scoring over 200-bar rolling window with four standard deviation cap
Histogram Scaling : Range-derived step sizing using 200-bar average bar range for chart-adaptive bar heights
Color Engine : Three-mode volume coloring with gradient delta, uniform trend, and trend with spike override
Visualization : Band-anchored volume histogram, trend fill gradient, volume-intensity candle coloring, and signal labels
Performance Profile : Optimized for real-time execution with max_bars_back configuration supporting deep historical pivot detection
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday structural drift tracking with tighter pivot lengths for faster structural response
15 - 60 min : Session-level trend structure identification with balanced pivot and averaging settings
4H - Daily : Swing-level structural trend mapping with higher pivot counts for stable, well-defined drift lines
Suggested Baseline Configuration:
Pivot Length : 3
Pivots to Average : 4
Volume Size : 1.0
Volume Histogram : Enabled
Volume Color Mode : Trend + Spikes
Color Candles : Enabled (requires disabling original chart candles in chart settings)
Trend Fill : Enabled
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's structural characteristics, pivot frequency, and preferred trend sensitivity, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Too many trend flips : Increase Pivot Length to demand more structurally significant swing confirmations, reducing sensitivity to minor price swings that generate short-lived drift line crossovers.
Trend too slow to respond : Decrease Pivot Length toward 1 for faster pivot confirmation, or reduce Pivots to Average so fewer historical pivots influence the drift line position.
Drift lines too reactive : Increase Pivots to Average to smooth the drift calculation across more structural events, producing more stable trend boundaries that require more significant pivot shifts to move.
Drift lines too stable : Decrease Pivots to Average toward 2 for a more responsive drift that closely tracks the most recent structural swings rather than the broader pivot average.
Volume bars too large or too small : Adjust Volume Size to scale histogram height relative to the default range-derived step, adapting visibility to the instrument's typical price range and volatility.
Spike highlights too frequent : The spike threshold is fixed at four standard deviations and is not user-configurable. Select Trend color mode if spike highlighting creates excessive visual noise on a particular instrument.
Delta coloring unclear : Review whether close positioning within the bar range reliably reflects directional pressure on the target instrument before relying on Delta mode for flow analysis.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with clear swing structure where pivot highs and lows produce well-separated drift lines that provide unambiguous structural boundaries
Instruments with consistent volume patterns where standard deviation normalization accurately identifies statistically significant participation events
Structural pullback strategies monitoring price returns to the active drift band with volume confirmation
Markets where volume participation at swing pivots reliably reflects institutional activity and structural conviction
Reduced Effectiveness:
Choppy, trendless markets where frequent pivot formation causes rapid drift line convergence and repeated trend state flips without directional follow-through
Low-liquidity instruments where volume distribution is erratic and standard deviation normalization produces unreliable spike classifications
Markets with irregular pivot structure where swing confirmation requirements cause significant lag in structural boundary updates during fast-moving directional moves
Extremely compressed consolidation environments where upper and lower drift lines converge closely, reducing the structural differentiation required for reliable trend state assignment
News-driven or gap-heavy instruments where pivot confirmation mechanics miss the structural significance of impulsive moves that do not form clean swing geometry
Integration Guidelines
Confluence : Combine with BOSWaves momentum tools, order flow analysis, or exhaustion level mapping for structural and conviction-layer confluence
Active Band Respect : Monitor volume histogram behavior at the active drift band on each approach. Sustained low-volume retests suggest structural support, while high-volume penetration attempts warrant caution.
Pivot Count Awareness : Recognize that drift lines reflect the average of recent pivots rather than just the latest swing. Sharp structural moves may shift the drift line gradually as older pivots roll out of the averaging window.
Spike Utilization : Treat spike events as participation outliers deserving contextual analysis rather than automatic signals. Their directional significance depends on location relative to the active band and current trend state.
State Discipline : Maintain directional bias aligned with current trend state until the opposing drift line is breached. Short-term price excursions toward the inactive drift line within an established trend do not constitute state changes.
Disclaimer
Volumetric Trend Structure is a professional-grade pivot-derived trend and volume participation analysis tool. It uses confirmed swing pivot averaging with statistically normalized volume measurement but does not predict future price movements. Results depend on market conditions, instrument structural characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates momentum context, order flow analysis, and comprehensive risk management. Indicator

Adaptive Momentum Velocity Ribbon🔶 OVERVIEW
Risk management is the backbone of successful trading, but static trailing stops often fail to account for the "momentum" of a move. The Kinetic Trailing Stop & Targets is an adaptive volatility-based system designed to breathe with the market.
Unlike standard ATR trailing stops that move at a fixed distance, this indicator uses a "kinetic" engine. It calculates the relationship between price momentum and current volatility to determine how aggressively the stop should follow price. When momentum is high, the stop "tightens" to protect profits; during quiet periods, it expands to avoid being "stopped out" by minor noise.
🔶 THE KINETIC ENGINE: HOW IT WORKS
The indicator relies on a multi-layered calculation to determine the stop-loss placement:
Dynamic Volatility Ratio: The tool tracks the current ATR relative to its 50-bar high. This creates a "Volatility Ratio" that dictates the width of the buffer.
Momentum-Responsive Stepping: The stop doesn't just trail; it "steps." If the price makes a significant move (measured by a Momentum Score), the stop reacts kinetically, jumping closer to price to lock in gains.
The Guard Distance: To prevent the stop from becoming too tight and causing "premature exits," a minimum Guard Distance is maintained, ensuring price always has a statistically significant "air gap" to fluctuate within.
🔶 AUTOMATED TARGET MILESTONES
A standout feature of this tool is the Target Level System . The moment a trend flips (indicated by the diamond shapes), the indicator marks that price as the "Trend Origin."
Fixed Percentage Scaling: The indicator projects horizontal milestones (e.g., +2%, +4%, +6%) from the origin point.
Historical Milestone Logging: When price hits a target, a dashed line and label are permanently fixed to the chart, allowing you to see exactly where profit-taking opportunities occurred.
Active Target Tracking: The dashboard displays the next upcoming target and exactly what percentage "distance" remains until it is hit.
🔶 VISUAL FEATURES
Trend-Colored Candles: The entire chart's aesthetic shifts based on the trend. Bullish trends are painted in teal/green, while bearish trends shift to pink/red.
Flip Diamonds: High-visibility markers appear the moment a trend reversal is confirmed, signaling a shift in the stop-loss orientation.
Dynamic Cloud Fill: A gradient fill between the price and the stop line provides a visual representation of the "risk zone."
🔶 INDICATOR SETTINGS
ATR Smoothing Length: Adjusts the lookback for volatility. Longer lengths result in a smoother, slower-moving stop.
Sensitivity: Controls the "Kinetic" response. Higher sensitivity makes the stop jump more aggressively during momentum spikes.
Band Multiplier & Guard Distance: These two settings define the "outer" and "inner" limits of your stop-loss width.
Level Spacing (%): Set the distance between your target milestones (e.g., set to 1.0 for every 1% move).
🔶 TRADING UTILITY
Trend Following: Use the Kinetic Stop to ride long-term trends without getting shaken out by volatility spikes.
Scaling Out: Use the automated Target Levels as objective signals to scale out of a position (e.g., close 25% of the trade at each milestone).
Volatility Filter: By observing the distance between the price and the stop, you can visualize "volatility expansion"—if the gap is widening, the market is becoming more chaotic.
🔶 CONCLUSION
The Kinetic Trailing Stop & Targets is a professional-grade risk management suite. By combining momentum-aware trailing logic with fixed percentage targets, it provides traders with a clear, objective roadmap for both staying in a trade and knowing exactly when to exit. Indicator

Regression Deviation Channel [JOAT]Regression Deviation Channel
Introduction
The Regression Deviation Channel is an institutional-style statistical trend and execution framework built around segmented regression, deviation envelopes, premium/discount zoning, breakout qualification, and risk mapping. Instead of acting like a plain moving-average channel, it models price through a best-fit regression path, measures dispersion with RMSE, then classifies where price is trading inside that structure: discount, equilibrium, or premium.
This version is designed to feel more like a desk-grade directional map than a simple overlay. It combines a frozen regression segment, internal band hierarchy, confidence scoring, Supertrend stack alignment, breakout detection, and ATR-based trade mapping into one visual structure. The goal is not just to show where price is, but whether the current move is balanced, compressed, expanding, or resolving.
Why This Indicator Exists
Most channels are too simple. They show boundaries but do not explain what price is doing inside those boundaries. This indicator was built to solve that by combining:
Segmented Regression: Tracks the current directional price path with a proper best-fit slope
Deviation Architecture: Uses RMSE to define statistically meaningful channel width
Premium / Discount Zoning: Splits the channel into expensive, fair value, and cheap territory
Breakout Qualification: Scores breakout quality using slope, participation, structure, and location
Trend Stack Context: Adds Supertrend alignment to distinguish strong directional pressure from noise
Trade Mapping: Builds clean ATR-based stop and multi-target projections after confirmed breaks
The result is a regression channel that does more than draw lines. It gives context, bias, execution framing, and visual hierarchy.
Core Components Explained
1. Segmented Regression Engine
= f_ols(winLen)
basisVal = intercept + slope * float(barsInSeg - 1)
upperVal = basisVal + rmse * multiplier
lowerVal = basisVal - rmse * multiplier
The core engine uses manual ordinary least squares regression to calculate the channel basis. Once the segment matures, the regression values are frozen and projected forward until price resolves beyond the envelope.
This “freeze and resolve” behavior keeps the channel visually stable instead of constantly shifting every bar.
2. RMSE Deviation Structure
Root mean squared error defines channel width, making the envelope responsive to how tightly price is hugging the trend.
Tight RMSE = cleaner trend structure
Wide RMSE = unstable or volatile structure
Internal bands split the envelope into inner, quarter, and outer zones
These nested bands create a true structure ladder instead of a single upper/lower shell.
3. Premium / Discount Channel Arrays
The channel is separated into three value areas:
Premium: Upper edge territory where price is extended and expensive relative to the current regression path
Equilibrium: The center band around fair value and neutral orderflow balance
Discount: Lower edge territory where price is cheap relative to the active path
This makes the indicator more useful for directional context:
Bull channels pressing premium signal strong continuation pressure
Bear channels pressing discount signal strong downside control
Repeated failure to hold premium/discount can signal exhaustion or rebalancing
4. Breakout Confidence Model
Breakouts are not treated equally. The indicator scores breakout quality using four ingredients:
Participation: Distance from the regression basis normalized by ATR
Slope Force: Strength of the normalized regression slope
Location: Whether price is already pressing the outer structure
Alignment: Whether price direction and Supertrend stack agree with the channel
breakoutConfidence = participation + slopeForce + location + alignment
This helps separate lazy drifts from high-quality channel resolution.
5. Supertrend Ribbon Stack
The Supertrend layer is not there as a generic add-on. It acts as a second-order directional filter.
Bull channel + bull Supertrend = higher-quality directional stack
Bear channel + bear Supertrend = stronger downside stack
When regression and Supertrend disagree, price is more likely in transition
The fill between regression basis and Supertrend visually shows whether pressure is aligned or conflicted.
6. ATR Risk Map
After a confirmed breakout, the indicator projects:
1 ATR-based stop level
3 reward targets using configurable risk-reward multiples
Auto-expiring lines so stale trade maps are removed
This gives the channel direct execution value instead of leaving the user to manually measure every move.
Visual Elements
Metallic Basis Line: Gold-toned centerline for the active regression basis
Outer Deviation Shell: Main channel boundaries with glow
Inner Structure Bands: Internal ladder for pressure staging
Premium / Discount Fills: Separate upper and lower value zones inside the channel
Equilibrium Fill: Neutral fair-value region
Supertrend Ribbon: Context layer showing secondary directional alignment
Iridescent Candles: Candle coloring that intensifies as control and confidence improve
Breakout Markers: Compact signals for confirmed resolves
Readiness Diamonds: Pre-break alignment markers when channel conditions are strong
The visual hierarchy is designed so you can read the channel at a glance without relying on heavy objects or clutter.
Dashboard
The dashboard is intentionally compact and fixed to the right side. It shows only the highest-signal metrics:
Bias
Regime
Flow
Channel Position
Confidence
Compression
Trend Stack
Trade Map
How to Use This Indicator
Step 1: Identify Channel Bias
Check whether the regression slope is bullish or bearish. That defines the primary directional path.
Step 2: Read Value Location
See whether price is trading in premium, equilibrium, or discount. This tells you whether price is extended or balanced inside the channel.
Step 3: Watch Trend Stack Alignment
When Supertrend and regression agree, directional pressure is cleaner. When they disagree, reduce conviction.
Step 4: Monitor Confidence
Use the breakout confidence score to judge whether price is merely drifting or building a meaningful resolution.
Step 5: Trade the Resolve, Not the Noise
Use breakout markers and ATR map levels when price exits the frozen envelope with qualified pressure.
Best Practices
Use higher timeframes for cleaner channel geometry
Treat equilibrium as fair value, not a signal by itself
Bull channels work best when premium holds and pullbacks respect the inner bands
Bear channels work best when discount holds and rallies fail at internal structure
High compression followed by rising confidence often precedes expansion
Use the risk map for framing, not blind automation
Indicator Limitations
Regression is still a model of recent price, not a guarantee of future direction
Sudden event-driven moves can invalidate the frozen segment quickly
Premium and discount are relative to the current channel, not absolute market value
High breakout confidence can still fail in thin or news-driven markets
Short segments increase responsiveness but also increase noise
Technical Implementation
Built in Pine Script v6 using:
Manual OLS regression
RMSE deviation envelopes
Segment freeze-and-resolve logic
Internal quarter and inner bands
Premium/discount channel zoning
Supertrend stack integration
Breakout confidence scoring
ATR-based stop and target map
Compact institutional dashboard
Originality Statement
This indicator is original in how it treats a regression channel as a full market-state framework instead of a static overlay. The value is not just in plotting upper and lower lines, but in combining:
Segment freezing
Internal value zoning
Directional stack confirmation
Breakout qualification
Execution mapping
Each layer contributes different information: regression defines path, RMSE defines structure, premium/discount defines value, Supertrend defines stack, and confidence defines quality.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Regression channels, premium/discount zones, and breakout scores are analytical tools, not guarantees of market outcome. All trading decisions remain the responsibility of the user.
-Made with passion by officialjackofalltrades
Indicator

Breakout Retest Readiness [AGPro Series]Breakout Retest Readiness
🧠 Core Idea
Is the post-breakout retest being accepted with structure, or is the breakout losing quality at the risk edge?
📌 Overview / What it does
Breakout Retest Readiness is a chart-first planning tool built to evaluate what happens after a confirmed breakout and after price starts interacting with the retest pocket.
The script maps the broken structure level, builds a retest pocket around it, places a risk-edge shelf beyond the pocket, and projects a target-room guide for context. It then scores the active retest environment with a 0-100 Acceptance Score and displays a clear next-action state in the AG Pro panel.
This script does not predict continuation. It does not automate entries. It is designed to organize post-breakout retest context so traders can review acceptance, rejection, risk edge, and plan quality in a cleaner way.
🎯 Purpose & Design Philosophy
Most breakout tools focus on the moment price crosses a level. In practice, many useful decisions happen after the break, when price returns toward the broken level and either accepts it or fails around it.
This script was built for traders who want a structured retest planning layer rather than another basic breakout marker. It supports a patient workflow: wait for structure, observe the pocket, evaluate acceptance, and review risk before reacting.
The design philosophy is simple: the chart should answer what state the retest is in, how strong the acceptance context is, where risk is being tested, and what the next review step should be.
⚡ Why This Script Is Different
Most tools focus on detecting a breakout or grading the first retest as a standalone signal.
This script does NOT try to clone a classic break-retest quality grader, and it does not print simple buy or sell commands.
Instead, it works as a post-breakout readiness planner. It arms a retest pocket after a confirmed breakout, waits for price to interact with that pocket, evaluates acceptance versus rejection, tracks the risk edge, and keeps the next-action state visible in the panel.
The difference is the decision layer. The script is less about saying "a retest happened" and more about answering whether the active retest environment is constructive enough to keep reviewing.
⚙️ Methodology
1. Context Detection
The script identifies a confirmed break beyond recent structure using a prior high or prior low reference. The breakout must clear the structure by an ATR-normalized buffer so minor pokes are filtered.
2. Reference Mapping
After a valid break, the script stores the breakout line, builds a retest pocket around it, places an invalidation shelf beyond the broken level, and projects a target-room guide from the prior structure range.
3. Reaction Evaluation
When price interacts with the retest pocket, the script evaluates breakout quality, retest depth, wick rejection, volume change, and trend agreement. These components combine into a 0-100 Acceptance Score.
4. Visual Output
The chart shows the active retest pocket, breakout line, risk edge, target guide, compact event labels, and the AG Pro panel. The panel summarizes retest state, acceptance score, breakout quality, risk edge, and action.
🗺️ How to Read the Chart
Retest Pocket = the zone around the broken structure level where price is being evaluated after the breakout.
Breakout Line = the structure level that was crossed and now anchors the retest plan.
Risk Edge = the invalidation shelf beyond the retest pocket. It is a planning reference, not a stop recommendation.
Target Guide = a target-room marker projected from the prior range. It is context only, not a forecast.
Labels = compact state markers such as ARMED, TEST, ACCEPT, REJECT, RISK EDGE, or EXPIRE.
Colors = bullish retest plans use the AGPro teal tone, bearish plans use the AGPro pink tone, watch states use indigo or amber, and risk conditions use red.
Panel = the main decision interface showing retest state, acceptance score, breakout quality, risk edge, and next action.
🚦 Signals & States
• Breakout Armed → a breakout retest plan has been created after price cleared structure.
• Testing Pocket → price is interacting with the active retest pocket and acceptance is being evaluated.
• Accepted Retest → the retest has held the pocket with enough acceptance quality to deserve review.
• Rejected Retest → the retest has failed around the pocket and quality has weakened.
• Risk Edge Hit → price has moved beyond the mapped risk shelf.
• Expired → the retest window aged out before a constructive interaction.
🔔 Alerts Logic
Alerts are available for breakout plan arming, retest pocket interaction, accepted retest readiness, rejected retest or risk-edge pressure, and expired retest plans.
Each alert is an attention marker. Alerts do not represent trade instructions, guaranteed outcomes, or automated strategy decisions.
🧩 Confluence Logic
The strongest acceptance context appears when the breakout quality, retest depth, wick rejection, volume behavior, and trend agreement support the same side.
When these components align, the retest score improves. When the pocket is too deep, volume behavior is poor, trend context disagrees, or the risk edge is pressured, the readiness state weakens.
📊 When to Use
• After clean breakouts from recent structure
• During trend continuation review
• When price returns toward a broken level
• When the trader wants to separate constructive retests from weak post-break reactions
• On liquid symbols where structure, volume, and candle behavior are readable
⚠️ When NOT to Use
• Extremely low-liquidity instruments
• Highly noisy lower timeframes
• News-driven volatility spikes
• Markets with no clear structure reference
• Situations where the breakout level is too close to major external obstruction
🎛️ Key Inputs
• Breakout Structure Lookback → controls the prior structure reference used for breakout detection.
• Maximum Bars To Retest → controls how long the script waits for the retest pocket to matter.
• Sensitivity → adjusts how strict the breakout and acceptance model should be.
• Minimum Acceptance Score → defines the score needed before accepted readiness can appear.
• Retest Pocket Width ATR → controls the width of the post-breakout pocket.
• Invalidation Shelf ATR → controls the mapped risk-edge distance beyond the broken level.
• Target Guide Range Multiple → controls the forward target-room guide.
• Visual Settings → control pockets, lines, labels, label density, label size, and forward rendering.
• Panel Settings → control panel visibility, location, theme, and font size.
🖥️ Interface & Visual Design
The interface is built around a clean AG Pro panel and one main chart object family: the retest pocket.
The pocket label is centered inside the zone so the active state is visible without needing extra clutter. The breakout line, invalidation shelf, and target guide create a simple visual hierarchy: level, risk, and room.
Labels are intentionally compact and controlled by cooldown and maximum-visible settings so the chart remains active without becoming crowded.
🧪 Practical Usage Workflow
1. Read the panel state.
2. Locate the active retest pocket.
3. Check whether price is testing, accepting, rejecting, or pressing the risk edge.
4. Compare the Acceptance Score with the breakout quality.
5. Use the action row as a review prompt, not as an instruction.
🔍 Interpretation Guidelines
The Acceptance Score should be read as context quality, not certainty.
A higher score means the current retest has cleaner structural behavior under the script's rules. A lower score means the retest is less constructive, too deep, poorly supported, or not aligned with trend context.
The Risk Edge matters because a retest can look acceptable for a few bars and still lose structure if price pushes beyond the invalidation shelf. The panel keeps that condition visible.
🚫 What This Script Is NOT
This script is not a prediction engine.
This script is not financial advice.
This script is not an auto-trading system.
This script does not provide guaranteed signals.
This script is not a generic support and resistance map.
This script is not a clone of a first-retest grading tool.
⚠️ Limitations & Transparency
The script is rule-based and depends on the selected lookback, timeframe, and market structure.
Different symbols can produce different retest behavior. Lower timeframes may show more noise. Higher timeframes may produce fewer but stronger events.
Volatility changes can affect pocket size, risk-edge distance, and event frequency. Users should interpret every output within broader market context.
🧠 Market Context Notes
Breakout retests are most useful when structure is clear, liquidity is sufficient, and price has enough room to continue without immediate obstruction.
Volume behavior can add context, but volume data quality varies across markets. When volume is unreliable, the script treats that component more neutrally.
The retest pocket is not a guaranteed support or resistance zone. It is a structured review area around the broken level.
🧾 Use Case Examples
When price breaks above recent structure and later returns to the pocket with a controlled pullback, the script can mark the retest as Testing Pocket or Accepted Retest depending on score quality.
When price breaks below structure but quickly pushes back above the pocket and pressures the mapped risk edge, the script can mark rejection or risk-edge pressure.
When a breakout never returns to the pocket within the selected time window, the script can expire the plan instead of keeping old context alive.
🧱 System Philosophy
AGPro tools are designed to support structured chart reading. The goal is not to add more random signals, but to turn market behavior into clearer states, cleaner context, and better review discipline.
Breakout Retest Readiness follows that philosophy by turning a common post-breakout question into a visible planning workflow.
🔐 Non-Promise Statement
No script can confirm future price direction with certainty.
This tool organizes retest context. It does not promise continuation, reversal, profit, or accuracy.
📉 Risk Disclosure
Trading involves risk.
All outputs from this script are educational and analytical in nature.
Users are responsible for their own decisions, risk management, position sizing, and market interpretation.
This script does not provide financial advice.
📚 Educational Note
Use the script to study how breakouts behave after price returns to the broken level. The most useful insight is often not the breakout itself, but how the market reacts when the level is tested again.
Indicator

Indicator
