OPEN-SOURCE SCRIPT

Arc Trail Regime [JOAT]

1 118
Arc Trail Regime is an open-source Pine Script v6 overlay that builds an accelerating trail around an adaptive EMA arc and gates directional flips with VWAP location. It is designed to show when price has crossed a dynamic trailing level while the broader value anchor agrees with the new side.

The script focuses on a smooth regime trail rather than many signal markers. It displays the active arc, a soft cloud, optional gradient candles, and right-edge shelf levels created after confirmed flips.

snapshot

Core Concepts

1. Adaptive Arc Core

The core blends fast and slow EMA curves. The blend weight increases when recent speed and volatility expansion increase, which makes the arc respond faster during active movement.

Pine Script®


2. VWAP Gate

Bull flips require price to be above VWAP. Bear flips require price to be below VWAP. This keeps the trail aligned with a basic value-location filter.

3. Accelerating Trail Width

The trail distance uses ATR and a volatility speed boost. During active movement, the trail can tighten within bounds so it reacts faster to regime changes.

4. Confirmed Flip Shelves

When a confirmed regime flip occurs, the script draws a shelf line near the flip bar. The shelf remains active until price invalidates it.

5. Distance Candles

Candles can be colored from bearish to bullish based on their normalized distance from the active trail.

Features

  • Adaptive arc core: Blends fast and slow curves by speed and volatility
  • VWAP-gated flips: Direction changes require price location agreement
  • ATR trail: Trail distance scales with chart volatility
  • Arc cloud: Soft band around the active trail
  • Active shelves: Right-edge support/resistance references after confirmed flips
  • Confirmed buy/sell flip markers: Compact BUY and SELL dots are offset away from candles and only print after confirmed regime flips
  • Gradient candles: Optional candle coloring by trail distance
  • Dashboard: Shows regime, VWAP side, distance, speed, and shelf status
  • Alerts: Confirmed bull flip and confirmed bear flip


Input Parameters

Visuals:
  • Palette Preset: Selects bull and bear colors
  • Arc Cloud: Shows the trail cloud
  • Gradient Candles: Enables candle coloring
  • Confirmed Flip Signals: Shows compact BUY and SELL flip markers
  • Active Shelves: Shows flip shelf lines and labels


Engine:
  • Source: Price source
  • Inner Curve Length: Fast EMA length
  • Outer Curve Length: Slow EMA length
  • ATR Length: Volatility length
  • Base Trail Width: Starting ATR trail multiplier
  • Volatility Speed Boost: Controls how much expansion affects the trail


How to Use This Indicator

Step 1: Read the Active Regime
The dashboard shows Bull or Bear based on the active trail side.

Step 2: Confirm VWAP Location
The VWAP row shows whether price is above or below the value gate used by the script.

Step 3: Monitor Shelves
Shelf lines are created after flips and can act as visual invalidation references.

Indicator Limitations

  • Trail systems can whipsaw during sideways markets
  • VWAP behavior varies across sessions and symbols
  • A shelf is a visual reference, not a complete stop model
  • Fast volatility shifts can temporarily widen or tighten the trail abruptly


Originality Statement

Arc Trail Regime is original in its adaptive arc weighting, VWAP-gated regime flips, speed-sensitive trail width, and active shelf visualization. It is built with original Pine v6 code and public chart data.

Disclaimer

This script is provided for educational and informational use only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Trail flips can fail in range conditions or during abrupt volatility changes. Always use independent analysis and proper risk management.

-Made with passion by jackofalltrades

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.