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

Round Number Levels Session Grid - 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:
12
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

On Gold (XAUUSD) price keeps reacting at round numbers, and the move often starts at a session open. This indicator draws both on the same chart. Major round levels every 1000 points by default, which is 10.00 on a two digit gold symbol and 100 pips on a five digit EURUSD, with minor levels halfway between them, five majors above and five below price.

On top of the levels it draws a dotted vertical line at each session open for the last five days, Asia, London and New York by default, with the session name at the open price of that bar. An optional alert fires when a candle closes across a major level. Everything is redrawn once per new bar.

A round number is a place to watch, not a signal. The session times are server time, so check them against your broker before you trust the lines.

Round Number Levels Session Grid on a XAUUSD M30 chart in MetaTrader 5: major and minor round levels with Asia, London and New York session open lines

Settings

  • Major step: in points, default 1000. Minor step: default 500, 0 turns the minor levels off, it has to be smaller than the major step.
  • Major levels above and below price: default 5. Colour, style and width for major levels, colour and style for minor levels.
  • Price label to the right of each major level, on by default.
  • Session grid: on, days 5, and three sessions with an open time in server time (HH:MM) and a name: 01:00 Asia, 10:00 London, 16:30 New York. Leave a time empty to hide that session.
  • Alerts: when a candle closes across a major level, off by default. Popup, push and sound.
  • Object prefix: change it to run two copies on the same chart.

What it needs

Any symbol and any timeframe. The steps are in points, so adjust them to the symbol: on a three digit symbol 1000 points is 1.000. It uses horizontal lines, vertical lines and text objects only, 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 with the step that fits each one and watch how often the London or New York open reaches the nearest major level. It works well next to support and resistance tools and Smart Money Concepts liquidity levels, since equal highs and lows often sit near round numbers. XP_DrawLevels and XP_ParseHHMM are small functions you can lift into your own EA, and a level touch alert can be added in XP_CheckCross.

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: Forex Session Boxes, Opening Range Breakout Box, PDH PDL Sweep Levels, Auto Fibonacci Retracement.

Changelog

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

Multi Timeframe Trend Dashboard Multi Timeframe Trend Dashboard

Multi timeframe trend dashboard for Gold (XAUUSD) and any symbol on MT5. Shows up, down or flat for up to 6 timeframes from a fast and slow EMA on the last closed bar, with the distance in points and an alert when all line up. Open source code.

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.

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.

MACD Signals MACD Signals

Indicator edition for new platform.