Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Multi Timeframe Trend Dashboard - indicator for MetaTrader 5

Cristhian Alexander Gaibor Cuasquer
Cristhian Alexander Gaibor Cuasquer
  • Founder & Systems Engineer at  Xander Pro
  • Ecuador
  • 9264
4.7 (40)
Trader and MQL5 member since 2017.
Views:
11
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

On Gold (XAUUSD) the M5 can say up while the H4 says down, and switching charts to check costs time. This indicator puts up to six timeframes in one small panel. For each one it reads the last closed bar: up when the close is above the slow EMA and the fast EMA is above the slow one, down when both are below, flat for anything in between.

Next to each state it shows how far the close is from the slow EMA in points. The last line says ALL UP, ALL DOWN or how many timeframes are up, down and flat, and an optional alert fires when all of them line up the same way. The panel refreshes on a timer, five seconds by default.

The panel tells you the direction of two moving averages, not where to enter. Higher timeframes move slowly, so an ALL UP can hold for a long time while the lower ones pull back.

Multi Timeframe Trend Dashboard on a XAUUSD H1 chart in MetaTrader 5: panel with the trend of M5, M15, H1, H4, D1 and W1 next to the 20 and 50 EMA

Settings

  • Timeframe 1 to 6: default M5, M15, H1, H4, D1 and W1. Current means the chart timeframe. Timeframes shown: 1 to 6, taken from the top of the list.
  • Fast EMA 20 and slow EMA 50, the fast one must be shorter. Applied price: close.
  • Flat zone around the slow EMA: in points, default 0. With a value, a close that is that close to the slow EMA counts as flat.
  • Panel: distance from the left and top edge in pixels, font size, background, text, up, down and flat colours, and refresh every 5 seconds.
  • Alerts: when all shown timeframes point the same way, off by default. Popup, push and sound. It fires when the alignment starts, not on every refresh.
  • Object prefix: change it to run two copies on the same chart.

What it needs

Any symbol. It creates two built-in EMAs per timeframe and reads them on bar 1 of each one. While the terminal is still loading the history of a timeframe the row shows three dots, and it fills in on the next refresh. The panel is a flat rectangle with plain text labels in the upper left corner, it has no buffers and it never trades. Push notifications need your MetaQuotes ID in the terminal options.

Make it yours

Run it on XAUUSD, XAGUSD, EURUSD, GBPUSD, US30 or NAS100 and change the pair of EMAs to the ones you already trade with, 9 and 21 or 50 and 200. A common use is to trade the lower timeframe only in the direction the higher ones agree on, next to Smart Money Concepts structure or support and resistance. XP_Trend holds the whole rule in one function and returns up, down, flat or wait, so it is easy to copy into an EA as a trend filter.

About this code

Open source. Use it as it is, adapt it, build your own version on top of it. Questions, suggestions and your own tests are welcome in the comments below. Provided as is, use at your own risk.

Related: Supertrend Gold Signals, Smart Money Concepts BOS CHoCH, Moving Average Crossover EA Gold, Forex Session Boxes.

Changelog

v1.0 (2026-11-30): initial release.

Inside Bar Engulfing Scanner Inside Bar Engulfing Scanner

Engulfing and inside bar scanner for Gold (XAUUSD) and any symbol on MT5. Marks bullish and bearish engulfing candles and inside bars on closed bars, draws the mother bar range as a box and can alert on each pattern. Arrow buffers for iCustom. Open source code.

Hotkeys: keyboard shortcuts for MQL5 experts and indicators, set in the inputs Hotkeys: keyboard shortcuts for MQL5 experts and indicators, set in the inputs

One include file that gives your EA or indicator keyboard shortcuts the user types into the inputs, such as Shift+B. Each press fires one action, Shift+B never fires on a plain B, and a shortcut that cannot work is refused at start with the reason.

Round Number Levels Session Grid Round Number Levels Session Grid

Round number levels for Gold (XAUUSD) and any symbol on MT5. Draws major and minor round levels around price plus Asia, London and New York session open lines, with an optional alert when a candle closes across a major level. Open source code.

HTF EMA No Lookahead HTF EMA No Lookahead

Higher-timeframe EMA (fast and slow) on a lower-timeframe chart, using only higher-timeframe bars that are already closed. Values never change after the bar closes.