Weighted Directional Movement Index

The indicator can be used on any asset and any timeframe, making it versatile for stocks, forex, crypto, and commodities.
How to Use This Indicator:
Trend Reversals → When the blue line (+DI) crosses above the orange line (-DI), it signals a potential bullish trend.
Bearish Trend Shift → When -DI (orange) crosses above +DI (blue), it indicates a possible bearish trend.
Pullback & Re-Entry → If the lines briefly touch or converge and then separate again, it suggests a pullback and potential trend continuation.
This version of DMI allows you to apply different weightings to the trend calculation, helping filter out noise and improve accuracy.
1️⃣ Weighting Methods:
Users can select from multiple weighting options to refine trend detection based on different market conditions:
✅ None (Default DMI Calculation)
Uses the standard +DI and -DI values with no modifications.
✅ Volume Weighting
Adjusts DMI based on traded volume.
Higher volume days increase the weight of the directional movement, making strong-volume moves more impactful.
✅ Volume Delta Weighting
Uses a basic volume delta approximation ((close - open) * volume).
If the price closes higher, upward moves are weighted more.
If the price closes lower, downward moves get greater weighting.
This method can help highlight aggressive price movements with strong participation.
✅ ATR Ratio Weighting (Volatility-Adjusted)
Adjusts DMI based on how today’s ATR compares to its average ATR.
If volatility is higher than usual, the DI values are boosted, helping emphasize strong trends.
If volatility is low, weighting is reduced, helping avoid false signals in quiet markets.
✅ Bollinger Band Position Weighting
Adjusts DI values based on how far price is from the Bollinger Band midpoint.
If price is above the middle band, +DI is amplified and -DI is dampened (bullish bias).
If price is below the middle band, -DI is amplified and +DI is dampened (bearish bias).
This method is useful for mean-reversion strategies and identifying breakouts from Bollinger Band squeezes.
How This Can Be Useful for Traders:
Trend Followers can use crossovers (+DI/-DI) to confirm trend direction shifts.
Swing Traders can watch for pullbacks and re-entries when the lines touch and diverge again.
Volatility-Based Traders may prefer ATR Ratio weighting to emphasize trends during high-volatility conditions.
Breakout Traders might benefit from Bollinger Band weighting, identifying when price moves away from a consolidation zone.
Volume-Based Traders can use Volume or Volume Delta weighting to prioritize trends with strong participation.
Alerts Included
🚨 Bullish Trend Alert: Triggered when +DI crosses above -DI
🚨 Bearish Trend Alert: Triggered when -DI crosses above +DI
Indicator is much more accurate compared to the traditional Directional Movement Index if you apply the weighting. I personally find the Bollinger Band and then Volume weighting highly useful.
The indicator gives signals a lot earlier compared to other indicators, whilst remaining as accurate as possible.
Higher times frame such as the 15 minute and 1 hour I find work best.
✅ New checkbox: "Use Heikin-Ashi Calculation"
✅ When enabled, the indicator calculates +DI/-DI using Heikin-Ashi values
✅ When disabled, it uses standard price data (default)
✅ All existing features (weighting methods, trend detection, alerts) remain unchanged
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi Robpoll secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
I share sensitive Natgas information via my Patreon everyday.
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diberikan kebenaran oleh penulis mempunyai akses kepada skrip ini dan ini selalunya memerlukan pembayaran. Anda boleh menambahkan skrip kepada kegemaran anda tetapi anda hanya boleh menggunakannya selepas meminta kebenaran dan mendapatkannya daripada penulis — ketarhui lebih lanjut di sini. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi Robpoll secara terus.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
I share sensitive Natgas information via my Patreon everyday.