INVITE-ONLY SCRIPT

Hypothetical (Swing Explorer)

79
Hypothetical (Swing Explorer) V1.3

Overview

Hypothetical (Swing Explorer) V1.3 is a Pine v6 swing-study visualizer. It confirms extremes using ta.pivothigh/ta.pivotlow and an EMA context filter, then constructs a ZigZag only from verified pivots to avoid repainting. On top, it illustrates four hypothetical marks—Next, Swing, Reversal, and Forward Echo—each with an ETA derived from recent price speed and bar time. It also provides trail lines (verified or developing), an optional Zero-Lag guide from the last extreme, a status table showing hit/pending states, and optional custom candle coloring by leg.

This tool is an illustrative swing explorer.

How it works

Verified Pivots (Non-Repainting):

• Uses ta.pivothigh/ta.pivotlow with symmetric lookbacks.
• Verifies extremes with a trend check (fast vs slow EMA at the pivot bar) to avoid counter-trend “noise.”
• Marks developing vs verified extremes; ZigZag lines are drawn only from verified pivots.

ZigZag Structure & Leg Direction:

•Rolling-window tests (highest/lowest over winLen) flip the swing polarity.
• Lines are drawn using xloc.bar_time so segments remain anchored to bar timestamps.

Trails & Zero-Lag (visual guidance):

• Trail mode can be Verified (solid) or Hypothetical (dashed).
• Trail color can sync to EMA bias or recent price change, with optional gradient tint by relative ATR change.
• Zero-Lag line connects the last verified extreme to live price as a dashed guide.

Hypothetical Targets (with ETA):

• Next Swing: mirrors the last verified leg distance from the most recent extreme.
• Primary Swing: Next Swing plus a small momentum/volatility adjustment.
• Reversal: price distance ≈ average historical swing range, with time ≈ average swing bars.
• Forward Echo: a “two-swings-ahead” projection (≈ 2× avg swing range/bars).
• ETAs derive from recent price speed (EMA of |Δprice|) and bar_time deltas; all targets display Pending → Verified when price tags them.
• Each target type keeps capped line history (FIFO) to prevent clutter.

Status Table & Alerts:

• Table shows Trail Direction, Sync Mode, Gradient state, and Pending/Verified for each hypothetical mark; also prints trend bias (fast vs slow EMA).
• Visual labels update in place; confirmation draws a short solid marker line.

Optional Custom Candles:

• Colors candles by verified leg or (optionally) by developing leg for early visual context.

What it displays

• ZigZag from verified extremes (non-repainting).
• Trail line (solid = verified, dashed = developing) with EMA/price sync and optional gradient.
• Zero-Lag dashed guide from last extreme to current price.
• Hypothetical Next/Swing/Reversal/Echo lines + labels, each with ETA; persistent confirmation lines when hit.
• Status table showing Pending/Verified states and context.
• Optional custom candles colored by active leg.

Why it’s original

• Moves beyond a plain ZigZag by combining:
• Verified-only structure (EMA-filtered pivots),
• A four-stage hypothetical framework (Next/Swing/Reversal/Echo) with time estimates,
• Trail logic that supports developing vs verified states and snap-back handling,
• Zero-Lag visualization tied to the last extreme, and
• Persistent, capped history of projection lines for post-analysis.

These elements create a cohesive swing exploration workflow rather than a single indicator mashup.

Configuration & usage notes

Trend & Averages: Fast/Slow EMA lengths affect verification.
Pivots: pivotLookback controls confirmation latency vs strictness.
Structure: winLen influences flip sensitivity.
Trails: Choose Hypothetical for earlier (dashed) trail hints; Verified for conservative trails.
Hypothetical Tools: Toggle each mark; set max lines per type to balance history vs clarity.
Custom Candles: Enable if you want leg-based candle tints; choose developing mode for earlier flips.
Performance: The script caps historical lines per type to keep charts responsive.

Limitations & assumptions

• ETAs use recent price speed and average swing bars; these are illustrative and can drift with regime changes.
• Hypothetical Projections are not signals; they’re visual hypotheses grounded in measured past swings.

Legal Disclaimer

This indicator is for informational and educational purposes only—not investment, financial, or trading advice. Past performance does not guarantee future results; trading involves risk of loss. Provided “as is” with no warranties. Consult a qualified professional before decisions. By using it, you assume all risk and agree to this disclaimer.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.