Skip to content
FXNook HubBeta

Alex / Round Numbers Indicator (Psychological Levels) for MT4

MetaTrader 4IndicatorMITCompiled · build 2425
AlexFirst version.build 2425v1.01 day ago1 version
  • FXN_RoundNumbers.mq4First version.5 KB
  • FXN_RoundNumbers.ex4Compiled by the Lab with MetaEditor build 242514 KB
README

Overview

Draws psychological round-number levels (00, 50 or any step in points) around the current price as light lines, with a limited count.

What it is
A free Indicator for MetaTrader 4, written in MQL4.
What it does
Draws psychological round-number levels (00, 50 or any step in points) around the current price as light lines, with a limited count.
Shared by
Alex
Licence
MIT
Version
1.0 (1 Dec 2026)
Settings
9 inputs
Lab check
Compiled with MetaEditor build 2425 for MT4 on 1 Dec 2026: 0 errors, 0 warnings.
Price
Free to download

Round Numbers draws psychological price levels such as 1.0800 and 1.0850 around the current price. Many orders, stops and option strikes cluster at these numbers, so price often pauses or reacts near them. The lines are light and limited in number, so they add context without cluttering the chart.

How it works

  • You set a major step and a minor step in points. On a 5-digit pair 1000 points is 100 pips (the 00 levels) and 500 points is 50 pips (the 50 levels). For a 20-pip grid use 200.
  • Levels are exact multiples of the step: level = k x step x point. A minor level that falls on a major level is drawn only once, as major.
  • The indicator draws the levels within the chosen count of steps above and below the bid price, counted in the smaller step.
  • It only redraws when price moves into another step zone, not on every tick.

Inputs

InputDefaultWhat it does
Major step1000Major step in points (0 turns it off).
Minor step500Minor step in points (0 turns it off).
Levels each side10Number of steps above and below price to cover (1-50).
Major colourGray (120)Colour of major levels.
Major styleSolidLine style of major levels.
Minor colourLight gray (160)Colour of minor levels.
Minor styleDotLine style of minor levels.

How to use it

  1. In MetaTrader choose File > Open Data Folder.
  2. MT4: copy FXN_RoundNumbers.mq4 into MQL4/Indicators. MT5: copy FXN_RoundNumbers.mq5 into MQL5/Indicators.
  3. Restart the terminal, or right-click Indicators in the Navigator and choose Refresh. If the indicator does not appear, open the file in MetaEditor and press F7 to compile it.
  4. Drag the indicator onto a chart, adjust the inputs and press OK.

Pick steps that match the symbol. Examples: EURUSD (5 digits) 1000 / 500; USDJPY (3 digits) 1000 / 500 for 1.000 / 0.500 yen; gold with 2 digits 1000 / 500 for 10.00 / 5.00; an index with 1 digit 1000 / 500 for 100 / 50 points. Set Minor step to 0 to see only the big levels.

Good to know

  • Steps are in points, so the same setting means different price distances on symbols with different digits; check the levels after attaching.
  • The level price is shown in each line's description and tooltip; turn on Show object descriptions in the chart properties to see it on the chart.
  • Round numbers are areas where reactions are common, not levels where price must turn.
  • Levels never repaint; they are fixed prices.
  • All objects use the prefix FXN_RN_ and are removed with the indicator. It does not trade.

Trading carries risk. Test on a demo account first; past results do not predict future results.

Settings read from the code

InputTypeDefaultNote
InpGroup1string=== Levels ===---- Levels ----
InpMajorStepint1000Major step in points (1000 on 5-digit pairs = every 100 pips, 0 = off)
InpMinorStepint500Minor step in points (500 on 5-digit pairs = every 50 pips, 0 = off)
InpLevelsEachint10Levels above and below price, counted in the smaller step (1-50)
InpGroup2string=== Display ===---- Display ----
InpMajorColorcolorC'120,120,120'Major level colour
InpMajorStyleENUM_LINE_STYLESTYLE_SOLIDMajor level style
InpMinorColorcolorC'160,160,160'Minor level colour
InpMinorStyleENUM_LINE_STYLESTYLE_DOTMinor level style

How to use it

  1. Download the compiled file (or the source and compile it in MetaEditor).
  2. Put it in MetaTrader: File → Open Data Folder → MQL4 → Indicators, then refresh the Navigator.
  3. Test it on a demo account before any real money.
  4. Want changes? Open a copy in your Lab and ask for them in plain words.