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 EMASlope barsbars 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 thresholdand the close is above the EMA. - DOWN when the slope is below
-Flat thresholdand 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
- In MetaTrader open File > Open Data Folder.
- MT4: copy
FXN_TrendDashboard.mq4intoMQL4/Indicators. MT5: copyFXN_TrendDashboard.mq5intoMQL5/Indicators. - 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.
- 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 barsdaily 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 5, written in MQL5.
- 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
- 14 inputs
- Lab check
- Compiled with MetaEditor build 6333 for MT5 on 1 Dec 2026: 0 errors, 0 warnings.
- Price
- Free to download
Settings read from the code
| Input | Type | Default | Note |
|---|---|---|---|
| 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 |
| 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 |
How to use it
- Download the compiled file (or the source and compile it in MetaEditor).
- Put it in MetaTrader: File → Open Data Folder → MQL5 → Indicators, then refresh the Navigator.
- Test it on a demo account before any real money.
- Want changes? Open a copy in your Lab and ask for them in plain words.