OPEN-SOURCE SCRIPT

Aura Trend Cloud Navigator [Pineify]

777
Aura Trend Cloud Navigator [Pineify]

This indicator builds a trend-following system around a Trend Regularity Adaptive Moving Average — an adaptive MA that adjusts its responsiveness based on how frequently price makes new period highs or lows. When the market trends, the baseline tracks price closely; when it ranges, the baseline goes nearly flat, cutting down on false crossover signals. An ATR-based volatility cloud wraps around the baseline to frame the trend's expected range.

Key Features

  • Adaptive baseline that self-adjusts speed — fast in trends, nearly frozen in ranges
  • Dynamic ATR cloud that expands and contracts with real-time volatility
  • Gradient-filled cloud with automatic color shifts between bullish and bearish states
  • Crossover-based buy/sell signals filtered by the adaptive regime detection
  • Bar coloring for quick visual trend identification


How It Works

The core is a recursive adaptive moving average controlled by a trend coefficient derived from market structure:

  1. On each bar, the script checks whether a new highest high or lowest low has been established over the lookback period (default 99 bars). If either condition is met, a binary signal of 1 is recorded; otherwise 0.
  2. The average of this binary signal over the same period is computed via SMA, then squared. Squaring creates a nonlinear response — the coefficient drops sharply when trend activity fades and rises steeply when price consistently prints new extremes.
  3. This squared value becomes the smoothing factor in a recursive formula: baseline = baseline + coefficient × (close − baseline). A high coefficient pulls the baseline toward price; a near-zero coefficient locks it in place.
  4. An Average True Range envelope is then added above and below the baseline, scaled by a user-defined multiplier. This forms the cloud — a corridor representing expected price movement around the trend.


How the Components Work Together

The adaptive baseline and the ATR cloud serve complementary roles. The baseline handles trend direction and generates entry signals, but because it adapts to market regime, it sidesteps the main weakness of fixed-period moving averages: constant whipsawing during consolidation. The cloud adds a volatility dimension on top of that directional read. When price stays inside the cloud, it is oscillating within the normal range of the current trend. Price pushing beyond the cloud edges may signal overextension or trend acceleration. In short, the baseline answers "which direction" while the cloud answers "how far is normal."

Trading Ideas and Insights

  • When the baseline shifts color and a triangle signal fires, treat it as a potential trend change. Confirmation improves if the crossover happens near or beyond the opposite cloud edge, suggesting genuine momentum rather than a range poke.
  • In a bullish regime, price hugging the upper cloud boundary suggests strong follow-through. A pullback toward the baseline that holds can offer a continuation entry — especially if the baseline remains clearly sloped upward.
  • Watch for the baseline going flat while the cloud tightens — this is the indicator explicitly telling you to stand aside. Crossovers that occur while the baseline is flat carry less conviction than those during a clearly sloped baseline, since the adaptive mechanism has detected a low-regularity environment.


Unique Aspects

  • The trend regularity approach counts how often new period extremes occur rather than measuring price direction or momentum directly. Most adaptive MAs rely on efficiency ratios or volatility scaling; this one responds to the structural behavior of the market itself — whether it is consistently making progress or stalling out.
  • Squaring the trend coefficient means the MA doesn't merely slow down in ranges — it practically stops. This creates clear visual separation between trending and non-trending regimes that is immediately readable on the chart.
  • The gradient cloud gives volatility context without the visual clutter of multi-line band systems. One glance tells you both direction and how stretched the current move is.


How to Use

  1. Add the indicator to your chart. The thick colored line is the adaptive baseline — green for bullish, red for bearish.
  2. Triangle markers appear at crossover points: upward green triangles below bars for potential long entries, downward red triangles above bars for potential short entries or exits.
  3. Use the cloud as context. Price within the cloud is behaving normally for the trend. Moves beyond the cloud edges are stretched and may revert or signal acceleration.
  4. On higher timeframes (4H, Daily), the default 99-period length works well as a medium-term trend filter. On lower timeframes, consider reducing the length for faster adaptation — though this increases sensitivity to noise.


Customization

  • Trend Filter Length (default: 99) — How many bars are used to assess trend regularity. Higher values produce a smoother, slower baseline that only reacts to sustained directional moves. Lower values increase sensitivity but also raise whipsaw risk in choppy markets.
  • Cloud Width / ATR Multiplier (default: 2.0) — Scales the ATR-based cloud. Wider values capture more price action within the corridor; tighter values make cloud-edge touches more frequent and potentially more meaningful as overextension signals.
  • ATR Length (default: 14) — Period for the Average True Range calculation. The standard 14 suits most instruments. Increase it for smoother cloud behavior on volatile assets.


Conclusion

The Aura Trend Cloud Navigator provides a regime-adaptive trend filter that goes quiet when the market goes quiet. The TRAMA baseline combined with an ATR cloud delivers both directional guidance and volatility context in a single overlay. It suits swing and position traders looking for a trend filter that avoids generating noise during consolidation — though the adaptive smoothing does introduce lag at trend reversals, so pairing it with a momentum oscillator for timing may improve entries on faster-moving instruments.

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

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.