Deep Trend Curve MT5
- Indicators
- Kestutis Balciunas
- Version: 1.10
Deep Trend Curve Indicator is a non-repainting trend-following overlay for MetaTrader 5. It draws a Volume Weighted Moving Average (VWMA) as the central trend baseline, weighted by tick volume so that bars with strong participation count more than bars with thin activity. Around the VWMA, it draws upper and lower volatility bands derived from the Average True Range (ATR), which automatically expand and contract with current market volatility. A deterministic state machine flips the entire visual stack between bullish (aqua) and bearish (red) color sets when price closes beyond the corresponding band, producing a clean, persistent trend visualization that does not flicker as price oscillates around the line.
Check MT4 version at: Deep Trend Curve MT4
See more products at: All Products
Check MT4 version at: Deep Trend Curve MT4
See more products at: All Products
For live examples and new tools, visit my profile and send a Friend request so you don’t miss updates!
How It Works
Volume Weighted Moving Average (VWMA)
For each bar, the indicator multiplies the close by the tick volume, sums the products over the lookback window (default: 34 bars), and divides by the total tick volume. The result is a moving average that gives proportionally more weight to high-participation bars. On forex pairs, indices, commodities, and crypto, tick volume is a strong proxy for actual transaction volume, making the VWMA a more honest reference line than a simple or exponential moving average.
ATR Adaptive Bands
The Average True Range over the same lookback window measures recent price variability. The upper band sits at VWMA + ATR x multiplier (default 1.5) and the lower band sits at the same distance below. As market volatility expands, the bands widen automatically; as volatility contracts, the bands tighten. This means the trend transition threshold scales with current conditions instead of being a fixed pip distance.
Trend State Machine
The indicator maintains a three-state machine: bullish, bearish, or neutral (initial state). On each confirmed bar close:
- If the close is above the upper band, the trend becomes bullish.
- If the close is below the lower band, the trend becomes bearish.
- Otherwise, the trend stays the same as the previous bar.
This persistence rule produces a clean, readable visualization. The line does not change color as price oscillates between the bands -- it only flips when a meaningful break occurs.
Non-Repainting Design
Trend transitions are evaluated only on confirmed (closed) bars. The live (still-forming) bar inherits the trend color of the previous closed bar, so the visible trend state cannot flicker or change as ticks arrive. Once a bar's color is established at close, it never moves. Historical bars cannot rewrite themselves when new data arrives.
Key Features
- Volume Weighted Moving Average baseline (default: 34 bars), tick volume weighted
- ATR adaptive volatility bands (default: 1.5x multiplier) that scale with current market range
- Bicolor trend state machine: aqua bullish / red bearish, with stable persistence between transitions
- Non-repainting architecture: closed-bar processing with live-bar mirror
- Bullish trend confirmed alert and bearish trend confirmed alert with once-per-bar deduplication
- 4 alert delivery channels: popup dialog, sound, email, push notification
- Symbol- and timeframe-agnostic: works on Forex, indices, commodities, crypto, and any other instrument supported by your broker
- Identical visual output between MT4 and MT5 builds
- 6-buffer architecture (VWMA bull/bear, upper bull/bear, lower bull/bear) plus 1 hidden trend state buffer
- Lean configuration with 8 input parameters
