On this page
What Round Levels displays
Round Levels draws a regular grid of round prices and nearby shaded areas. It does not find swing highs, measure order flow or establish that a price will act as support or resistance. Manual spacing is anchored to zero; automatic spacing uses the visible chart price range, not an ATR or volatility forecast.
ForexBestRobots edition 1.05 is a marked derivative of EarnForex 1.04. It adds input guards, 64-bit point arithmetic, full half-widths for odd point counts, viewport refresh and isolated ownership for each chart/prefix. The packages preserve the unchanged originals, author notices, Apache 2.0 and a textual change patch.
Price grid, units and zone geometry
Inputs Interval and ZoneWidth are in symbol points: price spacing=Interval×_Point and total zone width=ZoneWidth×_Point. For a five-digit EUR/USD illustration, _Point=0.00001: 500 points is 0.00500, normally 50 pips; 100 points is 0.00100, normally 10 pips. Half that zone is 0.00050. A point is not necessarily a pip or a tradable tick.
The Bid is normalized to the symbol’s point precision. The lower grid level is the greatest lattice level at or below that price; the upper is the next level, even at exact equality. A normal zone extends half the width above and below its level. Odd widths keep the half point: width 1 means half-width 0.5 point.
With InvertZones, the shaded regions are the gaps between the excluded bands around round levels, including a center gap between the nearest lower and upper levels. Auto Interval snaps visible-range-points/(2×Levels) to a 1–2–5 step. Auto ZoneWidth is max(1,floor(Interval/5)). Zero selects auto; it does not mean zero spacing or a zero-width zone.
P = _Point spacing = I * P half_width = W * P / 2 q = round(Bid * 10^_Digits) lower = floor(q / I) * I * P upper = lower + I * P normal_zone = [level - half_width, level + half_width]
Real EUR/USD examples
The figures reconstruct archived real Yahoo Finance EUR/USD H1 OHLC from June 2025. The first Open, rounded to five digits, is a frozen illustrative reference, not a historical Bid quote. Zones and colors stay fixed in each figure; optional grid lines are shown for clarity. These are not MetaTrader screenshots, Bid-tick replay or a profit backtest. CSVs contain separate candle and zone records.
The normal example uses 10–12 June, reference 1.14273, Interval=500 and ZoneWidth=100. The nearest levels are 1.14000 and 1.14500; the upper normal band is 1.14450–1.14550. The inverted example uses 4–5 June and reference 1.13869: its center gap is 1.13550–1.13950. Neither an OHLC touch nor a colored area proves that a notification was sent.
The auto example uses the same 10 June candles in two explicitly chosen views. A visible range of 1.13000–1.17000 gives Interval=500 and ZoneWidth=100; 1.13500–1.15500 gives 200 and 40, with Levels=5. This demonstrates chart-scale dependence, not improved trading performance.



Timeframes and the changing viewport
There is no MTF input. With the same symbol and point size, a manual interval retains its price spacing on H1 or H4; auto values can change with the new visible price range. The H1 candles in our figures provide context only: notifications do not wait for an H1 close.
This edition recalculates auto values on valid chart-change events. A proposed invalid range or inverted configuration leaves the last valid settings in place; initial attachment requires valid settings. Grid lines can remain unchanged within a 1–2–5 bucket. Labels follow the current bar when enabled.
Settings and defaults
The source has 23 functional settings and three Comment_* separator strings. Levels is 1–100 per direction; Interval is 0–1000000000; an effective width must be 1–Interval, and strictly smaller than Interval when inverted. LineWidth is 1–5; AlertDelay is 1–86400 seconds. These checks reject invalid attachment settings.
Use a unique ObjectPrefix on each chart: 1–20 ASCII letters, digits, underscores or hyphens. A second FBR copy with the same chart/prefix is rejected without cleaning the first copy. Levels counts processed zones, not necessarily visible zones. Large counts increase chart-object work.
| Input | Default | Practical meaning |
|---|---|---|
Comment_0 | "=======================" | Main-section separator only; no calculation effect. |
Levels | 5 | Zones processed in each direction; 1–100. |
Interval | 0 | Spacing in points; 0 selects viewport auto. |
ZoneWidth | 0 | Total band width in points; 0 selects auto. |
ObjectPrefix | "RoundLevels" | Unique per chart; 1–20 ASCII letters/digits/_/-. |
Comment_1 | "=======================" | Visual-section separator only. |
ColorUp | clrFireBrick | Color of zones above the reference Bid. |
ColorDn | clrDarkGreen | Color of zones below the reference Bid. |
InvertZones | false | Shade gaps between bands, including the center gap. |
ZonesAsBackground | true | Draw shaded rectangles behind the candles. |
DrawLines | false | Also draw horizontal lines at round levels. |
LineColor | clrDarkGray | Color of optional horizontal lines. |
LineWidth | 1 | Line width, 1–5. |
LineStyle | STYLE_DASHDOT | Style of optional horizontal lines. |
LinesAsBackground | false | Draw the lines behind the candles. |
ShowLineLabels | false | Show price labels; also works with lines off. |
LineLabelColor | clrWhite | Color of price labels. |
ButtonCorner | None | Hide/Show button corner; None means no button. |
Comment_2 | "=======================" | Notification-section separator only. |
EnableNotify | false | Master notification switch; off by default. |
SendAlert | true | Popup channel; active only with EnableNotify. |
SendApp | false | Push channel; configure the terminal first. |
SendEmail | false | Email channel; configure the terminal first. |
SendSound | false | Separate sound-file channel. |
SoundFile | "alert.wav" | Sound file, initially alert.wav; 1–120 characters. |
AlertDelay | 5 | Shared server-time cooldown in seconds; 1–86400. |
Live Bid, cooldown and notifications
EnableNotify=false is the master default, even though SendAlert=true. When enabled, the condition is current Bid inside a zone, including its boundaries on the symbol point lattice. This is not a closed-candle cross or an entry-only alert. It can repeat while Bid stays inside, after AlertDelay server-time seconds between attempts; the default is 5. The same delay applies after attachment.
Popup, push, email and a separate WAV sound are selectable. Push and email require terminal configuration; custom SoundFile must exist in the terminal’s sound location. Failed delivery still consumes the cooldown. Messages identify the symbol, timeframe, Bid and zone, without account-name or login fields. There is no order execution.
ButtonCorner defaults to None. With a corner selected, Hide/Show changes the visibility of this instance’s objects; it does not disable notifications. Hidden state is retained across reinitialization on the same chart; removal resets it. Price or viewport changes can alter the overlay and trigger the zone condition without a new candle.
Install and compile the source
- Extract the MT4 or MT5 ZIP.
- In desktop MetaTrader choose File → Open Data Folder, then MQL4 or MQL5.
- Copy the ZIP’s Indicators folder there; keep upstream separately as the original reference.
- Open Round_Levels_ForexBestRobots.mq4 or .mq5 in the matching MetaEditor, press F7 and inspect errors and warnings.
- Refresh Navigator → Indicators and attach the compiled program to a demo chart with a unique ObjectPrefix.
- Start with EnableNotify off. Check symbol point size and manual/auto widths, then configure and demo-test only the notification channels you need.
These are source packages without ready EX4/EX5 binaries. Desktop custom indicators cannot be installed directly into MetaTrader mobile. This download covers MT4 and MT5, not the upstream cTrader edition. A CSV explains the reconstruction and is not an installable indicator.
Download Round Levels free
Download the platform ZIP directly from this site. It includes marked MQ4/MQ5, the unchanged original for that platform, Apache 2.0, change notes, patch, checksums and installation notes in all 12 site languages. No registration, DLL or external include is required.
Compile with F7 in the matching desktop MetaEditor, inspect errors and warnings, then demo-test. Numerical and modeled-API checks outside MetaTrader do not verify native compilation, object rendering, chart-event behavior, broker Bid feeds or actual notification delivery.
Free source ZIP · ForexBestRobots edition 1.05 · Compile in MetaEditor
Changing overlays and practical limits
The program paints a current Bid-relative layout across chart history. It does not store past support/resistance roles or notification history. A zone that is red now may have had a different role earlier. Do not infer historical signals from the current overlay.
Viewport-based auto values can move the grid or change widths when you zoom or rescale. Manual Interval removes this spacing dependence, but above/below roles and the set of processed zones still follow current Bid. On a wide-spread instrument, Bid-in-zone says nothing about the Ask price or executable fill.
The supported display precision is 0–8 digits, with positive prices limited to 900000000000000 point units. Half-point geometry can be finer than a screen pixel or trading tick. The figures illustrate price geometry only and establish no win rate or performance.
Frequently asked questions
Are points the same as pips?
Not generally. On a typical five-digit EUR/USD quote, 500 points is 0.00500 or 50 standard pips. Check the broker’s _Point.
What does zero Interval or ZoneWidth mean?
Auto, not zero size. Interval uses the visible chart range and a 1–2–5 step; width uses one fifth of the interval, floored to at least 1 point.
Are alerts confirmed by a candle close?
No. They test current Bid in a zone and can repeat after the cooldown while the condition remains true.
Does Hide stop notifications?
No. It hides the visual objects only. Disable EnableNotify to stop notifications.
Can I load multiple copies?
Yes, with different ObjectPrefix values on the same chart. Duplicate FBR chart/prefix ownership is rejected.
Do historical zones prove earlier signals?
No. The displayed layout follows current Bid and settings, not a stored historical alert sequence. Our OHLC figures do not reconstruct Bid ticks.
Are the files compiled and tested inside MetaTrader?
No. These are MQ4/MQ5 sources for desktop MetaEditor. External tests do not verify native compilation or runtime.
Sources and verification scope
The review follows the pinned EarnForex revision and our marked changes. EarnForex copyright remains intact. The real-data reconstructions are our calculations. Inclusion and modification do not imply endorsement by EarnForex.