OPEN-SOURCE SCRIPT

Arc VWAP Supertrend [BOSWaves]

34 517
Arc VWAP Supertrend [BOSWaves] - Momentum-Adaptive Trend Engine with VWAP-Confirmed Structure

Overview

Arc VWAP Supertrend [BOSWaves] is a dynamic trend-following system built around a self-accelerating arc that continuously repositions relative to price, combined with a multi-period VWAP confirmation layer that filters directional flips against prevailing volume-weighted price context.

スナップショット

Rather than applying a static band or fixed multiplier envelope around price, the arc responds to both structural momentum and the distance between price and VWAP. As price extends further from the volume-anchored reference, the arc accelerates its chase, producing tighter trend adherence during high-conviction moves and broader breathing room during consolidation. This creates an inherently adaptive system that scales its sensitivity to actual market behaviour rather than a fixed parameter.

Trend flips are assessed against session, weekly, and monthly VWAP simultaneously. Each flip is classified as confirmed when VWAP agrees with the directional change, or filtered when VWAP context conflicts with the signal, giving traders immediate visibility into the structural quality of each transition without additional overlay indicators.

Conceptual Framework

Arc VWAP Supertrend is built on the premise that trend-following tools should respond proportionally to the conditions they are measuring. A trend system applying identical sensitivity during a low-volatility consolidation and a high-momentum breakout treats structurally different environments as equivalent, introducing unnecessary noise in one context and unacceptable lag in the other.

The arc mechanism addresses this through velocity-based acceleration. When a new trend begins, the arc is placed at a measured ATR distance from price, establishing structural breathing room. From that anchor point it begins accelerating toward price at a rate that scales with VWAP distance, moving faster when price is extended and easing when price is contained near the volume-weighted mean.

Three principles shape the design:
  1. Trend direction should be confirmed by the market's own volume-weighted price context rather than a pure momentum or volatility calculation alone.
  2. Arc sensitivity should increase when price behaviour warrants it and reduce when conditions are contained.
  3. Structural flip levels should be maintained as actionable reference points only while they remain unbroken, disappearing immediately upon invalidation rather than cluttering the chart with historical noise.

Theoretical Foundation

The indicator combines a velocity-accumulating arc engine, ATR-scaled positioning, multi-period VWAP construction, and a distance-normalised acceleration boost into a single cohesive system.

Arc velocity accumulates from zero on each new flip, increasing each smoothing interval by the base acceleration rate scaled by VWAP distance normalisation. This means the arc moves slowly immediately after a flip, when trend conviction is unproven, and progressively faster as the trend matures and price distance from VWAP grows. A slow ATR, calculated across 100 bars, provides a stable volatility reference governing initial arc placement and step size, insulating the system from transient volatility spikes that would otherwise cause erratic repositioning.

VWAP is computed independently across three anchor periods: session, week, and month, each resetting cleanly at its respective boundary. The configurable filter mode allows traders to define which period must agree with a flip, whether any single agreement suffices, or whether full alignment across all three is required before a flip qualifies as confirmed. This creates a spectrum of filtering strictness suited to different trading approaches and timeframe contexts.

Four systems operate in coordination:
  • Arc Engine: Manages velocity accumulation, step progression, and directional positioning.
  • VWAP Layer: Handles multi-period construction, distance normalisation, and flip qualification.
  • Flip Level System: Creates, extends, and instantly removes horizontal structural reference lines.
  • Visualisation Layer: Renders a candle gradient, cloud fill, and directional markers calibrated to current trend state.


How It Works

Arc VWAP Supertrend processes each bar through a structured sequence of operations:
  1. Initialisation: Occurs once sufficient ATR history exists, placing the arc below price at a configurable ATR multiple and establishing the opening trend direction.
  2. Trend State Logic: Close relative to arc governs trend state each bar, with a close below flipping to bearish and a close above flipping to bullish.
  3. Flip Processing: On each flip, the arc repositions to the opposite side of price at the full starting distance, velocity resets to zero, and a flip level is drawn at the pivot extreme.
  4. Arc Acceleration: The arc begins accelerating toward price at a rate scaled by both the base acceleration input and the current VWAP distance factor, with smoothing applied across a configurable bar window to reduce noise without introducing meaningful structural lag.
  5. VWAP Assessment: Each flip is simultaneously assessed against the selected VWAP filter, classifying transitions as confirmed where VWAP agrees with the new direction, or filtered where VWAP context conflicts.
  6. Flip Level Management: Flip levels extend rightward bar by bar until price closes through them, at which point the line and its associated label are deleted immediately.
  7. Visualisation Update: A candle gradient reflects both trend direction and distance from the arc, with colour intensity increasing as price extends further from the arc surface. A cloud fill between arc and price provides continuous directional context across the full visible chart range.

Interpretation

Arc VWAP Supertrend should be read as a continuous directional framework with structural quality classification at each transition point:
  • Arc Surface: Functions as dynamic support or resistance depending on trend direction. While price holds above the arc in a bullish trend, the arc traces an accelerating floor beneath the advance. In a bearish trend the arc descends as an accelerating ceiling above price.
  • Candle Gradient: Communicates extension relative to the arc, with bright candles indicating price is well extended from the arc and faded candles indicating proximity and potential inflection.
  • Confirmed Flips: Carry the weight of VWAP alignment, where price is not only crossing the arc but doing so from a position consistent with the volume-weighted price context.
  • Filtered Flips: Warrant additional validation, as VWAP is positioned counter to the new direction. Acting on filtered signals without supplementary confirmation introduces structural risk that confirmed signals do not carry.
  • Flip Levels: Mark the price at which each directional change originated. While intact they serve as reference boundaries for re-entry, stop placement, and structural assessment. Their immediate removal on breach keeps the chart unambiguous, with only levels of ongoing structural relevance remaining visible.
  • Cloud Fill Width: Gives a continuous visual measure of how aggressively the arc is tracking the current trend. A narrow cloud indicates close arc proximity and elevated flip risk; a wide cloud reflects a well-developed, momentum-backed trend with the arc accelerating firmly behind price.

Signal Logic & Visual Cues

Arc VWAP Supertrend communicates through four concurrent visual systems:
  • Arc Line: Traces the current trend boundary, smoothed across the configured window and suppressed at flip bars to avoid visual discontinuity.
  • Cloud Fill: Grades from the trend colour at arc proximity to full saturation at price, with transparency rendering it unobtrusive during normal trend conditions.
  • Candle Colouring: Applies a gradient from the current trend colour at low distance to full saturation at high distance, with distance normalised against three ATR units, producing a live visualisation of trend extension directly on the price bars.
  • Flip Markers: A pair of layered triangles, one solid and one semi-transparent glow, positioned at a configurable ATR offset from the arc to ensure visibility above candle wicks.
  • Flip Level Lines: Extend from the pivot price rightward until breach, each accompanied by a price label whose size is configurable independently of the line style.

Four alert conditions cover bullish and bearish transitions in both confirmed and filtered states, enabling automated monitoring of trend changes classified by their VWAP context.

Strategy Integration

Arc VWAP Supertrend applies across trend-following, momentum, and structure-based methodologies:
  • Trailing Reference: The arc surface provides a natural trailing stop. As velocity accumulates and the arc accelerates toward price, it functions as a progressively tightening dynamic stop that responds to the maturity of the move rather than a fixed lookback period.
  • Tiered Signal Treatment: VWAP confirmation classification allows confirmed flips to trigger immediate action while filtered flips prompt a verification step, building a natural two-tier entry discipline directly into the indicator's output without additional tools.
  • Pullback Re-entry: Flip levels provide structural anchors for re-entry on pullbacks. A price return toward an intact flip level during a confirmed trend offers a structurally referenced entry point with the arc serving as the invalidation boundary beyond the level.
  • Position Sizing: The candle gradient supports exposure scaling and risk assessment. Entries taken when candles are faded, indicating close arc proximity, carry greater structural uncertainty than entries aligned with a well-extended, brightly coloured trend.
  • Multi-Timeframe Application: Higher-timeframe arc direction establishes macro bias while lower-timeframe flip confirmation and VWAP filter classification provide entry precision. Confirmed flips on the lower timeframe aligned with higher-timeframe arc direction represent the highest-quality intersection of the system's outputs.

Technical Implementation Details
  • Core Engine: Velocity-accumulating arc with ATR-scaled initial placement, step progression, and VWAP distance acceleration boost
  • VWAP Layer: Independent session, weekly, and monthly VWAP computed from rolling cumulative volume and price-volume, resetting at each period boundary
  • Filter System: Configurable agreement mode across session, week, month, any, or all VWAP periods with separate confirmed and filtered flip classification
  • Visualisation: Smoothed arc plot, gradient cloud fill, ATR-normalised candle gradient, layered flip markers, and auto-removing flip level lines with configurable style, width, transparency, and label sizing
  • Alert Coverage: Bullish confirmed, bearish confirmed, bullish filtered, and bearish filtered flip events

Optimal Application Parameters

Timeframe Guidance:
  • 1 - 15 min: Intraday trend tracking with session VWAP filter for same-day directional context
  • 1H - 4H: Swing trend identification with weekly VWAP filter for multi-session structural alignment
  • Daily - Weekly: Macro trend positioning with monthly VWAP filter for broad directional confirmation

Suggested Baseline Configuration:
  • Arc Speed: 0.12
  • Start Distance: 2.0x
  • Smoothing: 3
  • VWAP Filter: Session
  • VWAP Speed Boost: 1.5
  • Arrow Offset: 1.2x

These parameters represent a balanced starting point. Instruments with faster characteristic swing cadence benefit from higher arc speed; slower, trend-persistent instruments suit lower values with a higher start distance to avoid premature flips during normal retracements.

Parameter Calibration Notes

Use the following adjustments to refine behaviour without altering the core logic:
  • Arc flipping too frequently: Raise Start Distance to place the arc further from price on each new trend, requiring a larger adverse move before a flip triggers.
  • Arc too slow to follow strong trends: Raise Arc Speed or VWAP Speed Boost to increase acceleration rate, particularly on instruments with fast-developing directional moves.
  • Too many filtered signals: Switch VWAP filter to Any to require only single-period agreement, loosening the confirmation threshold without removing VWAP context entirely.
  • Too many false confirmed signals: Switch to All to require full agreement across session, weekly, and monthly VWAP before a flip qualifies as confirmed.
  • Arc visually noisy during consolidation: Raise Smoothing to increase arc averaging, reducing short-term noise at the cost of modest additional lag during transitions.
  • Flip levels persisting beyond usefulness: Reduce Max Levels to limit the number of active structural references retained simultaneously, concentrating display on the most recent pivot history.

Disclaimer

Arc VWAP Supertrend [BOSWaves] is a professional-grade trend analysis tool. Directional signals, flip classifications, and arc behaviour reflect historical price and volume relationships and do not constitute assured future outcomes. Performance is dependent on market conditions, instrument characteristics, parameter selection, and disciplined application within a broader analytical framework incorporating risk management, timeframe context, and corroborating analysis. BOSWaves recommends treating this indicator as one component of a structured trading methodology rather than a standalone signal system.

免責事項

これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。