# Multi-Timeframe Trend Dashboard for MT4

> 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.

## 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
- Page: https://hub.fxnook.com/multi-timeframe-trend-dashboard-for-mt4
- Download (compiled): https://hub.fxnook.com/download/4c811659-e43d-41f0-b6bb-13be09b71d88/compiled
- Download (source): https://hub.fxnook.com/download/4c811659-e43d-41f0-b6bb-13be09b71d88/source

## About

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

| Input | Default | What it does |
|---|---|---|
| EMA period | 50 | EMA used on every timeframe |
| Slope bars | 5 | Bars over which the EMA slope is measured |
| ATR period | 14 | ATR used to scale the slope |
| Flat threshold | 0.10 | Slopes smaller than this many ATRs count as flat |
| Corner | Left upper | Panel corner |
| X / Y distance | 10 / 25 | Panel offset in pixels |
| Font size | 9 | Text size (the panel scales with it) |
| Up / down / flat colour | SeaGreen / Tomato / Goldenrod | Trend colours |
| Text / background / border colour | Silver / dark / grey | Panel 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.

## Settings (inputs)

| Input | Type | Default | Note |
|---|---|---|---|
| InpSep1 | string | === Trend rule === | ---- Trend rule ---- |
| InpEmaPeriod | int | 50 | EMA period on every timeframe |
| InpSlopeBars | int | 5 | EMA slope measured over this many closed bars |
| InpAtrPeriod | int | 14 | ATR period used to scale the slope |
| InpFlatAtr | double | 0.10 | Slope below this many ATRs counts as flat |
| InpSep2 | string | === Panel === | ---- Panel ---- |
| InpCorner | ENUM_BASE_CORNER | CORNER_LEFT_UPPER | Chart corner |
| InpX | int | 10 | Horizontal distance from the corner in pixels |
| InpY | int | 25 | Vertical distance from the corner in pixels |
| InpFontSize | int | 9 | Font size |
| InpUpColor | color | clrMediumSeaGreen | Up trend colour |
| InpDownColor | color | clrTomato | Down trend colour |
| InpFlatColor | color | clrGoldenrod | Flat colour |
| InpTextColor | color | clrSilver | Text colour |
| InpBackColor | color | C'20,24,32' | Panel background |
| InpEdgeColor | color | C'60,70,90' | Panel border |

Tags: trend-dashboard, multi-timeframe, mtf, ema, trend, panel, indicator

Shared code is the author's work, not financial advice. Test on a demo account first.
