PROTECTED SOURCE SCRIPT
Mawhoob (TD - Trend Direction) - v1.1

Mawhoob (Trend Direction - TD) Indicator v1.1
Professional Trend Analysis & Market Context Dashboard
----------------------------------------------------
🎯 Overview
----------------------------------------------------
Mawhoob (Trend Direction - TD) is a comprehensive, professional-grade technical analysis tool designed to provide traders with multi-dimensional market insights. This advanced indicator combines a proprietary adaptive trend line with real-time market context data, offering a complete market analysis solution in one elegant package.
✨ Key Features ✨
----------------------------------------------------
📈 Trend Direction Line (TD Line)
----------------------------------------------------
Intelligent Moving Average System: Utilizes a sophisticated blend of EMA, RMA, and WMA with smart adaptive error correction.
1- Dynamic Color Coding:
2- Customizable Parameters:
3- Visual Bands: Optional upper and lower bands that create a dynamic channel around the trend line.
----------------------------------------------------
📊 Real-Time Market Dashboard
----------------------------------------------------
A comprehensive information panel displaying multiple technical indicators and market dominance metrics.
Technical Indicators Section:
1- RSI (Relative Strength Index)
2- MACD (Moving Average Convergence Divergence)
3- ADX (Average Directional Index)
Market Dominance Section:
1- DXY (US Dollar Index)
2- BTC.D (Bitcoin Dominance)
3- USDT.D (Tether Dominance)
All dominance metrics feature:
----------------------------------------------------
🔔 Alert & Signal System
----------------------------------------------------
----------------------------------------------------
🎨 Visual Customization
----------------------------------------------------
----------------------------------------------------
📚 Use Cases
----------------------------------------------------
For Day Traders
For Swing Traders
For Crypto Traders
For Multi-Market Analysis
----------------------------------------------------
⚙️ Settings & Customization
----------------------------------------------------
Trend Direction Settings
Dashboard Settings
Alert & Signal Settings
----------------------------------------------------
🎓 Best Practices
----------------------------------------------------
----------------------------------------------------
🚀 What Makes This Indicator Special ?
----------------------------------------------------
✅ All-in-One Solution: Multiple professional indicators in one clean package.
✅ Adaptive System: Responds to market conditions, not just static calculations.
✅ Professional Dashboard: Institutional-grade information display.
✅ Real-Time Data: Live updates from multiple markets and assets.
✅ Highly Customizable: Tailor every aspect to your trading style.
✅ Clean Code: Optimized Pine Script v6 for maximum performance.
✅ No Repainting: Uses (barstate.isconfirmed) to ensure calculations only occur on closed bars.
✅ Resource Efficient: Smooth performance even with all features enabled.
----------------------------------------------------
🎯 Perfect For
----------------------------------------------------
----------------------------------------------------
📝 Notes
----------------------------------------------------
----------------------------------------------------
💡 Pro Tips
----------------------------------------------------
----------------------------------------------------
⚠️ Important Notes
----------------------------------------------------
----------------------------------------------------
🔄 Updates & Support
----------------------------------------------------
Current Version: v1.1
This indicator is actively maintained and updated. Future versions may include additional features and improvements based on user feedback.
----------------------------------------------------
🙏 Acknowledgments
----------------------------------------------------
Created & designed by: mawhoobx
📝 Remember: The best indicator is the one combined with proper risk management, discipline, and a solid trading plan. This tool is designed to assist your analysis, not replace your judgment.
Trade Smart. Trade Safe. Trade Profitable.
Professional Trend Analysis & Market Context Dashboard
----------------------------------------------------
🎯 Overview
----------------------------------------------------
Mawhoob (Trend Direction - TD) is a comprehensive, professional-grade technical analysis tool designed to provide traders with multi-dimensional market insights. This advanced indicator combines a proprietary adaptive trend line with real-time market context data, offering a complete market analysis solution in one elegant package.
✨ Key Features ✨
----------------------------------------------------
📈 Trend Direction Line (TD Line)
----------------------------------------------------
Intelligent Moving Average System: Utilizes a sophisticated blend of EMA, RMA, and WMA with smart adaptive error correction.
1- Dynamic Color Coding:
- 🟢 Green: Bullish trend (price momentum upward).
- 🔴 Red: Bearish trend (price momentum downward).
2- Customizable Parameters:
- Main Period (1-200): Control long-term vs. short-term sensitivity.
- Fast Period (0-50): Fine-tune responsiveness to price changes.
- Weighting Factor (0-3): Adjust current price influence on the trend line.
3- Visual Bands: Optional upper and lower bands that create a dynamic channel around the trend line.
----------------------------------------------------
📊 Real-Time Market Dashboard
----------------------------------------------------
A comprehensive information panel displaying multiple technical indicators and market dominance metrics.
Technical Indicators Section:
1- RSI (Relative Strength Index)
- Current value with color-coded momentum indication.
- Direction status: UP / DOWN / NEUTRAL.
- Customizable overbought/oversold levels.
- Includes RSI SMA for trend confirmation.
2- MACD (Moving Average Convergence Divergence)
- Real-time MACD line value.
- Trend direction based on MACD vs. Signal line relationship.
- Fully customizable fast, slow, and signal periods.
3- ADX (Average Directional Index)
- Trend strength measurement.
- Color-coded display: Strong vs. Weak trend.
- Adjustable strength threshold.
Market Dominance Section:
1- DXY (US Dollar Index)
- Real-time dollar strength tracking.
- Direction indicator for forex correlation analysis.
2- BTC.D (Bitcoin Dominance)
- Bitcoin market dominance percentage.
- Useful for crypto market sentiment analysis.
3- USDT.D (Tether Dominance)
- Stablecoin dominance tracking.
- Risk-on/risk-off market indicator.
All dominance metrics feature:
- Customizable timeframe selection.
- UP/DOWN/NEUTRAL directional indicators.
- Color-coded values for quick visual assessment.
----------------------------------------------------
🔔 Alert & Signal System
----------------------------------------------------
- Price Crossover Alerts: Get notified when price crosses above or below the TD line.
- Smart Alert Logic: Filters out neutral/flat market conditions to reduce noise.
- Visual Signals: Optional triangle markers on chart (▲ bullish, ▼ bearish).
- Once-Per-Bar Frequency: Prevents alert spam while ensuring you don't miss opportunities.
----------------------------------------------------
🎨 Visual Customization
----------------------------------------------------
- Candle Color Mode: Option to color candles based on trend direction.
- Dashboard Positioning: Choose LEFT, RIGHT, or CENTER placement.
- Text Size Options: TINY, SMALL, NORMAL, or LARGE for optimal readability.
- Customizable colors for Bullish/Bearish trend lines.
- Customizable colors for dashboard backgrounds and borders.
- Customizable colors for UP/DOWN/NEUTRAL status indicators.
----------------------------------------------------
📚 Use Cases
----------------------------------------------------
For Day Traders
- Quick trend identification with color-coded TD line.
- Real-time momentum gauges (RSI, MACD).
- Instant crossover alerts for entry/exit timing.
For Swing Traders
- Medium-term trend direction with adjustable periods.
- ADX strength indicator for high-probability setups.
- Market dominance context for broader market analysis.
For Crypto Traders
- BTC.D and USDT.D tracking for altcoin season detection.
- Integrated multi-indicator analysis.
- Customizable timeframes for dominance metrics.
For Multi-Market Analysis
- DXY correlation for forex and commodities.
- Comprehensive dashboard for quick market scans.
- Cross-market sentiment analysis.
----------------------------------------------------
⚙️ Settings & Customization
----------------------------------------------------
Trend Direction Settings
- Main TD Period: Adjust overall trend sensitivity.
- Fast TD Period: Control responsiveness (0 = no smoothing).
- Weighting Factor: Balance between historical and current prices.
- Line width and colors for visual preference.
- Optional trend bands with adjustable transparency.
Dashboard Settings
- Toggle individual indicators on/off.
- Customize all indicator periods and thresholds.
- Choose timeframe for dominance indices.
- Adjust colors, position, size, and borders.
- Complete visual control for your trading style.
Alert & Signal Settings
- Enable/disable crossover alerts.
- Optional visual signals on chart.
- Smart built-in filtering to reduce false signals.
----------------------------------------------------
🎓 Best Practices
----------------------------------------------------
- Trend Following: Use the TD line as your primary trend filter - trade with the color.
- Confirmation: Combine TD direction with RSI and MACD for higher probability setups.
- Strength Filter: Use ADX to avoid weak/choppy trends.
- Market Context: Check dominance indicators for broader market sentiment.
- Alerts: Set alerts to catch reversals without constant chart watching.
----------------------------------------------------
🚀 What Makes This Indicator Special ?
----------------------------------------------------
✅ All-in-One Solution: Multiple professional indicators in one clean package.
✅ Adaptive System: Responds to market conditions, not just static calculations.
✅ Professional Dashboard: Institutional-grade information display.
✅ Real-Time Data: Live updates from multiple markets and assets.
✅ Highly Customizable: Tailor every aspect to your trading style.
✅ Clean Code: Optimized Pine Script v6 for maximum performance.
✅ No Repainting: Uses (barstate.isconfirmed) to ensure calculations only occur on closed bars.
✅ Resource Efficient: Smooth performance even with all features enabled.
----------------------------------------------------
🎯 Perfect For
----------------------------------------------------
- Trend identification and following.
- Multi-timeframe analysis.
- Market sentiment tracking.
- Entry and exit timing.
- Portfolio management decisions.
- Risk assessment through trend strength.
- Correlation analysis across markets.
----------------------------------------------------
📝 Notes
----------------------------------------------------
- All calculations are performed on confirmed bars to prevent repainting.
- Dashboard updates in real-time as market conditions change.
- Dominance indices (DXY, BTC.D, USDT.D) require market data access.
- Best results achieved when combined with proper risk management.
- Suitable for all markets: stocks, forex, crypto, commodities, indices.
----------------------------------------------------
💡 Pro Tips
----------------------------------------------------
- Start with default settings and adjust based on your timeframe.
- Lower periods (5-10) for scalping, higher (20-50) for swing trading.
- Use the dashboard as a quick health check for your current positions.
- Combine TD line with support/resistance for confluence.
- Watch dominance indicators for early market regime changes.
----------------------------------------------------
⚠️ Important Notes
----------------------------------------------------
- This indicator is for educational and informational purposes only.
- Always confirm signals with your own analysis before trading.
- Use proper risk management and position sizing.
- The indicator works on all timeframes and instruments.
- Past performance does not guarantee future results.
----------------------------------------------------
🔄 Updates & Support
----------------------------------------------------
Current Version: v1.1
This indicator is actively maintained and updated. Future versions may include additional features and improvements based on user feedback.
----------------------------------------------------
🙏 Acknowledgments
----------------------------------------------------
Created & designed by: mawhoobx
📝 Remember: The best indicator is the one combined with proper risk management, discipline, and a solid trading plan. This tool is designed to assist your analysis, not replace your judgment.
Trade Smart. Trade Safe. Trade Profitable.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
✦ Professional Pine Script® Developer & Trader ✦
Contact info:
direct.me/mawhoobx
Contact info:
direct.me/mawhoobx
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
✦ Professional Pine Script® Developer & Trader ✦
Contact info:
direct.me/mawhoobx
Contact info:
direct.me/mawhoobx
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.