MDZ Strategy v4.2 - Multi-factor trend strategy by VolForge

By VolForge

Performance Metrics

Description

What This Strategy DoesMDZ (Momentum Divergence Zones) v4.2 is a trend-following strategy that enters long positions when multiple momentum and trend indicators align. It's designed for swing trading on higher timeframes (2H-4H) and uses ATR-based position management.The strategy waits for strong trend confirmation before entry, requiring agreement across five different filters. This reduces trade frequency but aims to improve signal quality.Entry LogicA long entry triggers when ALL of the following conditions are true:1. EMA Stack (Trend Structure)Price > EMA 20 > EMA 50 > EMA 200This "stacked" alignment indicates a strong established uptrend2. RSI Filter (Momentum Window)RSI between 45-75 (default)Confirms momentum without entering overbought territory3. ADX Filter (Trend Strength)ADX > 20 (default)Ensures the trend has sufficient strength, not a ranging market4. MACD ConfirmationMACD line above signal lineHistogram increasing (momentum accelerating)5. Directional Movement+DI > -DIConfirms bullish directional pressureExit LogicPositions are managed with ATR-based levels:ParameterDefaultDescriptionStop Loss2.5 × ATRBelow entry priceTake Profit6.0 × ATRAbove entry priceTrailing Stop2.0 × ATROptional, activates after entryThe default configuration produces a 1:2.4 risk-reward ratio.PresetsThe strategy includes optimized presets based on historical testing:PresetTimeframeNotes1H Standard1 HourMore frequent signals2H Low DD2 HourConservative settings3H Optimized3 HourBalanced approach4H Swing4 HourWider stops for swing tradesCustomAnyFull manual controlSelect "Custom" to adjust all parameters manually.Inputs ExplainedEMAsFast EMA (20): Short-term trendSlow EMA (50): Medium-term trendTrend EMA (200): Long-term trend filterRSILength: Lookback period (default 14)Min/Max: Entry window to avoid extremesADXMin ADX: Minimum trend strength thresholdRiskStop Loss ATR: Multiplier for stop distanceTake Profit ATR: Multiplier for target distanceTrail ATR: Trailing stop distance (if enabled)Session (Optional)Filter entries by time of dayRecommended OFF for 3H+ timeframesWhat's DisplayedInfo Panel (Top Right)Current presetTrend status (Strong/Wait)ADX, RSI, MACD readingsPosition statusRisk-reward ratioStats Panel (Top Left)Net P&L %Total tradesWin rateProfit factorMaximum drawdownChartEMA lines (20 blue, 50 orange, 200 purple)Green background during strong uptrendTriangle markers on entry signalsImportant Notes⚠️ This is a long-only strategy. It does not take short positions.⚠️ Historical results do not guarantee future performance. Backtests show what would have happened in the past under specific conditions. Markets change, and any strategy can experience drawdowns or extended losing periods.⚠️ Risk management is your responsibility. The default settings risk 100% of equity per trade for backtesting purposes. In live trading, appropriate position sizing based on your risk tolerance is essential.⚠️ Slippage and commissions matter. The backtest includes 0.02% commission and 1 tick slippage, but actual execution costs vary by broker and market conditions.Best PracticesTest on your specific market — Results vary significantly across different instrumentsUse appropriate position sizing — Never risk more than you can afford to loseCombine with your own analysis — No indicator replaces understanding market contextPaper trade first — Validate the strategy matches your trading style before risking capitalAlertsTwo alerts are available:MDZ Long Entry: Fires when all entry conditions are metUptrend Started: Fires when EMA stack first aligns bullishMethodologyThis strategy is based on the principle that trend continuation has better odds than reversal when multiple timeframe momentum indicators agree. By requiring five independent confirmations, it filters out weak setups at the cost of fewer total signals.The ATR-based exits adapt to current volatility rather than using fixed pip/point targets, which helps the strategy adjust to different market conditions.Questions? Leave a comment below.Release NotesWhat This Strategy DoesMDZ (Momentum Divergence Zones) v4.2 is a trend-following strategy that enters long positions when multiple momentum and trend indicators align. It's designed for swing trading on higher timeframes (2H-4H) and uses ATR-based position management.The strategy waits for strong trend confirmation before entry, requiring agreement across five different filters. This reduces trade frequency but aims to improve signal quality.Entry LogicA long entry triggers when ALL of the following conditions are true:1. EMA Stack (Trend Structure)Price > EMA 20 > EMA 50 > EMA 200This "stacked" alignment indicates a strong established uptrend2. RSI Filter (Momentum Window)RSI between 45-75 (default)Confirms momentum without entering overbought territory3. ADX Filter (Trend Strength)ADX > 20 (default)Ensures the trend has sufficient strength, not a ranging market4. MACD ConfirmationMACD line above signal lineHistogram increasing (momentum accelerating)5. Directional Movement+DI > -DIConfirms bullish directional pressureExit LogicPositions are managed with ATR-based levels:ParameterDefaultDescriptionStop Loss2.5 × ATRBelow entry priceTake Profit6.0 × ATRAbove entry priceTrailing Stop2.0 × ATROptional, activates after entryThe default configuration produces a 1:2.4 risk-reward ratio.PresetsThe strategy includes optimized presets based on historical testing:PresetTimeframeNotes1H Standard1 HourMore frequent signals2H Low DD2 HourConservative settings3H Optimized3 HourBalanced approach4H Swing4 HourWider stops for swing tradesCustomAnyFull manual controlSelect "Custom" to adjust all parameters manually.Inputs ExplainedEMAsFast EMA (20): Short-term trendSlow EMA (50): Medium-term trendTrend EMA (200): Long-term trend filterRSILength: Lookback period (default 14)Min/Max: Entry window to avoid extremesADXMin ADX: Minimum trend strength thresholdRiskStop Loss ATR: Multiplier for stop distanceTake Profit ATR: Multiplier for target distanceTrail ATR: Trailing stop distance (if enabled)Session (Optional)Filter entries by time of dayRecommended OFF for 3H+ timeframesWhat's DisplayedInfo Panel (Top Right)Current presetTrend status (Strong/Wait)ADX, RSI, MACD readingsPosition statusRisk-reward ratioStats Panel (Top Left)Net P&L %Total tradesWin rateProfit factorMaximum drawdownChartEMA lines (20 blue, 50 orange, 200 purple)Green background during strong uptrendTriangle markers on entry signalsImportant Notes⚠️ This is a long-only strategy. It does not take short positions.⚠️ Historical results do not guarantee future performance. Backtests show what would have happened in the past under specific conditions. Markets change, and any strategy can experience drawdowns or extended losing periods.⚠️ Risk management is your responsibility. The default settings risk 100% of equity per trade for backtesting purposes. In live trading, appropriate position sizing based on your risk tolerance is essential.⚠️ Slippage and commissions matter. The backtest includes 0.02% commission and 1 tick slippage, but actual execution costs vary by broker and market conditions.Best PracticesTest on your specific market — Results vary significantly across different instrumentsUse appropriate position sizing — Never risk more than you can afford to loseCombine with your own analysis — No indicator replaces understanding market contextPaper trade first — Validate the strategy matches your trading style before risking capitalAlertsTwo alerts are available:MDZ Long Entry: Fires when all entry conditions are metUptrend Started: Fires when EMA stack first aligns bullishMethodologyThis strategy is based on the principle that trend continuation has better odds than reversal when multiple timeframe momentum indicators agree. By requiring five independent confirmations, it filters out weak setups at the cost of fewer total signals.The ATR-based exits adapt to current volatility rather than using fixed pip/point targets, which helps the strategy adjust to different market conditions.Questions? Leave a comment below.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView