OPEN-SOURCE SCRIPT

Trend Road Map

471
█ OVERVIEW
Trend Road Map is a volatility-based trend indicator built around a dynamic ATR channel that defines the current market regime and visualizes it as a structured “trend road.”

Instead of relying on classic moving average crossovers, the indicator filters price movement relative to a base moving average and a minimum ATR-based deviation threshold. This removes minor fluctuations and focuses only on meaningful market shifts.

█ CONCEPTS
Markets spend most of their time fluctuating around equilibrium near a moving average. A strong trend begins when price moves a meaningful distance away from that average relative to current volatility.

The indicator operates in three steps:
- Calculates a base moving average (SMA / EMA / WMA / HMA).
- Verifies whether price deviation exceeds an ATR-based minimum threshold.
- Smooths the filtered average and builds a volatility channel (“Road”) around it.

If price closes above the upper boundary → bullish regime activates.
If price closes below the lower boundary → bearish regime activates.

Additionally, the indicator includes an ATR-based distance heatmap.
Market observation shows that even in strong trends, price rarely moves extremely far away from its moving average. When distance becomes relatively large compared to volatility, price often retests the MA.

The heatmap visualizes this distance dynamically, helping traders assess whether the move is balanced or overstretched.

█ FEATURES
Minimum Deviation Filter:
MA updates only when |Price – MA| > ATR × Multiplier
reduces noise and false regime shifts

Smoothed Trend Axis:
- additional smoothing (EMA / RMA / WMA / SMA)
- stabilizes the central structure of the channel

Volatility Channel (“Road”):
- width = ATR × Road Width Multiplier
- dynamically adapts to current volatility
- channel fill:
  • light gray – bullish regime
  • dark gray – bearish regime

Optional Candle Coloring:
- candles can reflect the active regime direction
- fully toggleable in settings

Regime Change Signals:
- green circle below the bar → start of BULL regime
- red circle above the bar → start of BEAR regime

Re-entry (🚦):
- appears when price re-enters the channel after a breakout
- signals a return to equilibrium conditions

Distance Heatmap:
- vertical gradient bar displayed on the right side
- smooth color transitions from neutral to warning levels
- based on ATR-relative distance from the smoothed MA

Heatmap settings:
- Max ATR Distance for Heatmap – defines the maximum ATR distance used for scaling
- Heatmap Cells – controls gradient resolution (number of segments)

Dynamic Status Label:
- displays current market zone (Clear Road / Normal Range / Warning Zone / Danger Zone)
- automatic text color adjustment based on background brightness

Alerts:
- Bull Entry
- Bear Entry
- Re-Entry

█ HOW TO USE
Add the indicator to your chart → Indicators → search for
“Trend Road Map”

Basic interpretation:
- Price above upper boundary + light gray channel fill = active bullish regime
- Price below lower boundary + dark gray channel fill = active bearish regime
- Price inside the channel = equilibrium / transitional phase

Parameters should be adjusted depending on whether the indicator is used as a strict trend filter or as a wider price channel tool.

█ APPLICATIONS
Trend Road Map is primarily a trend indicator. Its main purpose is to define the active market regime and filter trading conditions.

It can be used as a directional filter for momentum tools such as RSI or MACD.
For example:
- consider LONG signals only when a bullish regime is active
- ignore signals that go against the dominant direction

Channel Breakout Trading
Breakouts outside the “Road” can be traded directly. However, confirmation from other tools is recommended, such as:
- RSI above 50 during bullish breakout (but not extremely overbought),
- increasing momentum,
- no major resistance directly ahead.

Price Channel / Mean Reversion (with wider bands)
By increasing the Road Width multiplier, the indicator can function as a structured price channel.
In this configuration, traders may apply band-to-band mean reversion strategies.

As with any mean reversion approach, probability improves when combined with additional tools, such as:
- pivot levels,
- Fibonacci retracements,
- key support and resistance zones.

█ NOTES
This indicator was not designed as a standalone trading strategy, but primarily as a market filtering and context tool.

Parameters should be adjusted according to the instrument and, most importantly, according to the strategy and function the indicator is intended to serve (trend filter, breakout tool, or structured channel).

Volatility varies significantly across markets and timeframes — optimization is essential for consistent performance.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.