OPEN-SOURCE SCRIPT
Trend Master Bundle (5x EMA, DEMA & VWAP) | Mourya

The Trend Master Bundle is a comprehensive, trend-following utility designed to visualize perfect moving average alignment and volume-weighted momentum. By integrating multiple exponential moving averages, a double exponential moving average, and standard deviation VWAP bands, this tool provides a clear, quantitative view of both macro trend direction and intraday mean-reversion zones.
The "Perfect Alignment" Strategy
The core algorithmic logic of this indicator detects strict momentum states where the moving averages fan out in a specific sequence:
Extremely Bullish: Identified when the current price sits above the moving averages, and the MAs are stacked in strict ascending order: 5 EMA > 10 EMA > 20 EMA > 50 EMA > 100 DEMA > 200 EMA. This structural alignment indicates a dominant uptrend.
Extremely Bearish: Identified when the price remains below the moving averages, and they are stacked in descending order: 5 EMA < 10 EMA < 20 EMA < 50 EMA < 100 DEMA < 200 EMA.
Core Indicator Components
5x Exponential Moving Averages: Standard institutional lengths (5, 10, 20, 50, 200) serve as dynamic support and resistance layers.
100-Period DEMA: The Double Exponential Moving Average is utilized to reduce the lag inherent in standard EMAs. It reacts faster to price changes, serving as a highly responsive lead indicator for mid-to-long-term trend transitions.
VWAP with Standard Deviation Bands: The anchored Volume Weighted Average Price calculates the asset's true fair value based on volume and price. The surrounding standard deviation bands help measure market volatility and extension.
Upgraded Visual Features
End-of-Line Tracking Labels: Dynamic text labels automatically track the most recent candle, floating the name of each specific moving average (e.g., "EMA 50", "VWAP") directly at the end of its respective line for instant visual identification.
Dynamic Premium Dashboard: A sleek, non-intrusive dark-mode widget provides a real-time readout of the current trend state (Extremely Bullish, Extremely Bearish, or Neutral) and lists the exact current price values for all active moving averages.
Full Customisation: Every MA length, colour, VWAP anchor, and UI element can be toggled or adjusted via the indicator settings menu to suit individual charting preferences.
Practical Application
Trend Confirmation: Traders can use the dashboard to ensure they are trading in the direction of the dominant momentum.
Pullback Entries: During a confirmed "Extremely Bullish" or "Extremely Bearish" state, the 20 EMA and VWAP baseline often act as areas of interest for trend-continuation setups.
Mean Reversion: Price interaction with the outer VWAP standard deviation bands (Bands #2 and #3) can signal statistically overextended market conditions, helping identify potential exhaustion points or mean-reversion opportunities.
The "Perfect Alignment" Strategy
The core algorithmic logic of this indicator detects strict momentum states where the moving averages fan out in a specific sequence:
Extremely Bullish: Identified when the current price sits above the moving averages, and the MAs are stacked in strict ascending order: 5 EMA > 10 EMA > 20 EMA > 50 EMA > 100 DEMA > 200 EMA. This structural alignment indicates a dominant uptrend.
Extremely Bearish: Identified when the price remains below the moving averages, and they are stacked in descending order: 5 EMA < 10 EMA < 20 EMA < 50 EMA < 100 DEMA < 200 EMA.
Core Indicator Components
5x Exponential Moving Averages: Standard institutional lengths (5, 10, 20, 50, 200) serve as dynamic support and resistance layers.
100-Period DEMA: The Double Exponential Moving Average is utilized to reduce the lag inherent in standard EMAs. It reacts faster to price changes, serving as a highly responsive lead indicator for mid-to-long-term trend transitions.
VWAP with Standard Deviation Bands: The anchored Volume Weighted Average Price calculates the asset's true fair value based on volume and price. The surrounding standard deviation bands help measure market volatility and extension.
Upgraded Visual Features
End-of-Line Tracking Labels: Dynamic text labels automatically track the most recent candle, floating the name of each specific moving average (e.g., "EMA 50", "VWAP") directly at the end of its respective line for instant visual identification.
Dynamic Premium Dashboard: A sleek, non-intrusive dark-mode widget provides a real-time readout of the current trend state (Extremely Bullish, Extremely Bearish, or Neutral) and lists the exact current price values for all active moving averages.
Full Customisation: Every MA length, colour, VWAP anchor, and UI element can be toggled or adjusted via the indicator settings menu to suit individual charting preferences.
Practical Application
Trend Confirmation: Traders can use the dashboard to ensure they are trading in the direction of the dominant momentum.
Pullback Entries: During a confirmed "Extremely Bullish" or "Extremely Bearish" state, the 20 EMA and VWAP baseline often act as areas of interest for trend-continuation setups.
Mean Reversion: Price interaction with the outer VWAP standard deviation bands (Bands #2 and #3) can signal statistically overextended market conditions, helping identify potential exhaustion points or mean-reversion opportunities.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.