Skip to content
FXNook HubBeta

Alex / Multi-Timeframe Trend Dashboard for MT4

MetaTrader 4IndicatorMITCompiled · build 2425
AlexFirst version.build 2425v1.05 hours ago1 version
  • FXN_TrendDashboard.mq4First version.10 KB
  • FXN_TrendDashboard.ex4Compiled by the Lab with MetaEditor build 242524 KB
README

Overview

A small panel that shows the trend on M5, M15, H1, H4 and D1 from the EMA slope and price versus the EMA, with an overall bias line.

Checking five timeframes before every trade takes time. This dashboard puts the trend of M5, M15, H1, H4 and D1 in one small panel on any chart, using the same simple rule for each, so you can see at a glance whether the timeframes agree.

How it works

For each timeframe, on the last closed bar:

  • EMA now = EMA(EMA period) of the close at bar 1, EMA before = the same EMA Slope bars bars earlier.
  • Slope = (EMA now - EMA before) / ATR(ATR period), so the slope is measured in ATRs and is comparable across symbols.
  • UP when the slope is above +Flat threshold and the close is above the EMA.
  • DOWN when the slope is below -Flat threshold and the close is below the EMA.
  • FLAT in every other case (weak slope, or price on the other side of the EMA).

The panel shows the timeframe, the trend, the slope value and whether price is above or below the EMA. The last line counts how many timeframes are up, down and flat. Each timeframe is recalculated once when it gets a new bar, and a 5-second timer covers quiet markets and history loading.

Inputs

InputDefaultWhat it does
EMA period50EMA used on every timeframe
Slope bars5Bars over which the EMA slope is measured
ATR period14ATR used to scale the slope
Flat threshold0.10Slopes smaller than this many ATRs count as flat
CornerLeft upperPanel corner
X / Y distance10 / 25Panel offset in pixels
Font size9Text size (the panel scales with it)
Up / down / flat colourSeaGreen / Tomato / GoldenrodTrend colours
Text / background / border colourSilver / dark / greyPanel colours

How to use it

  1. In MetaTrader open File > Open Data Folder.
  2. MT4: copy FXN_TrendDashboard.mq4 into MQL4/Indicators. MT5: copy FXN_TrendDashboard.mq5 into MQL5/Indicators.
  3. Right-click Indicators in the Navigator and choose Refresh (or restart the terminal). The file compiles on first use; you can also open it in MetaEditor and press Compile.
  4. Drag the indicator onto a chart and set the inputs.

Attach it to any chart; it works the same on every chart timeframe. Many traders look for trades only when the higher timeframes (H1, H4, D1) agree, and use M5 / M15 for timing. Raise Flat threshold to 0.2-0.3 to call fewer trends; lower it to call trends earlier.

Good to know

  • Values come from closed bars, so a timeframe only changes when it gets a new bar. The forming bar is ignored on purpose.
  • D1 needs at least EMA period + Slope bars daily bars of history; until then it shows "...".
  • A row can stay FLAT for a long time in ranges; that is expected.
  • It shows information only and does not trade.

Trading carries risk. Test on a demo account first; past results do not predict future results.

At a glance

What it is
A free Indicator for MetaTrader 4, written in MQL4.
What it does
A small panel that shows the trend on M5, M15, H1, H4 and D1 from the EMA slope and price versus the EMA, with an overall bias line.
Shared by
Alex
Licence
MIT
Version
1.0 (1 Dec 2026)
Settings
16 inputs
Lab check
Compiled with MetaEditor build 2425 for MT4 on 1 Dec 2026: 0 errors, 0 warnings.
Price
Free to download

Settings read from the code

InputTypeDefaultNote
InpSep1string=== Trend rule ===---- Trend rule ----
InpEmaPeriodint50EMA period on every timeframe
InpSlopeBarsint5EMA slope measured over this many closed bars
InpAtrPeriodint14ATR period used to scale the slope
InpFlatAtrdouble0.10Slope below this many ATRs counts as flat
InpSep2string=== Panel ===---- Panel ----
InpCornerENUM_BASE_CORNERCORNER_LEFT_UPPERChart corner
InpXint10Horizontal distance from the corner in pixels
InpYint25Vertical distance from the corner in pixels
InpFontSizeint9Font size
InpUpColorcolorclrMediumSeaGreenUp trend colour
InpDownColorcolorclrTomatoDown trend colour
InpFlatColorcolorclrGoldenrodFlat colour
InpTextColorcolorclrSilverText colour
InpBackColorcolorC'20,24,32'Panel background
InpEdgeColorcolorC'60,70,90'Panel border

How to use it

  1. Download the compiled file (or the source and compile it in MetaEditor).
  2. Put it in MetaTrader: File → Open Data Folder → MQL4 → Indicators, then refresh the Navigator.
  3. Test it on a demo account before any real money.
  4. Want changes? Open a copy in your Lab and ask for them in plain words.