OPEN-SOURCE SCRIPT

Lumina Trend Channels & Bands [Pineify]

3 342
Pineify - Lumina Trend Channels & Bands

Lumina Trend Channels & Bands is an overlay indicator that builds a volatility-adjusted trend channel around a Volume-Weighted Moving Average (VWMA). VWMA forms the baseline, while ATR bands define how far price must move before trend state changes.

Key Features

  • VWMA midpoint weighted toward higher-volume closes.
  • ATR-based upper and lower bands that adapt to current range.
  • Persistent trend state while price remains inside the channel.
  • Triangle markers on the first cross above the upper band or below the lower band.


How It Works

The script calculates a VWMA of close, then adds and subtracts ATR multiplied by the Band Multiplier. A close above the upper band sets bullish state; a close below the lower band sets bearish state. Between the bands, the prior state is preserved.

  1. Compute the VWMA baseline.
  2. Measure ATR and scale it by the Band Multiplier.
  3. Plot upper and lower channel bands around the VWMA, then mark the first crossover or crossunder.


How the Components Work Together

VWMA supplies the directional anchor, while ATR decides how much evidence price needs before a breakout is treated as meaningful. In high volatility the bands widen and demand a stronger close; in quiet conditions the channel tightens and reacts sooner. The cloud fill emphasizes the active side of the trend.

Trading Ideas and Insights

  • A bullish triangle may indicate continuation after price clears the upper boundary.
  • A bearish triangle may flag downside momentum when price loses the lower band.
  • Inside-channel movement is a drift zone. Wait for bar close on live bars; fast reversals can lag, and ranges can whipsaw.


Unique Aspects

  • Trend state is retained inside the ATR channel, reducing flip-flopping around the VWMA.
  • The asymmetric cloud emphasizes the active trend side while keeping the opposite band visible.


How to Use

  1. Add the indicator to a clean price chart.
  2. Use the midline and channel to judge bullish, bearish, or undecided territory.
  3. Treat triangles as potential breakout starts, then look for confirmation.
  4. No built-in alert conditions are included in this version.


Customization

  • Trend Baseline Length (default: 50) - VWMA lookback. Higher values smooth the channel but add lag.
  • Volatility (ATR) Length (default: 14) - ATR lookback for band width.
  • Band Multiplier (default: 2.0) - Channel distance. Higher values reduce breakouts; lower values are more sensitive.
  • Bullish/Bearish Trend Colors - Adjust line, cloud, and marker colors.


Conclusion

Lumina Trend Channels & Bands is for traders who want a clean VWMA trend channel with volatility-aware breakout markers. Use it as context alongside structure, volume, and risk management rather than as a standalone system.

免責事項

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