Trend Strength Meter Using ADX in a Compact Dashboard
Info
The Trend Strength Meter Using ADX in a Compact Dashboard is a Indicator for MetaTrader 5 that trend strength meter using adx in a compact dashboard the idea behind it the average directional index (adx) by j. Welles Wilder measures how strong a trend is, regardless of its direction.
Usage
This tool is typically used for trend following strategies across multiple currency pairs.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Trend Strength Meter Using ADX in a Compact Dashboard
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
Trend Strength Meter Using ADX in a Compact Dashboard The idea behind it The Average Directional Index (ADX) by J.
Typical Use Case
This Indicator excels in trend following on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: MTF Trend Dashboard — trend, position and volatility on six timeframes at a glance - another powerful indicator for MetaTrader 5 traders.
Also recommended: Gold Donchian Breakout Channel (Non-Repainting with HTF Trend Filter) - similar indicator with strong performance on MetaTrader 5.
Trend Strength Meter Using ADX in a Compact Dashboard
The idea behind it
The Average Directional Index (ADX) by J. Welles Wilder measures
how strong
a trend is, regardless of its direction. Low values mean that price is ranging; rising values mean that a directional move is developing. The two companion lines, +DI and −DI, show
which side
is currently stronger.
Checking several timeframes one by one means switching charts. This indicator reads the standard
iADX
indicator for up to four timeframes and presents the result in one small panel in the corner of the chart. Each row answers three questions at a glance: how strong is the trend, is it bullish or bearish, and do the timeframes agree?
The strength class is derived from three configurable ADX levels: below
InpLevelWeak
there is no trend, from
InpLevelWeak
the trend is weak, from
InpLevelStrong
it is strong, and from
InpLevelVeryStrong
it is very strong.
How to interpret it
TF
– the timeframe of the row. The last row,
ALL
, is the summary.
ADX value
– the ADX of the row's timeframe (the last closed bar by default).
Strength bar
– a horizontal bar whose length is proportional to the ADX (full length at ADX 50). Its color shows the strength class: no trend, weak, strong or very strong.
Strength class
– the text of the class:
No trend
,
Weak
,
Strong
or
Very strong
.
Direction
–
▲ Bull
when +DI is above −DI,
▼ Bear
when −DI is above +DI. Direction is only meaningful when the strength is not "No trend".
Summary row (ALL)
– the average ADX of all rows with available data and its class. The direction shows
Bull
or
Bear
only if
all
timeframes point the same way; otherwise it shows
Mixed
.
n/a
and
--
– the data of that timeframe is not available yet (history is still loading); the dashboard retries automatically.
Fig. 1. ADX Trend Strength dashboard for M15, H1, H4 and D1 with the summary row on an M15 chart; black & white image per Code Base image guidelines (colors are configurable).
External variables (inputs)
Input
Default
Purpose
InpADXPeriod
14
Period of the ADX (2 or more).
InpUseClosedBar
true
true: values of the last closed bar (stable, updated when a new bar of that timeframe opens); false: values of the forming bar (updated up to four times per second).
InpTF1
PERIOD_M15
Timeframe of row 1 (PERIOD_CURRENT = chart timeframe).
InpTF2
PERIOD_H1
Timeframe of row 2.
InpTF3
PERIOD_H4
Timeframe of row 3.
InpTF4
PERIOD_D1
Timeframe of row 4.
InpLevelWeak
20.0
ADX value from which the trend is classified as weak.
InpLevelStrong
25.0
ADX value from which the trend is classified as strong.
InpLevelVeryStrong
40.0
ADX value from which the trend is classified as very strong. Levels must satisfy 0 < weak < strong < very strong < 100.
InpShowTitle
true
Shows the title row.
InpShowSummary
true
Shows the summary row (average ADX and direction agreement).
InpX
10
Distance of the dashboard from the left chart edge, in pixels.
InpY
20
Distance of the dashboard from the top chart edge, in pixels.
InpFontSize
9
Font size (7–14). The whole dashboard scales with it.
InpBackColor
C'20,24,32'
Background color of the panel.
InpTextColor
clrWhiteSmoke
Color of the texts and ADX values.
InpBullColor
clrLimeGreen
Color of the bullish direction.
InpBearColor
clrTomato
Color of the bearish direction.
InpColorNoTrend
clrGray
Color of the strength bar and text for "No trend".
InpColorWeak
clrGoldenrod
Color for "Weak".
InpColorStrong
clrDodgerBlue
Color for "Strong".
InpColorVeryStrong
clrOrange
Color for "Very strong".
Recommended use
Symbols and timeframes:
works on any symbol. The default rows (M15, H1, H4, D1) suit an intraday chart; choose timeframes from the one you trade up to the one that defines the larger trend. The chart timeframe itself does not matter, the indicator can sit on any chart of the symbol.
Reading the dashboard:
a common approach is to look for agreement – strong trends in the same direction on several timeframes – and to be cautious when higher timeframes show "No trend" or the summary is "Mixed". ADX does not predict reversals: it is a lagging measure, and it can fall while price still trends slowly.
Levels:
20 and 25 are widely used thresholds; the "very strong" level of 40 is a convention, not a rule. Adjust all three levels to the instrument and to your own testing.
Closed or forming bar:
the closed-bar mode does not repaint and is the recommended default. The forming-bar mode reacts faster, but its values can change until the bar closes.
History:
the ADX of every timeframe needs enough bars. If a timeframe has not been opened yet, the terminal loads its history in the background and the row shows "n/a" until the data arrives.
Efficiency:
the indicator has no price history to recalculate. It keeps one
iADX
handle per row, reads three values per row, and refreshes a row only when a new bar of that timeframe opens (or four times per second in forming-bar mode); the objects are redrawn only when a value changes.
Account types:
the indicator does not trade and works identically on netting and hedging accounts.
All objects (panel, labels, bars) carry a unique prefix and are removed, and the indicator handles are released, when the indicator is deleted or reinitialized. The dashboard is a tool for context; combine it with your own entry rules and risk management.
You may also like: MTF Trend Dashboard — trend, position and volatility on six timeframes at a glance - excellent alternative for indicator users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 0
#property indicator_plots 0
input group "ADX"
input int InpADXPeriod = 14;
input bool InpUseClosedBar = true;
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.