Advanced ADX Multi Timeframe
- Göstergeler
- Minh Vuong Pham
- Sürüm: 2.0
Version 2.00 | MetaTrader 5
Overview
The ADX Advanced MTF is a professional-grade indicator for MetaTrader 5 that combines the classic Average Directional Index (ADX) with multi-timeframe analysis and an elegant on-chart information panel. It provides traders with a comprehensive view of trend strength and direction across multiple timeframes simultaneously, enabling faster and more confident trading decisions.
Key Highlights
- Real-time ADX, +DI, and -DI plotted in a separate indicator window
- On-chart panel displaying data from 3 timeframes at once (current + 2 configurable)
- Color-coded trend strength badges and progress bars
- Automatic confluence detection across all timeframes
- Fully customizable panel position, colors, font, and levels
- Optional alerts on trend direction changes
Installation
- Download the file ADX_Advanced_MTF.mq5 .
- Open MetaTrader 5 and navigate to File → Open Data Folder.
- Go to MQL5/Indicators/ (or any subfolder you prefer).
- Paste the .mq5 file into that directory.
- Return to MT5, open the Navigator panel (Ctrl+N), right-click Indicators, and select Refresh.
- Find ADX_Advanced_MTF in the list, double-click or drag it onto your chart.
- MT5 will auto-compile the indicator. If it does not, open MetaEditor (F4), locate the file, and press Compile (F7).
Indicator Window
The indicator draws three lines in a separate sub-window below the main chart:
| Line | Color | Description |
|---|---|---|
| ADX | Dodger Blue (thick) | Overall trend strength — higher means stronger trend regardless of direction |
| +DI | Lime Green | Positive Directional Index — measures bullish pressure |
| -DI | Orange Red | Negative Directional Index — measures bearish pressure |
How to Read the Lines
- When +DI is above -DI, buyers are dominant → potential bullish trend.
- When -DI is above +DI, sellers are dominant → potential bearish trend.
- The ADX line tells you how strong the trend is, not its direction.
- A rising ADX means the trend (bullish or bearish) is strengthening.
- A falling ADX means the trend is weakening or the market is entering a range.
Level Lines
Four horizontal reference levels are drawn in the sub-window by default:
| Level | Value | Meaning |
|---|---|---|
| Weak | 20 | Below this, the market is likely ranging — no clear trend |
| Strong | 25 | A confirmed trend is developing |
| Very Strong | 40 | The trend has significant momentum |
| Extreme | 50 | Exceptionally powerful trend — watch for exhaustion |
These levels are fully configurable in the input parameters.
On-Chart Information Panel
The panel is drawn directly on the main chart window (not the indicator sub-window) and provides a consolidated multi-timeframe dashboard.
Panel Layout
┌─────────────────────────────────────────┐ │ ◆ ADX ADVANCED MTF EURUSD | H4 | P:14 │ ← Header ├─────────────────────────────────────────┤ │ ▎ CURRENT (H4) │ │ ADX: 32.45 ████████░░ STRONG │ ← Current TF │ +DI: 28.10 -DI: 15.30 [BULLISH] │ ├─────────────────────────────────────────┤ │ ▎ M5 │ │ ADX: 18.70 █████░░░░░ NO TREND │ ← Timeframe 1 │ +DI: 14.20 -DI: 16.80 [RANGING] │ ├─────────────────────────────────────────┤ │ ▎ H1 │ │ ADX: 35.60 █████████░ STRONG │ ← Timeframe 2 │ +DI: 30.40 -DI: 12.10 [BULLISH] │ ├─────────────────────────────────────────┤ │ ★ ▲▲ BULLISH BIAS │ ← Confluence Signal ├─────────────────────────────────────────┤ │ DI Spread: +12.80 Avg ADX: 28.92 │ ← Extra Metrics ├─────────────────────────────────────────┤ │ Updated: 14:32:07 ◆ADX ◆+DI ◆-DI │ ← Footer └─────────────────────────────────────────┘
Panel Sections Explained
Header — Shows the indicator name, current symbol, chart timeframe, and ADX period.
Timeframe Blocks (×3) — Each block displays:
- ADX value with a color-coded progress bar showing strength visually.
- +DI and -DI values in green and red respectively.
- Trend badge — a colored label showing BULLISH, BEARISH, or RANGING.
Confluence Signal — Analyzes all three timeframes together:
| Signal | Condition | Meaning |
|---|---|---|
| ▲▲▲ STRONG BULLISH CONFLUENCE | All 3 TFs bullish with ADX ≥ 20 | High-confidence long setup |
| ▼▼▼ STRONG BEARISH CONFLUENCE | All 3 TFs bearish with ADX ≥ 20 | High-confidence short setup |
| ▲▲ BULLISH BIAS | 2 of 3 TFs bullish | Moderate bullish lean |
| ▼▼ BEARISH BIAS | 2 of 3 TFs bearish | Moderate bearish lean |
| ◆◆ MIXED / NO CLEAR SIGNAL | No majority agreement | Stay cautious or wait |
Extra Metrics:
- DI Spread — The difference between +DI and -DI on the current timeframe. A large positive spread confirms strong bullish momentum; a large negative spread confirms bearish momentum.
- Avg ADX — The average ADX across all three timeframes. Useful for gauging overall market trendiness.
Footer — Displays the last update time and a color legend.
Input Parameters
ADX Settings
| Parameter | Default | Description |
|---|---|---|
| ADX Period | 14 | Lookback period for the ADX calculation. Standard is 14. Lower values (e.g., 7–10) react faster but produce more noise. Higher values (e.g., 20–25) are smoother but lag more. |
| Applied Price | Close | The price type used for calculations. |
Multi-Timeframe
| Parameter | Default | Description |
|---|---|---|
| Timeframe 1 | M5 | First additional timeframe displayed in the panel. |
| Timeframe 2 | H1 | Second additional timeframe displayed in the panel. |
You can set these to any MT5 timeframe (M1, M5, M15, M30, H1, H4, D1, W1, MN1). The current chart timeframe is always included automatically as the third reference.
Tip: Choose timeframes that complement each other. For example:
- Scalping: M1 (current) + M5 + M15
- Intraday: M5 (current) + M15 + H1
- Swing: H1 (current) + H4 + D1
- Position: H4 (current) + D1 + W1
Trend Levels
| Parameter | Default | Description |
|---|---|---|
| Weak Trend Level | 20 | ADX below this value indicates no trend (ranging market). |
| Strong Trend Level | 25 | ADX above this confirms a trending market. |
| Very Strong Trend Level | 40 | Indicates powerful trend momentum. |
| Extreme Trend Level | 50 | Extremely rare; often precedes trend exhaustion. |
Panel Settings
| Parameter | Default | Description |
|---|---|---|
| Panel X Position | 20 | Horizontal offset in pixels from the chosen corner. |
| Panel Y Position | 30 | Vertical offset in pixels from the chosen corner. |
| Panel Width | 320 | Width of the panel in pixels. |
| Panel Corner | Upper Left | Which chart corner the panel anchors to. Options: Upper Left, Upper Right, Lower Left, Lower Right. |
| Font Size | 9 | Base font size for panel text. |
| Panel Opacity | 220 | Transparency of the panel background (0 = fully transparent, 255 = fully opaque). |
Panel Colors
| Parameter | Default | Description |
|---|---|---|
| Panel Background | Dark navy (15,15,25) | Main background color. |
| Panel Border | Muted blue (40,60,100) | Border around the panel. |
| Header Background | Deep blue (20,30,55) | Header bar fill. |
| Title Color | Light blue (100,180,255) | Title text color. |
| Text Color | Light gray (180,195,220) | General label color. |
| Bullish Color | Green (0,230,118) | Color for bullish elements. |
| Bearish Color | Red (255,82,82) | Color for bearish elements. |
| Neutral Color | Amber (255,193,7) | Color for weak/neutral states. |
Visual Settings
| Parameter | Default | Description |
|---|---|---|
| Show Level Lines | true | Display horizontal ADX strength levels in the sub-window. |
| Show DI Histogram | true | Reserved for future histogram background feature. |
| Show Alerts | false | Enable pop-up alerts when trend direction changes on TF1 or TF2. |
Trading Strategies
Strategy 1 — Confluence Entry
This is the primary strategy the indicator is designed for.
Setup: Wait for the confluence signal to show STRONG BULLISH CONFLUENCE or STRONG BEARISH CONFLUENCE (all 3 timeframes agree).
Entry Rules (Long):
- All three timeframes show +DI > -DI.
- ADX is above 20 on all three timeframes (confirmed trending).
- ADX is rising (trend is strengthening, not fading).
- Enter on a pullback to a support level or moving average.
Exit Rules:
- When any timeframe flips from BULLISH to BEARISH or RANGING.
- When ADX starts declining on 2 or more timeframes.
- When the confluence signal downgrades from STRONG to BIAS or MIXED.
Strategy 2 — DI Crossover with Strength Filter
Entry Rules (Long):
- +DI crosses above -DI on the current timeframe.
- ADX is above 25 (confirming trend strength, not just a temporary cross).
- The higher timeframe (TF2) also shows BULLISH direction.
Exit Rules:
- -DI crosses back above +DI.
- ADX drops below 20.
Strategy 3 — Trend Exhaustion
Setup: Look for ADX reaching the Extreme level (50+).
Observation:
- ADX above 50 indicates a very mature trend.
- When ADX begins to decline from extreme levels while DI lines start converging, the trend may be exhausting.
- This is not a reversal signal by itself — combine with price action or other indicators.
Tips and Best Practices
Panel position: If the panel overlaps important price action, adjust Panel X Position , Panel Y Position , or change Panel Corner to move it to a less obstructive area. The Upper Right or Lower Right corners often work well.
Avoid low ADX trades: When the confluence signal shows MIXED and the average ADX is below 20, the market is likely choppy. Range-bound strategies (mean reversion, support/resistance bounces) are more appropriate than trend-following.
Combine with price action: The ADX tells you the strength and direction of a trend, but not when to enter. Use candlestick patterns, support/resistance levels, or other confirmation tools for timing entries.
Higher timeframe priority: When TF1 and TF2 disagree, give more weight to the higher timeframe. A bullish signal on H1 with a bearish signal on M5 suggests the M5 move may be a pullback within a larger H1 uptrend.
Alert feature: Enable Show Alerts if you want to be notified when the trend direction changes on your configured timeframes. This is useful for monitoring multiple charts without staring at each one.
ADX period tuning: The default period of 14 works well for most markets. For highly volatile instruments (e.g., crypto, small-cap stocks), consider increasing to 18–21. For slower markets (e.g., major forex pairs on daily charts), 10–12 can provide earlier signals.
Color Coding Reference
Trend Strength Colors
| ADX Range | Label | Color | Interpretation |
|---|---|---|---|
| 0 – 19.99 | NO TREND | Gray | Market is ranging; avoid trend strategies |
| 20 – 24.99 | WEAK | Amber | Trend is forming but not yet confirmed |
| 25 – 39.99 | STRONG | Light Blue | Confirmed trend with good momentum |
| 40 – 49.99 | V.STRONG | Light Red | Powerful trend; stay with it but watch for signs of exhaustion |
| 50+ | EXTREME | Light Red | Exceptionally strong trend; rare and often unsustainable |
Direction Badge Colors
| Badge | Color | Meaning |
|---|---|---|
| BULLISH | Green | +DI > -DI and ADX ≥ 20 |
| BEARISH | Red | -DI > +DI and ADX ≥ 20 |
| RANGING | Amber | ADX < 20 regardless of DI positions |
Troubleshooting
Panel not visible: Make sure the indicator is attached to the chart (check the sub-window for the ADX lines). The panel is drawn on the main chart window. If it is hidden behind other objects, try changing the Panel Corner or adjusting X/Y positions.
Data shows 0.00 for a timeframe: The requested timeframe may not have enough historical data loaded. Open a chart of that timeframe briefly to force MT5 to download the history, then return to your original chart.
Compilation errors: Ensure you are using MetaTrader 5 (not MT4). The indicator uses MQL5 syntax and is not compatible with MQL4.
Panel overlaps other indicators: Adjust Panel X Position and Panel Y Position , or switch to a different Panel Corner to avoid collisions.
Changelog
| Version | Changes |
|---|---|
| 2.00 | Initial release with MTF panel, confluence detection, progress bars, alerts, and full customization. |
This indicator is provided for educational and informational purposes. Always practice proper risk management and test on a demo account before using in live trading.

Kullanıcı değerlendirmeye herhangi bir yorum bırakmadı