GC 08-02 ZonesGC 08-02 Zones — Gold Futures Round-Level Map
This indicator automatically maps out horizontal reaction zones around gold's round-number price levels — the "xx8 to xx2" bands that often act as short-term support/resistance on GC and MGC futures.
How it works
The script rounds the current price to the nearest $10 level and plots a series of shaded zones above and below it, each spanning from the round number +2 to −2 (e.g. a zone around $3350 would run from 3352 down to 3348). These bands are drawn symmetrically around price and automatically re-center as price moves, so you always have a consistent map of nearby round-number levels without manually drawing lines.
Features
Adjustable number of zones displayed above/below price (1–50)
Customizable zone fill color, border line color, style (solid/dashed/dotted), and width
Optional price labels on each zone boundary
Adjustable right-side offset and left-extension of lines
Built-in warning label if applied to a symbol other than GC/MGC
Why round numbers matter
Round price levels tend to attract order flow — stops, limit orders, and psychological decision points cluster around them. Having these zones pre-mapped can help with spotting potential reaction areas, planning entries/exits, or simply keeping round-number context visible without cluttering the chart with manual drawings.
Usage notes
This tool is designed specifically for gold futures (GC/MGC) given their $10 round-level structure. It is a visual reference only and does not generate buy/sell signals — always combine with your own strategy, market structure analysis, and risk management. Indicatore

Change in State of Delivery [CISD] (Zeiierman)█ Overview
Change in State of Delivery (Zeiierman) identifies genuine changes in buying and selling pressure by monitoring consecutive delivery candles and tracking when price closes beyond the opening price of the previous delivery phase.
Rather than relying solely on traditional market structure concepts such as Break of Structure (BoS) or Market Structure Shift (MSS), the indicator focuses on delivery itself, the sequence of aggressive buying or selling that drives price.
When price successfully closes beyond the opening price of the previous delivery leg, a Change in State of Delivery (CISD) is confirmed, highlighting a potential shift in market control.
⚪ True Delivery Engine
The indicator continuously tracks bullish and bearish delivery sequences. A delivery begins whenever consecutive candles close in the same direction.
Once a minimum number of delivery candles has formed, the indicator records:
• The opening price of the first delivery candle.
• The starting bar of the delivery sequence.
• The active delivery level.
Unlike many CISD implementations, this indicator is built around the actual delivery sequence instead of simply using arbitrary candle opens.
⚪ CISD Confirmation
A Change in State of Delivery is confirmed when price closes beyond the opening price of the previous delivery sequence.
Bullish CISD
• Bearish delivery completes.
• Price closes above the opening price of that bearish delivery.
Bearish CISD
• Bullish delivery completes.
• Price closes below the opening price of that bullish delivery.
⚪ Liquidity Sweep Detection
The indicator can optionally display liquidity sweeps around confirmed swing highs and swing lows.
A bearish liquidity sweep occurs when:
• Price trades above a previous swing high.
• Price closes back below the swing high.
A bullish liquidity sweep occurs when:
• Price trades below a previous swing low.
• Price closes back above the swing low.
⚪ Market Structure Shift (MSS)
For additional confirmation, the indicator can display simple Market Structure Shift events.
Bullish MSS
• Price closes above the most recent confirmed swing high.
Bearish MSS
• Price closes below the most recent confirmed swing low.
█ How It Works
⚪ Delivery Detection
The script continuously counts consecutive bullish and bearish candles.
Once the minimum delivery requirement is reached, the opening price of the delivery sequence becomes the active CISD level.
This level represents the point where the current buying or selling pressure originally began.
if bull
bullSeq := bull ? bullSeq + 1 : 1
if bullSeq == 1
bullDeliveryOpen := open
if bear
bearSeq := bear ? bearSeq + 1 : 1
if bearSeq == 1
bearDeliveryOpen := open
⚪ CISD Validation
The delivery level remains active until one of two events occurs:
• Price confirms the CISD by closing beyond the delivery open.
• The setup expires after the maximum user-defined validity period.
Confirmed CISDs remain visible, while expired setups are automatically removed.
⚪ Dynamic Trend State
Each confirmed CISD updates the internal trend state.
This trend can optionally be used to:
• Color candles.
• Visually distinguish bullish and bearish market conditions.
• Generate trend shift alerts.
Repeated confirmations in the same direction are displayed using dashed CISD levels, making ongoing directional control easier to recognize.
█ How to Use
⚪ Identify Delivery Shifts
The primary purpose of the indicator is to detect when one side of the market successfully overcomes the previous delivery phase.
A bullish CISD shows that buyers have reclaimed control after a bearish delivery sequence. A bearish CISD shows that sellers have reclaimed control after a bullish delivery sequence.
Instead of reacting to every structural break, traders can use confirmed CISD levels to focus on cleaner shifts in market pressure.
⚪ Solid vs Dashed CISD Levels
Not all confirmed CISD levels are displayed the same way.
Solid CISD lines represent a new change in delivery, where market control shifts from buyers to sellers or from sellers to buyers. These are often the most significant signals, as they indicate a potential trend reversal or the beginning of a new directional move.
Dashed CISD lines occur when another CISD confirms in the same direction as the current trend. Instead of signaling a reversal, they indicate that the existing trend continues to regain control after a pullback.
In practice:
• Solid CISD → Potential change in directional control.
• Dashed CISD → Trend continuation after a correction or retracement.
This visual distinction helps traders quickly identify whether a CISD represents a fresh shift in market control or simply reinforces the current trend.
█ Settings
Show CISD: Displays active and confirmed CISD levels.
Minimum Delivery Candles: Minimum number of consecutive candles required before a delivery sequence becomes valid.
Maximum CISD Validity: Maximum number of bars a setup can remain active before expiring.
Minimum CISD Duration: Minimum number of bars before a CISD is allowed to confirm.
Show Liquidity Sweeps: Displays bullish and bearish liquidity sweep levels.
Sweep Swing Length: Controls the swing detection used for identifying liquidity sweeps.
Show MSS Dots: Displays Market Structure Shift confirmations.
MSS Length: Controls the pivot length used for structure detection.
Color Candles by CISD Trend: Colors candles using the latest confirmed CISD direction.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicatore

Viprasol Liquidity Trail Matrix with Signal TargetOverview
The Viprasol Liquidity Trail Matrix with Signal Target is a trend-following signal engine that combines a volatility-adaptive trailing "liquidity" band structure with a Cardwell-style RSI regime filter, then turns confirmed pullback-and-continuation events into fully managed trade plans — entry, stop, three scaled targets, break-even logic, and an honest performance read-out. It is built for discretionary traders who want a single tool that answers three questions at once: what is the trend, is momentum backing it, and if a signal fires, exactly where are my entry, stop and targets.
This is an open-source, credited derivative. See the Credits & Originality section at the end — the trailing-matrix and Cardwell-RSI concepts are adapted from prior open-source work under CC BY-NC, with substantial original additions layered on top.
How It Works
Step 1 — Liquidity Trail Matrix (adapted)
A volatility trailing stop (ATR-scaled) defines the active trend and flips only when price closes decisively through it. Around that trailing line the script projects a ladder of "liquidity bands" spaced in ATR units, forming the retest zone price tends to revisit before continuation. In an uptrend the bands sit below price as stacked support; in a downtrend, above price as resistance. Because the spacing is ATR-based, the whole structure widens in volatile conditions and tightens in quiet ones.
Step 2 — Cardwell RSI Regime (adapted)
RSI is classified into a directional regime using Andrew Cardwell's range-rules principle: in a healthy uptrend RSI holds its 40-80 band, in a downtrend it works the 20-60 band. The regime flips bull when RSI thrusts through the upper trigger and bear when it breaks the lower trigger, holding state in between. Signals are only allowed in agreement with the regime, so the momentum context must confirm the trend before anything fires.
Step 3 — Confluence gating (adapted + new)
Before a signal is eligible it must pass a confluence gate: trend agreement, RSI regime agreement, an ADX minimum (chop filter), and an optional higher-timeframe bias pulled non-repainting (previous HTF bar, lookahead off). A minimum confluence score suppresses low-quality setups.
Step 4 — Retest entry + Signal Target (adapted)
When the confluence conditions hold and price pulls back into the band zone then closes back in the trend direction, a signal fires on the confirmed bar. The engine sets a structural stop, then projects TP1/TP2/TP3 as R-multiples of that risk and draws them on the chart with price and percent labels. Break-even logic moves the stop to entry after TP1.
Step 5 — Honest trade management + statistics (new)
Original additions in this release:
- One-trade-at-a-time engine: a trend flip no longer force-closes a trade. A position runs to its stop or final target, and a new entry only opens once the previous one is fully resolved. A reversal toggle restores the old flip-reversal behaviour if preferred.
- Max-bars-in-trade timeout so a lingering position cannot block the engine indefinitely.
- Hide-on-hit targets: each target line and label is removed the instant it is touched, keeping the chart clean.
- Staggered target labels so ENTRY/SL/TP1/TP2/TP3 never overlap.
- Session filter and post-stop cooldown (both optional, off by default).
- Honest performance panel: Avg R and Profit Factor computed on a transparent one-third-scale-out model, plus Max Drawdown in R and best/worst streak — so the win-rate (which counts a trade a win once TP1 is touched) is read alongside true expectancy.
- Suggested position size from an account-size and risk-percent input.
Non-repainting: trend, structure, signals and targets confirm at bar close; higher-timeframe data uses lookahead off on the previous bar.
Key Features
- Volatility-adaptive trailing liquidity-band matrix
- Cardwell RSI regime filter
- ADX chop filter + optional non-repainting HTF bias
- Range-distributed volume profile (POC / Value Area / low-volume nodes)
- Retest-continuation signals with confluence scoring
- Entry / SL / TP1-TP2-TP3 with R-multiple targets, break-even and hide-on-hit visuals
- One-trade-at-a-time management with optional reversal, timeout, session filter and post-stop cooldown
- Honest stats: win rate, Avg R, Profit Factor, Max Drawdown (R), streak, suggested size
- Multi-section dashboard, trend-tint candles, and a full alert suite with optional webhook JSON
How to Use
1. Add to any liquid symbol and timeframe. Confirm the dashboard reads a clear trend and RSI regime.
2. Wait for a LONG/SHORT marker — it only fires on a confirmed retest that passed the confluence gate. The number on the marker is the confluence score.
3. Trade the drawn plan: entry, stop, and TP1/TP2/TP3. The dashboard mirrors the live levels and, once trades close, shows Avg R / Profit Factor / Max DD so you can judge the edge honestly.
4. Tune selectivity with ADX Minimum and Min Score; tune trade behaviour with the reversal, timeout, session and cooldown settings.
Settings
- Trend Engine: ATR length, trail factor, band count and spacing
- Signals: min score, retest window, cooldown, integration mode, reversal toggle, session filter, post-SL cooldown
- RSI Regime: length, bull/bear triggers, confirm bars, integration mode
- Risk Management: SL mode, break-even, max bars in trade, account size, risk %
- Signal Targets: R-multiples for TP1/TP2/TP3
- Volume Profile / HTF / Dashboard / Colors: display and behaviour toggles, all with tooltips
Alerts
Dynamic alerts (ticker, timeframe, price, score, levels, RSI, regime) for: Long entry, Short entry, TP1/TP2/TP3 hit, break-even, stop-out, reversal, trend flips, and regime shift. Entry alerts can emit webhook-ready JSON.
Limitations & Disclaimer
This is an analysis and trade-planning tool, not a promise of profit. The built-in statistics are a session-level model (they reset on chart reload), assume idealised fills with no slippage or commission, and use a one-third-scale-out assumption for Avg R — real results differ. Signals confirm at bar close and do not repaint historically, but the still-forming bar is provisional until it closes. No indicator predicts the future; always combine with your own risk management. Nothing here is financial advice.
Credits & Originality (CC BY-NC 4.0)
This script adapts and builds upon prior open-source work and is published open-source, free, for non-commercial use, with attribution as required by the licence:
- "Liquidity Trail Matrix" by WillyAlgoTrader — the trailing liquidity-band structure concept.
- "Cardwell Range Analyze" by MarkitTick — the Cardwell RSI range-regime concept.
Changes made by Viprasol (this version): combined the two engines into one workflow and added the confluence gate, non-repainting HTF bias, range-distributed volume profile, R-multiple Signal Targets with break-even and hide-on-hit visuals, one-trade-at-a-time management with reversal toggle / max-bars timeout / session filter / post-stop cooldown, the honest statistics panel (Avg R, Profit Factor, Max Drawdown R, streak) and suggested position size, plus the multi-section dashboard and dynamic/webhook alerts.
Licence: Creative Commons Attribution-NonCommercial 4.0 (creativecommons.org). Educational, non-commercial use only. Not financial advice.
Indicatore

[ A L P H A X ] RELAY - Pattern Relay EngineAlphaX RELAY — Pattern Relay Engine: Formation → Armed → Fired Lifecycle System, Pre-Breakout Detection, Completion Scoring, Volume Coil Confirmation & Real-Time Phase Intelligence
AlphaX RELAY is a professional-grade chart pattern anticipation system built around a fundamentally different concept from every other pattern indicator — including its companion AlphaX FORGE. Where FORGE detects patterns after breakout confirmation and fires entry signals on completed formations, RELAY tracks patterns throughout their entire development lifecycle , scoring their completion percentage in real time and alerting you before the breakout occurs. The RELAY framework divides every pattern's life into three sequential phases — FORMING, ARMED, and FIRED — and updates the phase designation on every bar as price evolves within the formation. When a pattern enters the ARMED zone (price approaching the neckline or boundary within ATR tolerance), RELAY alerts you to prepare. When the breakout fires, the full entry framework activates with computed entry, stop, TP1, and TP2 levels alongside a JSON alert. The result is a system that gives you advance warning of high-probability breakouts rather than reactive confirmation — designed for traders who want to be positioned before the crowd, across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 The RELAY Philosophy — Anticipation Over Confirmation
Every significant chart pattern begins forming bars or hours before the breakout. A Double Top starts when the second peak forms near the first — at that moment, a skilled technical trader begins watching the neckline. A Head & Shoulders is identifiable from the moment the right shoulder begins forming — before price has reached the neckline. A Bull Flag is established from the moment the pole terminates and consolidation begins.
Most pattern indicators wait until the breakout is confirmed — at which point the pattern is already complete, the first wave of breakout traders has already entered, and the entry price is often significantly beyond the pattern boundary. RELAY inverts this model. By continuously scanning for pattern geometries as they form , scoring their completion, and communicating their phase state in real time, RELAY gives traders the ability to:
Identify patterns well before breakout — watching them develop in real time on the chart
Receive an ARMED alert when price approaches the trigger level — preparing limit orders or monitoring for the candle close
Enter on the FIRED event with a pre-planned trade, not a reactive chase
Track completion percentage continuously — knowing whether a formation is 65% complete or 95% complete changes the urgency of preparation
This anticipatory framework is the core intellectual contribution of RELAY to the AlphaX suite, and it is what distinguishes it from FORGE — two systems covering the same pattern types from opposite temporal perspectives.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 The Three-Phase Lifecycle — FORMING → ARMED → FIRED
Every pattern in RELAY exists in exactly one of three states at any moment. The phase is computed on every bar and displayed prominently on both the chart label and the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 1 — FORMING (Purple)
The pattern geometry has been confirmed — the pivots are in the correct structural relationship and the formation is identifiable. However, price has not yet approached the neckline or boundary level closely enough to be considered imminently actionable.
What FORMING means: The pattern exists and is valid. Completion percentage is typically 60–80% in this phase. The formation box is drawn on the chart in purple. The neckline or boundary is plotted as a solid purple line. The dashboard shows the pattern name, FORMING phase, and the current completion percentage.
How to use FORMING: Plan your trade. Note the neckline level. Calculate where your entry, stop, and targets will be if the pattern fires. Set a price alert at the ARMED zone boundary so you are notified when price begins approaching the trigger level. Do not enter yet.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 2 — ARMED (Orange)
Price has approached the neckline or boundary to within the configurable ATR tolerance (default: 0.35× ATR). The pattern is in its final stage of formation before the breakout. The trigger is imminent.
What ARMED means: Price is close enough to the neckline that the next 1–5 bars will likely determine whether the pattern fires or fails. Completion percentage typically reaches 85–100% in this phase. The formation box and neckline shift to orange. The dashboard phase row turns orange. An ARMED alert fires.
How to use ARMED: This is your active preparation signal. If you are trading with limit orders, now is the time to place a limit order at the neckline level. If you prefer market orders on breakout, watch the chart closely for the closing candle confirmation. Review the confluence score — if it is at or above the minimum, the ARMED setup is worth your full attention.
ARMED alert: Separate alert conditions fire for ARMED Long and ARMED Short, allowing you to set up targeted notifications for the direction you want to trade. The ARMED alert is the pre-breakout awareness signal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phase 3 — FIRED (Yellow-Green / Red)
Price has closed beyond the neckline or boundary by more than the configured break margin (default: 0.6× ATR). The pattern has completed and the entry framework activates. Completion is 100%.
What FIRED means: The breakout is confirmed by bar close. The formation box and neckline shift to the directional color — yellow-green for bull patterns, red for bear patterns. Entry, SL, TP1, and TP2 lines are drawn on the chart extending 40 bars forward. All four levels are labeled with exact prices. The TP2 label also shows the computed R:R. A FIRED alert fires with a full JSON payload.
How to use FIRED: Enter on the next bar's open at or near the entry level shown on the chart. Place the stop at the SL level. Scale out 50% (default) at TP1. Let the remainder run to TP2 or trail with a stop.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Formation Completion Scoring — The Pattern Health Metric
The completion percentage is a pattern-specific quantitative score that measures how far along the formation has progressed toward its breakout. Unlike a simple binary detection, the completion score gives you continuous awareness of pattern health.
How completion is computed:
Each pattern type starts with a base completion score that reflects the geometric confirmation of the core structure:
Double Top / Bottom base: 70% — the two-pivot structure is confirmed
Head & Shoulders / Inv H&S base: 65% — the three-pivot structure with neckline is confirmed
Triangles base: 60–75% — converging trendlines with sufficient base height
Flags / Pennants base: 62% — pole plus parallel or converging consolidation confirmed
Wedges base: 58–78% — converging wedge with correct slope relationship
Additional completion points are awarded for:
+15 points — price is on the correct side of the neckline (below the neckline for Double Tops, above for Double Bottoms)
+15–20 points — price is within the ARMED zone (within ATR tolerance of the neckline or boundary)
Maximum possible completion before breakout is 100%. FIRED state also shows 100% on the dashboard.
Minimum formation threshold: Patterns below the configured minimum completion percentage (default: 55%) are not displayed. This prevents very early, nascent patterns with insufficient structural confirmation from cluttering the chart. Raising this threshold (e.g., to 70%) shows only well-developed formations where the pattern geometry is fully confirmed and price is approaching the trigger.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Pattern Detection — Five Formation Types
RELAY continuously scans for five pattern families in real time, computing their phase and completion on every bar.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Double Top / Double Bottom
Two pivot highs at approximately the same level separated by a pullback low (Double Top), or two pivot lows at approximately the same level separated by a recovery high (Double Bottom). The neckline is the intervening low (Double Top) or high (Double Bottom).
Phase transitions:
FORMING — geometry confirmed, price not yet near neckline
ARMED — price within 0.35× ATR of the neckline
FIRED — price closes below neckline by 0.6× ATR (Double Top) or above by 0.6× ATR (Double Bottom)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Head & Shoulders / Inverted H&S
Three-peak structure with a dominant central peak (head) flanked by two lower peaks (shoulders) at approximately equal heights, connected by a potentially sloped neckline through the two intervening lows. The Inverted H&S is the mirror pattern with a dominant central trough.
The neckline for H&S patterns is computed as a projected line through the two neckline pivot points, evaluated at the current bar — producing a dynamically sloped neckline that accurately reflects the true pattern boundary at any point in time.
Phase transitions follow the same ATR-based FORMING → ARMED → FIRED logic, with the ARMED zone assessed against the sloped neckline projection.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Triangles — Ascending, Descending, Symmetrical
Converging trendlines formed by a falling or flat upper trendline and a rising or flat lower trendline. The three variants are distinguished by slope:
Ascending Triangle — upper trendline near flat, lower trendline rising. Bull breakout expected
Descending Triangle — lower trendline near flat, upper trendline falling. Bear breakout expected
Symmetrical Triangle — both trendlines converging, neither flat. Can break either direction; RELAY tracks the direction of the actual breakout
The ARMED zone is computed relative to the projected upper (bull) or lower (bear) trendline at the current bar. Completion receives a bonus for larger triangle base heights (more than 2× ATR adds 15 points vs 5 points for smaller bases).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Flags and Pennants
A sharp pole move followed by a consolidation with parallel downward-sloping trendlines (Bull Flag / Pennant) or parallel upward-sloping trendlines (Bear Flag / Pennant). The pole size must be at least 2.5× ATR to qualify as a genuine pole rather than normal price movement.
The upper trendline for Bull Flags and the lower trendline for Bear Flags are the breakout boundaries. The ARMED zone is assessed against the projected trendline level at the current bar. The target is the breakout level plus the full pole distance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Rising and Falling Wedges
Converging patterns where both trendlines slope in the same direction but the lower trendline has a more extreme slope than the upper (Rising Wedge — bearish) or the upper trendline has a more extreme slope than the lower (Falling Wedge — bullish). The slope relationship distinguishes wedges from flags (which are parallel) and triangles (where lines converge to a point rather than widening).
Completion bonus is proportional to the wedge width in ATR multiples — wider wedges with more price range between the trendlines score higher completion. The target is the high of the wedge origin (Falling Wedge) or the low (Rising Wedge) — the structural measurement move.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏅 The 10-Point Quality Scoring System
Every active pattern is scored through a 10-point confluence system. Only patterns meeting the minimum score threshold (default: 5) are displayed, and the quality-ranked selection algorithm picks the highest-scoring pattern when multiple formations are active simultaneously.
Score components:
Formation Completion (up to 2 points):
Completion at 85% or above scores 2 points. Completion above the configured minimum scores 1 point. This ensures well-developed patterns score higher than nascent formations.
HTF Bias Alignment (up to 2 points):
Bull pattern with bull HTF, or bear pattern with bear HTF, scores 2 points. When HTF is disabled, 1 neutral point is awarded. Counter-HTF patterns score 0. The HTF filter can be set as a hard block on FIRED patterns — preventing counter-HTF breakout alerts even if the pattern is technically valid.
Non-Chop Market (1 point):
Choppiness Index below the threshold. Also enforced as a hard gate — extreme chop blocks all patterns from displaying.
Pattern Phase (up to 2 points):
FIRED scores 2 points, ARMED scores 1 point, FORMING scores 0. This weighting ensures that more advanced phases naturally score higher in the quality ranking — a FIRED pattern will nearly always outscore a FORMING pattern in the selection algorithm.
Volume Coil Before Break (1 point):
Current volume is below the configured fraction of the volume moving average (default: 0.85×). A drying volume condition approaching the neckline is the classic pre-breakout behavior — the market is consolidating on declining interest before the explosive release. This layer rewards patterns where this institutional behavior is present.
R:R at Minimum (1 point):
The computed R:R between entry and TP2 meets or exceeds the minimum (default: 1.5). Ensures only patterns with adequate measured moves relative to their stop are displayed.
Pattern Size (1 point):
The pattern height or target distance meets or exceeds 1.5× ATR. Filters micro-patterns with trivial measured moves.
Selection algorithm:
When multiple patterns qualify simultaneously, RELAY uses a composite ranking that combines the confluence score, completion percentage (weighted at 0.05 per percent), and phase bonus (FIRED: +3, ARMED: +2, FORMING: +0). This ensures that a FIRED pattern with good confluence almost always outranks a FORMING pattern, while also rewarding high-completion ARMED patterns over low-completion FORMING patterns of equal confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Formation Box and Neckline Visualization
Every active pattern is rendered with two core visual elements:
Formation Box:
A rectangle spanning the pattern's horizontal range (from the start bar to the current bar) and vertical range (from the neckline to the opposite extreme of the pattern — the tops for bear patterns, the bottoms for bull patterns). The box color reflects the current phase: purple for FORMING, orange for ARMED, yellow-green or red for FIRED. The fill opacity is moderate (88%) — present enough to identify the pattern zone without obscuring price action behind it.
Neckline / Boundary:
A solid line at the critical breakout level, extending 20 bars beyond the current bar. For patterns with flat necklines (Double Tops, Rectangles), this is a horizontal line. For Head & Shoulders with sloped necklines, the line reflects the slope. The neckline color matches the phase color — shifting through purple, orange, and the directional color as the phase advances.
Phase Label:
A label at the right edge of the formation showing the pattern name, current phase, and completion percentage. Positioned above price for bear patterns, below for bull patterns. The label color matches the phase.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 13-row real-time dashboard displays the complete state of the current highest-scoring pattern.
RELAY STATE
Pattern — the name of the current pattern: Double Top, Head & Shoulders, Asc Triangle, Bull Flag, Falling Wedge, etc. Color-coded yellow-green for bull, red for bear
Phase — FORMING (purple), ARMED (orange), or FIRED (yellow-green/red). The most critical single row in the entire dashboard
Formation — the live completion percentage. Orange when below 80%, yellow-green when above 80%
Neckline — the exact price of the current neckline or boundary level in real time
LEVELS (FIRED)
Entry — the computed entry price (current bar's open at FIRED). Shows — when pattern is still FORMING or ARMED
TP1 / TP2 — both take-profit targets displayed as a price pair
Stop — the computed stop loss level
QUALITY
Confluence — the pattern's score out of 10. Yellow-green when at or above the minimum threshold
HTF · Chop — HTF bias (▲ BULL, ▼ BEAR, FLAT) and live Choppiness Index displayed on a single row. Orange CI indicates the chop gate is near or active
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Formation Box (FORMING — purple) — the developing pattern's price range from start to current bar, purple-tinted
Formation Box (ARMED — orange) — box shifts to orange when price enters the ARMED zone. This color change on the chart is itself an alert
Formation Box (FIRED — yellow-green / red) — pattern complete, box color reflects direction
Neckline Line (solid, phase color) — the critical breakout level extending 20 bars forward
Phase Label — pattern name, phase text, and completion percentage. Positioned at the right edge of the formation
Entry Line (yellow-green dashed) — FIRED phase only, with "ENTRY x.xxxx" label
SL Line (red dashed) — FIRED phase only, with "SL x.xxxx" label
TP1 Line (lime dotted) — FIRED phase only, with "TP1 x.xxxx" label
TP2 Line (bright yellow-green dashed, width 2) — FIRED phase only, with "TP2 x.xxxx · R:R x.xx" label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📡 JSON Alert System
RELAY fires a structured JSON alert on every FIRED event, delivering complete trade parameters to webhook receivers.
FIRED JSON structure: Indicatore

ATR Trailing Stop Strategy with EMA Trend FilterMost stop-loss approaches treat risk as a fixed number, a percentage, a dollar amount, a set number of points. The problem with fixed stops is that they ignore the market's actual behavior at any given moment. A 1% stop that makes sense in a low-volatility environment will get hit constantly in a high-volatility one. A wide fixed stop that survives a volatile period is needlessly large when the market quiets down.
ATR-based trailing stops solve this by scaling the stop distance to what the market is actually doing right now. ATR measures average true range, the average distance price moves per bar over a given period, including gaps. When volatility expands, the stop widens to give the trade room to breathe. When volatility contracts, the stop tightens to protect more of the open profit. The stop follows price as it moves in the trade's direction and never moves backward — only trailing further in the profitable direction or holding its level until price reverses through it and the trade closes.
The EMA filter is added for one specific reason: trailing stop systems are naturally reactive rather than predictive, which means without a trend filter they will generate signals in both directions during choppy, range-bound conditions. The 200 EMA acts as a simple regime gate.
Long trades are only considered when price is above the 200 EMA, broadly in an uptrend. Short trades are only considered when price is below it. This doesn't eliminate losing trades, but it meaningfully reduces the number of counter-trend entries that trail stop systems would otherwise generate in oscillating markets.
How the trailing stop works:
On each bar, the strategy calculates a long stop level at close - (ATR × multiplier) and a short stop level at close + (ATR × multiplier). When price is in an uptrend, the long stop ratchets upward with price but never moves down, it holds its highest reached level until price closes below it, at which point the trend flips to bearish and the stop becomes a downward-trailing short stop. The opposite applies in a downtrend. A trend flip from bearish to bullish generates a long entry signal if price is above the 200 EMA. A flip from bullish to bearish generates a short entry signal if price is below the 200 EMA.
Parameters worth adjusting:
The ATR multiplier controls the sensitivity of the trailing stop. A lower multiplier (1.5x or below) produces a tighter stop that flips trend direction more frequently, useful on lower timeframes where you want faster reaction but will generate more signals. A higher multiplier (2.5x or above) produces a wider stop that flips less often, better suited for higher timeframes where you want to stay in a trend longer and can tolerate larger drawdowns on individual trades before exit. The ATR length controls how many bars the average is computed over. Shorter lengths react faster to recent volatility changes; longer lengths smooth out volatility spikes.
The EMA length can be adjusted depending on your timeframe. 200 periods is the standard for daily charts. On a 4-hour chart, 100 to 150 periods covers a similar calendar range. On a 1-hour chart, 50 to 100 periods is reasonable. The goal is for the EMA to represent the dominant trend, not a short-term moving average that whipsaws with every swing.
What this is not:
This strategy does not predict market direction. It reacts to price behavior and exits when price reverses by a defined volatility-adjusted distance. It will produce losing trades, every trailing stop system does, and sequences of losses in choppy conditions are expected behavior, not a flaw. The expectation is that winning trades capture significantly more than they risk because the stop trails and locks in profit, while losing trades are cut at a defined ATR-based distance.
Evaluate this on your own instruments and timeframes with realistic backtest conditions before drawing any conclusions about expected performance.
Shared for educational purposes. This is not investment advice. Always backtest thoroughly and size positions according to your own risk tolerance. Strategia

Indicatore

Indicatore

Reaction Based Support and Resistance Zones## Overview
Reaction Based Support and Resistance Zones is a visual price-action study tool for reaction-based horizontal zones and local reaction levels.
The script is designed to show where price has recently reacted, how those reactions are grouped into zones, and how the same reaction context can be studied both in the current live chart and in historical visible-range views.
It does not generate trading signals. It does not provide entries, exits, targets, stops, position sizing, win rate, or performance claims.
## What it shows
This script can display:
- Live reaction zones based on confirmed pivot reactions.
- Support-like, resistance-like, mixed, and inactive reaction roles.
- Touch count, freshness, ATR-normalized reaction strength, width penalty, and a visual zone score.
- Visible Range Research context for historical chart study.
- Local Window Levels across the visible historical window.
- A compact dashboard with neutral context information.
- Neutral live alerts for confirmed reaction-zone events.
The displayed zones and local levels are historical reaction context. They are not predictions.
## Context modes
The script includes three context modes:
### Live
Live context shows the current reaction-zone state at the latest bars. This is the normal current-chart view. Live context can extend active zones to the right for readability.
Live is the only context that can trigger alerts.
### Visible Range Research
Visible Range Research reconstructs the reaction context as it existed at the right edge of the currently visible chart range.
This mode is intended for historical visual study. When the user scrolls or zooms the chart, the research view recalculates for that visible range.
Visible Range Research does not trigger alerts.
### Auto Hybrid
Auto Hybrid is the default mode.
When the latest bars are visible, the script uses Live context. When the chart is scrolled back into historical data, the script switches to Visible Range Research.
## How it works
The script uses confirmed pivot highs and confirmed pivot lows as reaction events.
A support-like reaction is based on a confirmed pivot low. A resistance-like reaction is based on a confirmed pivot high.
Nearby reactions are clustered into reaction zones. Each zone stores information such as:
- center price
- zone width
- first and last reaction
- touch count
- support-like and resistance-like reaction counts
- average and maximum reaction strength
- invalidation state
- visual quality information
Zones are scored using a configurable combination of touch count, freshness, ATR-normalized reaction strength, width penalty, quality information, and invalidation state.
Only confirmed pivots are used. Unconfirmed pivot points are not displayed.
## Local Window Levels
Visible Range Research includes a local-window layer built directly from confirmed pivot reactions.
Local Window Levels are independent from the right-edge context zones. This means smaller reactions on the left, center, or right side of the visible historical chart can remain visible even if they later become part of a broader context zone.
Local Window Levels can:
- appear on the left, center, or right side of the visible chart
- start and end inside the visible window
- continue from the visible left edge if they already existed at that point
- end before the visible right edge
- show smaller historical reaction areas that may not be obvious from broader zones alone
This behavior is intentional. The local layer is for historical visual study, not for prediction.
## Local detection quality
The local layer includes quality controls for confirmed pivot reactions.
Balanced Quality is the default profile. It is designed to reduce obvious noise while still keeping useful local reaction context visible.
Exploratory shows more local reactions for broader visual study.
Strict and Very Strict reduce the number of local levels by requiring stronger reaction quality.
Local reaction quality can consider:
- ATR-normalized reaction distance
- wick or close-away validation
- local pivot prominence
- same-swing duplicate suppression
- short-term local clustering
Line density is controlled before a local level is confirmed. Confirmed local levels are not hidden merely for visual clarity in the rendering stage unless a hard object limit or explicit user setting applies.
## Historical visual study
In Visible Range Research, local levels are drawn relative to the currently visible chart window.
A local level does not need to extend to the visible right edge.
Short lines, mid-window lines, and lines that end before the right side of the chart are normal. They show where local reaction areas existed during that historical view.
This mode helps users study how reaction areas formed, continued, changed, or stopped being relevant across past market structure.
## Dashboard
The dashboard provides compact context information, including:
- current view context
- active zone count
- nearest lower reaction zone
- nearest upper reaction zone
- highest zone score
- last confirmed reaction age
- detection status
The dashboard uses neutral wording. It does not recommend any trading action.
Dashboard text size, backdrop strength, position, and right-side spacing are adjustable for readability near the price scale.
## Alerts
Alerts are live-context event notifications only.
Available alert events include:
- New reaction zone confirmed
- Existing reaction zone updated
- Price touched an active reaction zone
- Reaction zone became inactive
- Reaction zone reactivated after a confirmed reaction
Visible Range Research rendering does not trigger alerts.
## How to use it
Use this script as a visual context tool for price areas where confirmed historical reactions have occurred.
Possible study uses include:
- observing recent reaction zones in Live context
- reviewing how reaction areas formed in past visible chart windows
- comparing broader reaction zones with smaller Local Window Levels
- adjusting detection quality profiles to fit the symbol and timeframe
- keeping the chart clean while still preserving reaction context
The default settings are starting points, not optimized settings.
## Limitations
Reaction zones and local levels are historical context, not forecasts.
A reaction area can stop reacting at any time.
Pivot-based events appear only after confirmation, so there is a natural confirmation delay.
Visible Range Research recalculates when the chart is scrolled or zoomed.
Lower timeframes and highly volatile symbols can produce more local levels.
Strict settings may remove useful reactions. Exploratory settings may show more lines.
This is a visual study tool, not a strategy or backtest engine.
## Non-repaint explanation
The script uses confirmed pivot highs and confirmed pivot lows only.
A pivot reaction is processed only after the required pivot-right confirmation bars have passed.
Unconfirmed pivots are not displayed.
The script does not use request.security() with lookahead.
Visible Range Research reconstructs the reaction context using only the information available up to the visible right edge.
Scores and visual states can update as new confirmed bars become available, but this is based on confirmed historical data and does not use future data relative to the active context.
## What this script does not do
This script does not generate trading signals.
It does not provide entries, exits, targets, stops, position sizing, win rate, or performance claims.
It does not predict future price movement.
It does not simulate orders.
It is not a strategy.
It is not a backtest system.
It is not financial advice.
## 日本語補足
このインジケーターは、価格が実際に反応した水平帯を可視化するための研究用ツールです。
Liveでは最新状態の主要な反応ゾーンを表示します。
Visible Range Researchでは、過去にスクロールした表示範囲の右端時点を基準に、当時存在していた反応コンテキストを再構築します。
Local Window Levelsは、表示範囲内の確定pivot反応から作られる局所的な反応ラインです。左側、中央、右側に出る短い線や、右端まで伸びない線は仕様です。過去相場の中で、どこに細かい反応帯が存在したかを研究するためのものです。
ライン数は、描画側で検知済みのものを隠して減らすのではなく、検知品質やローカルクラスタリングによって調整します。
このスクリプトは売買シグナルではありません。エントリー、エグジット、利確、損切り、ポジションサイズ、勝率、収益性、将来予測を提供しません。投資助言ではありません。 Indicatore

Ultimate Matrix HUD v8🎯 Ultimate Matrix HUD — Multi-Symbol Direction + Sector Rotation Dashboard
What it is: An all-in-one heads-up display that answers three questions at a glance — Which way is my stock going? How much conviction is behind it? And is the money flowing into its sector? It scans up to 6 tickers of your choice plus ranks all 11 market sectors, right on your chart. Built for desktop and phone.
📊 What You're Looking At
The HUD has two panels:
1️⃣ Watchlist Panel — your 6 chosen tickers, one row each:
Column Meaning
TICKER The symbol being scanned
BIAS Direction + conviction: 🟢 LONG / 🔴 SHORT (strong, ≥70%), 🟡 WEAK L/S (building, 40–69%), ⚪ NEUTRAL
REGIME Market character: ⚡ DAY (volatile/intraday), 🌊 SWING (calm/trending), ➖ RANGE (chop)
TREND A mini score-history sparkline (▁▂▃▄▅▆▇█) with an arrow — ↗ = conviction strengthening, → = flat/fading
SECTOR The ticker's sector, its live rotation quadrant color, and rank (e.g. Tech 🟢#2)
2️⃣ Sector Rotation Panel — all 11 sectors ranked by relative strength:
Column Meaning
SECTOR Short label (Tech, Fin, Enrgy, Hlth, etc.)
QUADRANT 🟢 Leading, 🟡 Weakening, 🔴 Lagging, 🔵 Improving
STR/MOM The two RRG axes — Strength / Momentum
RANK Position 1–11, with 🥇🥈🥉 for the top three
🧠 How the Bias Score Works
Each ticker is graded 0–100% on four pillars:
Macro Trend (40 pts) — Higher-timeframe EMA structure (fast vs slow) confirms the big-picture direction.
Momentum (30 pts) — RSI in the healthy trend zone (not overextended).
Volume Confirmation (30 pts) — A volume spike in the direction of the move = real participation.
A score of ≥70% lights up 🟢 LONG or 🔴 SHORT. Between 40–69% it's a building 🟡 WEAK signal. Below that, ⚪ NEUTRAL.
🔄 How Sector Rotation Works (RRG Model)
Every sector is measured against a benchmark (default SPY, fully customizable) on two axes:
Strength — is it outperforming the benchmark over the long window?
Momentum — is that outperformance accelerating or fading?
Those two combine into the classic Relative Rotation Graph quadrants:
Quadrant Meaning Play
🟢 Leading Strong and accelerating Prime hunting ground for longs
🟡 Weakening Strong but losing steam Take profits / tighten stops
🔴 Lagging Weak and still falling Avoid longs / short candidates
🔵 Improving Weak but turning up Early rotation — watchlist for entries
Money typically rotates clockwise: Improving → Leading → Weakening → Lagging.
The STR/MOM column shows the two raw axes (e.g. 3.2 / 1.1 = outperforming and accelerating). Classic rotation flow is clockwise: Improving → Leading → Weakening → Lagging.
✅ The A+ Setup — Reading a Row in One Glance
The whole point is confluence. Your strongest trade lines up all three:
text
Copy
🟢 LONG (100%) + ▇█ ↗ + Tech 🟢#1
direction conviction money flow
That's a strong signal, still strengthening, in the #1 leading sector. Conversely, a 🟢 LONG whose sector reads 🔴#10 is a red flag — you'd be fighting the rotation.
⚙️ Setup (One-Time, ~2 Minutes)
Watchlist: Enter your 6 tickers and pick each one's sector from the dropdown. Set crypto/forex to None (their sector tag will show —).
Benchmark: Default SPY. Swap to QQQ (tech-relative), IWM (small-cap), or any symbol.
Mode: Choose Watchlist, Sector Rotation, or Both.
Display: Position, text size, transparency, colors, borders, and toggle any column on/off.
⚠️ Sector assignment is manual — Pine Script can't reliably auto-detect a stock's sector for scanned symbols. It's a 30-second, one-time setup and gives you 100% accurate, self-controlled tagging.
🔔 Discord Alerts (Optional)
The HUD can push formatted alerts to Discord on two events:
Bias Flip — a ticker crosses into 🟢 LONG or 🔴 SHORT
Momentum Strengthening — conviction starts accelerating (↗)
Each alert includes the ticker, bias, regime, trend, and its sector context:
text
Copy
NASDAQ:AAPL
Bias: 🟢 LONG (100%)
Regime: ⚡ DAY
Trend: ▇█ ↗
Sector: Tech 🟢#2
To wire it up:
In Discord: Server Settings → Integrations → Webhooks → New Webhook, copy the URL.
In TradingView: click the alarm clock ⏰ → Create Alert on this indicator.
Set Condition = Ultimate Matrix HUD, and under Notifications → Webhook URL, paste your Discord webhook.
Set the alert message to {{plot}} or leave default — the indicator sends its own JSON payload.
Alerts fire on bar close for reliability (no repaint-driven false pings).
📱 Mobile Tips
Set Text Size = Tiny/Small and bump Panel Transparency so price stays visible.
Hide columns you don't need (Regime, Trend, or Sector) to slim the panel.
Use Watchlist-only mode on phone for the cleanest view; switch to Both on desktop.
⚠️ Important Notes & Limitations
Live-bar values are provisional. All scores, ranks, and quadrants settle on bar close — treat the forming bar as an estimate.
Not financial advice. This is a decision-support dashboard, not a signal-to-blindly-trade. Always confirm with your own analysis and risk management.
Sector features are equity-focused. Set non-equity symbols (crypto/forex) to None.
Best on liquid symbols with real volume data — thinly traded names may give noisy volume/regime reads.
Timeframe: Works on any, but shines on 15m–4H for swing/intraday. Benchmark & windows are fully tunable in settings. Indicatore

Indicatore

Shayan Khursheed Momentum CompassHere’s a clean TradingView description you can use:
Shayan Khursheed Momentum Compass
Shayan Khursheed Momentum Compass is a beginner-friendly day-trading indicator designed for 1m, 5m, 10m, 15m, and 30m momentum traders.
The goal is simple: make the chart easy to understand by showing a clear final verdict instead of forcing traders to read many indicators separately.
The dashboard gives plain-English signals:
FINAL VERDICT: BUY NOW
FINAL VERDICT: HOLD LONG
FINAL VERDICT: EXIT LONG
FINAL VERDICT: SHORT NOW
FINAL VERDICT: HOLD SHORT
FINAL VERDICT: EXIT SHORT
FINAL VERDICT: WAIT
The script analyzes multiple TradingView data points, including:
Fast and slow EMA momentum
Anchor EMA trend
VWAP position
Higher-timeframe trend confirmation
RSI momentum
MACD direction
ADX/DMI trend strength
Volume strength
ATR volatility
Pullback and breakout triggers
Dynamic stop line
Simple reading rules:
BUY NOW means look for a long entry.
HOLD LONG means stay in the buy.
EXIT LONG means close the buy.
SHORT NOW means look for a short entry.
HOLD SHORT means stay in the short.
EXIT SHORT means close the short.
WAIT means no trade.
The script also includes visual alerts such as BUY NOW, SHORT NOW, HOLD BUY STAY, HOLD SHORT STAY, FIRE SHORT, BUY BUY, and EXIT NOW to make the chart easier to follow during fast-moving markets.
This indicator is built to help traders stay disciplined, avoid guessing, and understand when momentum is strong enough to act.
This script is for education and analysis only. It is not financial advice. Always backtest, paper trade, and use proper risk management before trading with real money. Indicatore

JPM Collar Levels - SPXJPM Collar Levels - SPX plots manually updated quarterly JPM collar reference levels for the S&P 500 Index.
The indicator is designed for traders and analysts who want a clean way to keep the main JPM collar levels visible on the SPX chart without turning them into signals, targets, or magic lines.
The script currently plots three reference levels for each loaded quarterly collar:
- Short Call
- Long Put
- Short Put
These levels are hardcoded and updated manually after each quarterly reset.
Important convention:
The reported quarter is displayed during the following active quarter.
For example, Q2 2026 collar levels are active from July 1, 2026 to October 1, 2026.
This matters because the collar is not meant to be read as a normal calendar-quarter label. The levels are reported after a reset and then used as reference levels during the next active period.
What this indicator does:
- Plots JPM collar levels directly on SPX.
- Shows the active quarter more clearly than older quarters.
- Allows users to display only the current active quarter, the last year, or all loaded historical quarters.
- Optionally shows distance from current SPX price to each active level in points, percent, or both.
- Includes alerts for first touch per quarter or every touch.
- Shows a warning on common S&P 500 proxies such as SPY, ES, US500, or SPX500.
- Stays silent on unrelated symbols.
- Shows an update warning only after the latest loaded collar period has ended.
What this indicator does not do:
- It does not generate buy or sell signals.
- It does not predict price direction.
- It does not define support or resistance.
- It does not claim that price must react at these levels.
- It does not backtest a strategy.
- It does not estimate probabilities.
These are reference levels only.
I use them as market structure context, not as trade instructions. A level can matter because large collars and option structures may become part of how traders frame risk, hedging, and positioning. That still does not mean price has to respect the level. Markets are not polite.
Recommended use:
Use this indicator to keep quarterly JPM collar reference levels visible while analyzing SPX price action, volatility, positioning, and broader market context.
The cleanest default view is “Last year”, which shows the active quarter plus recent historical context. Users who only want the current structure can switch to “Current only”.
Distance labels are optional and turned off by default to keep the chart clean.
Symbol note:
This script is designed for SPX. It intentionally avoids plotting the levels on S&P 500 proxies such as SPY, ES, US500, SPX500, VOO, or IVV, because those instruments trade at different prices and the raw SPX collar levels do not map directly without adjustment.
Manual update note:
The levels are hardcoded. They must be updated manually after each quarterly JPM collar reset. If the latest loaded period has ended, the script will show an update warning.
Settings section
Main settings:
Visible history
- Current only: shows only the active collar period.
- Last year: shows the active period plus recent historical quarters.
- All loaded: shows all hardcoded quarters available in the script.
Distance display
- Off: clean labels only.
- Percent: shows distance from current SPX price to the active levels in percent.
- Points: shows distance in SPX points.
- Points + Percent: shows both.
Label contrast
- Soft: cleaner chart, lower visual noise.
- Normal: easier to read.
- Strong: highest label visibility.
Alerts
- First touch per quarter: each level can trigger once during the active quarter.
- Every touch: alerts can trigger again when price touches a level again.
Release notes
Initial public version.
Includes manually updated JPM quarterly collar reference levels for SPX, with configurable visible history, optional distance labels, SPX-only symbol handling, and alert modes for level touches.
The script is open-source and intended as a clean reference tool, not a trading signal. Indicatore

Kalman Flow | Lyro RSThe Kalman Flow is an adaptive trend-following tool designed to identify and track market direction by combining a two-state Kalman filter with noise-scaled deviation bands. Unlike traditional moving-average systems, this indicator estimates both the underlying price level and its velocity (drift per bar) simultaneously, requiring agreement between price displacement and directional drift before confirming a trend change.
How It Works
1. Kalman Baseline
This is the core engine of the indicator — a constant-velocity Kalman filter that recursively predicts the next price level from its current level and velocity states, then corrects the prediction using actual price. Because the filter gain depends only on the process-to-measurement noise ratio, behavior is consistent across all assets and price scales.
Higher Sensitivity → the baseline tracks price closely and reacts faster.
Lower Sensitivity → a smoother baseline with fewer, more selective flips.
2. Adaptive Noise Bands
Instead of ATR or standard deviation, the bands are scaled by the filter's own tracking error — the average absolute distance between price and the Kalman estimate.
Upper Band = Kalman Baseline + (Tracking Error × + Multiplier)
Lower Band = Kalman Baseline − (Tracking Error × − Multiplier)
The two multipliers are independent, allowing asymmetric tuning of bullish and bearish flip thresholds. The bands automatically widen in choppy conditions and tighten in clean trends, so flips require a move that is large relative to recent noise — not a fixed size.
3. Velocity-Confirmed Trend Engine
A trend flip requires both conditions at once:
A close beyond the opposite noise band (displacement).
Kalman velocity agreeing with the new direction (drift).
Anything less holds the current state, creating built-in hysteresis that filters out displacement without follow-through.
Practical Application
Signal Interpretation
A Long signal is generated when price closes above the upper band while Kalman velocity is positive.
A Short signal is generated when price closes below the lower band while Kalman velocity is negative.
Candle coloring and the baseline color always reflect the current trend state.
Trend Confirmation
The velocity requirement serves as a confirmation layer — a single spike through a band without genuine drift behind it will not flip the trend, reducing the likelihood of false signals during choppy or low-volatility conditions. Built-in alerts cover bullish flips, bearish flips, and any flip.
⚠️ Disclaimer
This indicator is a technical analysis tool and does not guarantee results. It should be used in conjunction with additional analysis methods and proper risk management strategies. The creators of this indicator are not responsible for any financial decisions made based on its signals. Indicatore

Bedaiwi's Smart PivotsBedaiwi's Smart Pivots is a three-level market-structure indicator that classifies price turning points as Minor, Intermediate, and Major highs and lows.
HOW IT WORKS
Minor Pivots
A Minor High is confirmed when the middle bar of a three-bar formation has a high that is strictly higher than the highs immediately before and after it.
A Minor Low is confirmed when the middle bar has a low that is strictly lower than the lows immediately before and after it.
Equal highs and equal lows are not treated as Minor pivots.
Intermediate Pivots
Intermediate pivots are derived from confirmed sequences of Minor pivots.
An Intermediate High is identified when a higher Minor High is followed by a lower Minor High.
An Intermediate Low is identified when a lower Minor Low is followed by a higher Minor Low.
Major Pivots
Major pivots apply the same hierarchical logic to confirmed Intermediate pivots.
A Major High is identified when a higher Intermediate High is followed by a lower Intermediate High.
A Major Low is identified when a lower Intermediate Low is followed by a higher Intermediate Low.
SYMBOLS AND COLORS
- Red diamond: Intermediate High
- Green diamond: Intermediate Low
- Red exclamation mark: Major High
- Green exclamation mark: Major Low
Optional Minor pivots use the same High and Low color settings.
When the replacement option is enabled, an Intermediate symbol is removed and replaced with an exclamation mark if the same point is later promoted to Major status.
HISTORICAL PLOTTING AND CONFIRMATION DELAY
Pivot identification requires subsequent price information.
A Minor pivot is confirmed only after the following bar closes. Intermediate and Major pivots require additional confirmed pivot sequences, so their confirmation occurs later.
After confirmation, the indicator places the symbol on the historical bar where the relevant high or low occurred. Therefore, a symbol displayed on an earlier bar was not necessarily available in real time on that bar.
Historical placement is used only to show the actual location of the confirmed turning point. It should not be interpreted as a signal that was known on the historical pivot bar.
SETTINGS
Users can:
- Show or hide Minor pivots
- Show or hide Intermediate pivots
- Show or hide Major pivots
- Replace an Intermediate symbol when it becomes a Major pivot
- Customize High and Low pivot colors
PRACTICAL USE
Smart Pivots can help users:
- Study market structure
- Identify significant historical swing highs and lows
- Separate short-term fluctuations from higher-level price structure
- Review possible support and resistance areas
- Add context to discretionary price-action analysis
LIMITATIONS
Smart Pivots is an analytical indicator. It does not place trading orders and does not define entries, exits, stop-loss levels, profit targets, position sizing, or expected returns.
Pivot confirmation is delayed by design because later price action is required. Results may vary between symbols, timeframes, sessions, and data feeds.
The indicator does not identify final market tops or bottoms with certainty. Historical observations do not guarantee future market behavior.
This script is provided for research and educational purposes only. It is not financial or investment advice. Indicatore

Automated Institutional Levels + Weekly (v6 Published)Overview:
Tired of spending your pre-market hours manually plotting higher timeframe levels and session boundaries every single morning?This lightweight, comprehensive script automates the tedious technical analysis process for futures, forex, and equities traders. It dynamically projects institutional key levels, daily and weekly ranges, macro market structure, and session extremes directly onto your execution charts—all with zero lag and zero diagonal chart slopes.Unlike 95% of the multi-timeframe indicators available on TradingView, this script is fully Bar Replay Optimized. By utilizing custom lookahead configurations and historical indexing, the levels render flawlessly during backtesting sessions, allowing you to practice historical trading setups without data leak distortions or misalignments.
Key Features:
Previous Week High / Low (PWH / PWL):Automatically locks and projects the completed extremes of the prior week. It holds perfectly flat, ignoring the current developing week's price data to give you macro expansion targets.
Previous Day High / Low (PDH / PDL):Tracks the definitive 24-hour highs and lows, shifting dynamically at the daily session crossover with precise stair-step tracking.
London Session Extremes (LH / LL):Isolates the exact high and low wicks formed during the standalone London hours (03:00 AM to 08:00 AM EST). The script automatically projects these liquidity pools forward into the New York AM and PM sessions—perfect for identifying Judas Swing traps and session liquidity sweeps.
Automated 4H Structural BOS Ceiling:Mechanically scans the 4-hour timeframe for true 3-candle swing high peaks. It projects the macro structural lower high forward onto your lower timeframes (1m, 5m, 15m), maintaining a clear look at macro bearish resistance until a true 4H candle body close invalidates it.
Dynamic Confluence Label Stacking:Keeps your charts clean. When multiple high-timeframe zones collapse onto the exact same price tick, the individual labels disappear and convert into an eye-catching CONFLUENCE or TRIPLE WALL box on your price scale, alerting you to a high-probability institutional reversal wall.
Recommended Setup for Day Traders:
Load the script onto an intraday execution chart (such as the 1-minute or 5-minute charts).
Use a clean continuous futures contract ticker (like ES1! or NQ1!).
Pair this framework with a Fair Value Gap (FVG) or Order Block indicator. Look for fast 09:30 AM EST New York opening volume to sweep the white London High/Low or blue PDH/PDL lines right beneath the orange 4H BOS wall before hunting A+ displacement triggers.
Indicatore

Market Structure HH-HL / LL-LH / Xcelerate TradeXcelerate - Market Structure HH-HL / LL-LH
📈 Overview
Professional market structure identification tool that automatically detects Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) with intelligent timeframe-optimized settings. Perfect for swing trading, trend analysis, and market structure breaks.
🎯 Key Features
🔧 Auto Timeframe Optimization:
1m charts: L=3/R=2 (Fast scalping detection)
5m charts: L=4/R=3 (Day trading optimized)
15m charts: L=5/R=4 (Swing entry points)
1H+ charts: L=6/R=4 (Position trading structure)
📊 Visual Indicators:
Green triangles: HH (up) and HL (down) - Bullish structure
Red triangles: LH (up) and LL (down) - Bearish structure
Clean, minimal design that doesn't clutter your charts
Auto-sizing markers that adapt to chart zoom
⚡ Smart Alerts:
HH-HL-HH Pattern: Bullish structure continuation
LL-LH-LL Pattern: Bearish structure continuation
Custom alert messages with ticker and timeframe info
⚙️ Settings
Auto Settings (Recommended):
Toggle ON for automatic timeframe optimization
Real-time display panel shows current L/R values
Tested across multiple market conditions
Manual Override:
Custom Pivot Length Left/Right for advanced users
Wait for bar close option for confirmed signals
Filter pivots option for cleaner visualization
🎯 How to Use
Trend Identification: Follow the color-coded structure
Green sequence = Bullish trend
Red sequence = Bearish trend
Entry Points: Look for HL in uptrends, LH in downtrends
Structure Breaks: When HH/HL sequence breaks = potential reversal
Multi-Timeframe: Use on different timeframes for confluence
📚 Best Practices
Combine with support/resistance levels
Use alerts for automated monitoring
Higher timeframes for major structure, lower for entries
Wait for bar close confirmation on important levels
🔔 Alert Setup
Go to "Create Alert"
Select "HH-HL-HH Alert" or "LL-LH-LL Alert"
Choose "Once Per Bar Close" for best results
Perfect for: Swing Traders, Position Traders, Market Structure Analysis, Trend Following Systems
Works on: All markets (Forex, Stocks, Crypto, Commodities), All timeframes
Developed by Xcelerate Trading - Professional tools for serious traders
May 2
Release Notes
Market Structure HH-HL / LL-LH / Xcelerate Trade
Overview
Professional market structure tool that automatically labels confirmed swing pivots as Higher High (HH), Higher Low (HL), Lower High (LH), and Lower Low (LL) using classic Williams pivot logic. Includes timeframe-aware auto pivot settings, an optional noise filter, and pattern-based alerts for bullish (HH → HL → HH) and bearish (LL → LH → LL) continuation sequences. Ideal for swing trading, trend context, and clean structure mapping without overloading the chart.
Developed by the Xcelerate Trade team — production-minded tooling for serious discretionary and systematic traders.
Key features
Auto timeframe optimization (recommended)
Automatically sets pivot left/right lengths based on chart resolution:
1m: L=3 / R=2 — faster structure for scalping-style monitoring
5m: L=4 / R=3 — balanced for intraday structure
15m: L=5 / R=4 — swing-friendly pivot confirmation
1H+: L=6 / R=4 — broader structure for higher timeframe bias
When auto mode is enabled, a compact info panel (top-right) shows the active timeframe and current L / R values.
Visual structure (minimal + readable)
Green markers: HH (up) and HL (down) — bullish swing structure
Red markers: LH (up) and LL (down) — bearish swing structure
Auto-sized shapes that stay readable across zoom levels
Markers are aligned to the pivot confirmation timing using the script’s offset logic
Smart pivot filtering (optional)
Reduce “chop pivots” by requiring a minimum move vs the prior stored pivot on the same side:
ATR-based threshold (default path), or
Tick-based threshold when ATR mode is disabled
Alerts (pattern completion)
HH-HL-HH: bullish continuation sequence (HH, then HL, then next HH completes)
LL-LH-LL: bearish continuation sequence (LL, then LH, then next LL completes)
Use TradingView Create Alert on the indicator’s alert conditions for clean, repeatable notifications. Optional runtime alert() is available but disabled by default to avoid duplicate notifications.
Settings
Auto settings (recommended)
Toggle ON for automatic L/R optimization + live display of active parameters.
Manual override
Set custom Pivot Length Left / Right for advanced users or special instruments.
Signal timing
Wait for bar close: helps avoid repainting behavior on the forming bar (recommended for consistency)
Filtering
Filter pivots: ON/OFF
Choose ATR-based vs tick-based minimum move and tune sensitivity for your market
How to use
1) Trend / regime context
Track sequences:
Dominant green structure → bullish swing bias
Dominant red structure → bearish swing bias
2) Pullbacks in trend
In bullish structure, watch for HL after HH; in bearish structure, watch for LH after LL.
3) Multi-timeframe workflow
Use higher timeframes for bias / major swings, lower timeframes for execution structure and confluence.
4) Alerts
Create alerts on:
HH-HL-HH
LL-LH-LL
Prefer Once Per Bar Close if you want the strictest confirmation behavior.
Best practices
Combine structure labels with key levels (sessions, ranges, liquidity) for higher-quality decisions
Keep filter pivots enabled on noisy symbols, then tune ATR multiple slowly (small changes matter)
Higher TF for direction; lower TF for timing
If signals feel late, that’s often the tradeoff for confirmation — adjust L/R manually only if you understand the pivot delay mechanics
Works on
All liquid markets (Forex, indices, stocks, crypto, commodities) and standard timeframes (subject to TradingView / instrument data availability).
Credits
Developed by Xcelerate Trade — professional-grade tools designed for disciplined market structure workflows. Indicatore

Triple Slope EMA Alignment
Triple Slope EMA Alignment is an open-source trend-state indicator that plots EMA 50, EMA 100, and EMA 200 with color-coded slope logic.
Each EMA is evaluated using an ATR-normalized slope angle. This helps compare the EMA slope against recent volatility instead of relying only on raw price movement.
Line colors:
Green = bullish slope above the positive degree threshold.
Red = bearish slope below the negative degree threshold.
Yellow = flat or neutral slope between the two thresholds.
The default slope thresholds are +0.5 and -0.5 degrees.
A BUY label appears when EMA 50, EMA 100, and EMA 200 are all bullish at the same time.
A SELL label appears when EMA 50, EMA 100, and EMA 200 are all bearish at the same time.
The labels are confirmed on bar close and are designed to mark full slope alignment, not every individual EMA color change.
This script does not guarantee future price direction. It is intended as a visual trend-alignment tool that can be used with price action, volume, support/resistance, and other confirmation methods. Indicatore

Indicatore

Indicatore

Stryk HTF Reversal Box# Stryk HTF Reversal Box — TradingView publication description
*(Paste the section below into the description box when you publish. It is written to avoid performance or outcome claims. Keep it as-is; do not add win rates, returns, or "profitable" language.)*
---
## Stryk HTF Reversal Box
**Overview**
Stryk HTF Reversal Box is a market-analysis tool that carries a higher-timeframe reaction zone onto your entry chart. It draws a High/Low box from recent closed higher-timeframe bars, but only when a higher-timeframe bar closed at a conviction extreme of its ATR band with above-average volume — the kind of location where a reaction, or a strong push through it, tends to begin. The box then moves through a clear, colour-coded lifecycle so you can read its state at a glance, and an optional panel measures the behaviour of the boxes on your current chart.
**The idea**
Levels drawn purely from price often lack context: why should this high matter more than that one? This tool adds two pieces of information a bare level does not carry — where a higher-timeframe bar closed within its own volatility band, and whether it did so on meaningful volume. A close pinned to the top of the band on strong volume is a stretched, high-participation event; a shelf built there is a more considered level than an arbitrary swing high. The script turns that reasoning into a defined, repeatable object.
**How it works**
- **Band position.** On the selected higher timeframe, an EMA-of-close band of ±(width × ATR) is constructed. The last closed higher-timeframe bar's close is located inside that band on a 0-to-1 scale (0 = band low, 1 = band high).
- **Qualification.** A close in the top of the band (at or above the Top threshold) on above-average volume marks a stretched high and draws a red "expect-down" box. A close in the bottom (at or below the Bottom threshold) on above-average volume draws a green "expect-up" box.
- **The box.** It spans the High/Low of the last N closed higher-timeframe bars and re-rolls on each higher-timeframe close until a bar qualifies.
- **Breakout.** On your entry chart, a candle that closes beyond a box edge with volume above the chart average locks the box and projects a target a chosen multiple of ATR beyond the edge. The box then takes the colour of the actual break direction, so a push through the extreme flips its colour to the continuation side.
- **Retest shelves.** 25 / 50 / 75% levels inside the box mark common pullback references. If price closes through the opposite edge, the box holds position and re-projects a target in the new direction.
- **Consolidation.** If the target is not reached within the timeout while price remains inside the box, the box turns blue and removes its target, waiting for a fresh break rather than assuming direction.
**State colours (line style shows the state)**
- Grey dotted — forming, waiting for a qualifying higher-timeframe bar
- Red / green dotted — armed, expecting a reaction down / up
- Solid — a volume-backed break has set a target
- Blue dotted — consolidating inside the box after the timeout
**The panel**
The optional corner panel is a self-measuring summary of the boxes on your current chart and timeframe only: how many reached their target, how many entered consolidation, the resulting rate shown with its sample size (n), and the average number of bars taken to reach target. It describes what has already happened on this chart. It is a study aid, not a projection, and it recalculates when you change settings.
**How to use it**
1. Choose the higher timeframe you take context from and load the tool on the entry timeframe you actually trade.
2. Watch for an armed (red or green) box forming a reaction zone.
3. A box turning solid marks a volume-backed break with a projected target; the 25 / 50 / 75% shelves are retest references inside the zone.
4. Use the panel to understand how these boxes have behaved on your instrument and timeframe before relying on them.
Every threshold, length, colour, width, and label is adjustable in the settings, and each input carries an in-app tooltip describing exactly what it does.
**Notes on repainting**
Higher-timeframe data is read from confirmed, closed bars using a one-bar offset with lookahead disabled, and all state changes are evaluated on the bar close. The live projection to the right of price is cosmetic; the box edges, breakouts, targets, and states are fixed once determined on a closed bar.
**Disclaimer**
This script is a technical-analysis and study tool. It does not place orders, does not provide financial advice, and makes no claim about future results. Markets involve risk; use your own judgement and risk management.
Indicatore

BTC Halving Indicator
**What it does:**
- Draws an **orange vertical line + label** at each past halving: 28 Nov 2012, 9 Jul 2016, 11 May 2020, and 20 Apr 2024
- Draws a **dashed aqua line** at the estimated 5th halving (~April 2028) when it's close enough to appear on your chart
- Shows a **live counter table** in the top-right: days since the last halving and estimated days until the next one
- Has settings to change colors and toggle the labels/counter on or off
**How to install it in TradingView:**
1. Open a BTC chart (e.g. BTCUSD) on tradingview.com
2. Click **Pine Editor** at the bottom of the screen
3. Delete whatever's in the editor, paste in the full contents of the file
4. Click **Save**, then **Add to chart**
Two tips: use the **daily or weekly timeframe** — on low timeframes like 5m, TradingView doesn't load history back to 2012, so the older halving lines won't appear. And note the 2028 date is an estimate; the actual halving happens at block 1,050,000, so the real date drifts slightly with block times.
Want me to add anything, like cycle-phase background shading or price-at-halving markers? Indicatore

Indicatore

Uptrick: Trend Pressure LineIntroduction
Uptrick: Trend Pressure Line is a trend-following overlay that measures directional pressure by combining price displacement from a moving average, candle body strength, and short-term momentum into a single weighted composite. The composite is smoothed and converted into both a dynamic trend line and a bar coloring system, giving traders a continuous read on how strong buying or selling pressure is, rather than a simple binary trend flag.
Originality
While the script uses common building blocks such as an EMA baseline and ATR normalization, its originality lies in how these components are combined. Instead of relying on a single trend filter, the script blends three independently weighted pressure sources, price position relative to trend, candle body direction, and bar-to-bar momentum, into one normalized pressure value using user-adjustable weights. This composite pressure value is then used simultaneously to plot a smoothed adaptive trend line, generate a three-color gradient reflecting pressure intensity, calculate a reversal probability score based on how stretched pressure is relative to its recent range, and drive bar coloring through three separate selectable modes. No single one of these elements is novel on its own, but the integration of weighted multi-factor pressure scoring with a dedicated reversal exhaustion metric and multi-mode visual feedback is not a standard combination found in common trend or ATR-band indicators.
Features
Weighted trend pressure engine combining price position, candle body, and momentum into one composite score
Adjustable weighting for each of the three pressure components
Smoothed adaptive trend line plotted directly on the chart
Three-color gradient (bearish, neutral, bullish) that reflects live pressure intensity
Up and down trend signals with optional cooldown to reduce repeated signals
Four selectable signal anchor points (Default, High/Low, Close, Trend Line)
Optional take profit signals based on an ATR multiple from entry
Reversal probability calculation based on pressure stretch and distance from the trend line
Adjustable reversal lookback and sensitivity settings
Three selectable bar coloring modes (Reversal Probability, Latest Signal, Current Default)
Strong and extreme pressure level alerts for both bullish and bearish conditions
Dashboard table showing trend state, signal state, bars since last signal, pressure value, reversal percentage, bar mode, take profit status, ATR value, and trend line value
Four selectable table positions
19 distinct alert conditions covering signals, flips, pressure levels, and price/line crosses
Inputs
Source, Trend Length, ATR Length, Pressure Smoothness, and Line Smoothness control the core trend engine
Price Position Weight, Candle Body Weight, and Momentum Weight control how the three pressure components are blended
Show Up/Down Signals, Trend Threshold, Signal Cooldown, and Signal Anchor control signal generation and placement
Show TP Signals and TP ATR Multiplier control the optional take profit logic
Line Width, Gradient Sensitivity, Gradient Smoothness, and Bar Coloring Mode control the visual presentation
Reversal Lookback, Reversal Sensitivity, and High Reversal Alert Level control the reversal probability calculation
Strong Pressure Level and Extreme Pressure Level set the thresholds for pressure strength alerts
Show Table and Table Position control the on-chart dashboard
How It Works
The script builds a baseline using an EMA of price, then measures three separate pressures relative to ATR: how far price sits from that baseline, the strength of the current candle's body, and short-term momentum. These three values are combined using the user's weight settings and smoothed to produce a single pressure reading. This pressure reading is added to the baseline to draw the adaptive trend line, and it is also compared against a threshold to classify the market as bullish, bearish, or neutral, which drives the up and down signals. Separately, the script tracks how far current pressure is from its recent extreme and how far price has drifted from the trend line, combining both into a reversal probability percentage that increases as a trend becomes stretched.
How to Use
Watch the trend line color and the dashboard Trend row together to identify the current directional bias at a glance
Use the Up and Down labels as potential entry cues, and adjust Signal Cooldown if signals print too frequently on your chart's timeframe
Adjust the three weight inputs (Price Position, Candle Body, Momentum) if you want the pressure reading to favor trend positioning, candle strength, or short-term speed, depending on your trading style
Monitor the Reversal row on the dashboard as a trend matures; a rising percentage suggests the current move is becoming stretched and may be due for a pause or reversal
Switch Bar Coloring Mode to Reversal Probability if you want the candles themselves to visually flag exhaustion, or to Latest Signal if you prefer bars colored by the most recent up/down call
Enable Show TP Signals and set a TP ATR Multiplier if you want a visual marker for a fixed ATR-based profit target after each signal, then adjust the multiplier to match your own target distance
Use Signal Anchor to reposition labels relative to price action, high/low, or the trend line itself depending on chart clutter or personal preference
Set alerts on any of the nineteen available conditions to be notified of trend flips, pressure extremes, or price crossing the trend line without needing to watch the chart continuously
Conclusion
Uptrick: Trend Pressure Line gives traders a single adaptive line and pressure reading that reflects the combined influence of price positioning, candle strength, and momentum, along with a built-in gauge for how exhausted the current trend may be. It is intended as a trend and exhaustion visualization tool rather than a standalone signal generator.
Disclaimer
This script is provided for informational and educational purposes only and does not constitute financial advice. Past performance, including any signals or visual patterns shown on the chart, is not indicative of future results. Trading involves substantial risk, and users should perform their own analysis and risk management before making trading decisions based on this or any other indicator. Indicatore
