Skip to content
FXNook HubBeta

Alex / ADR Indicator (Average Daily Range Levels) for MT4

MetaTrader 4IndicatorMITCompiled · build 2425
AlexFirst version.build 2425v1.06 hours ago1 version
  • FXN_AdrLevels.mq4First version.8 KB
  • FXN_AdrLevels.ex4Compiled by the Lab with MetaEditor build 242516 KB
README

Overview

Average Daily Range levels projected from today's open and from today's high and low, with a panel showing how much of the ADR is used.

ADR Levels shows how far a market usually travels in a day and how much of that distance today has already covered. It projects Average Daily Range levels from today's open and from today's high and low, and a small panel shows the ADR in pips and the percentage used so far. It helps with realistic targets and with spotting days that are already stretched.

How it works

  • ADR is the average of high - low of the last N completed daily bars (today is not included). It is worked out once per day.
  • Levels from the open: open + factor x ADR and open - factor x ADR. With the default factor 0.5 the two lines are one full ADR apart, centred on the open.
  • Levels from today's range: ADR high = today's low + ADR and ADR low = today's high - ADR. These show where the day would stand if it made exactly an average range from its current extreme. They move when a new high or low is made, and they meet the opposite extreme once the full ADR has been covered.
  • Panel: ADR in pips, today's range in pips and today's range / ADR x 100 percent used.

Lines run from the start to the end of the current server day and are only moved when today's high or low changes.

Inputs

InputDefaultWhat it does
ADR days14Completed days in the average (1-100).
Open factor0.5Share of the ADR projected each way from the open.
Show open levelstrueDraws open + / - factor x ADR.
Show range levelstrueDraws low + ADR and high - ADR.
Open level colourSteel blueColour of the dashed open levels.
Range level colourIndian redColour of the solid range levels.
Line width1Width of the lines (1-5).
Show labelstrueName and price on each line.
Show info paneltrueShows ADR, today's range and percent used.
Panel cornerRight upperChart corner for the panel.
Panel colourDim grayPanel text colour.
Font size9Panel font size; labels use one size smaller.

How to use it

  1. In MetaTrader choose File > Open Data Folder.
  2. MT4: copy FXN_AdrLevels.mq4 into MQL4/Indicators. MT5: copy FXN_AdrLevels.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.

Use it on M5 to H1 charts. Fourteen days is a common setting; use 5 for a faster reading after a change in volatility, or 20 for a steadier one. When the panel shows that most of the ADR is already used, a large further move in the same direction is less common, but it does happen on news days.

Good to know

  • Levels from today's high and low move during the day by design. The open levels are fixed once the day opens.
  • The day follows your broker's server time. A broker with a short Sunday bar lowers the average; use more days to soften that.
  • The ADR describes the past. A day can travel much less or much more than its average.
  • One pip is 10 points on 3 and 5 digit symbols and 1 point otherwise.
  • All objects use the prefix FXN_ADR_ 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.

At a glance

What it is
A free Indicator for MetaTrader 4, written in MQL4.
What it does
Average Daily Range levels projected from today's open and from today's high and low, with a panel showing how much of the ADR is used.
Shared by
Alex
Licence
MIT
Version
1.0 (1 Dec 2026)
Settings
15 inputs
Lab check
Compiled with MetaEditor build 2425 for MT4 on 1 Dec 2026: 0 errors, 0 warnings.
Price
Free to download

Settings read from the code

InputTypeDefaultNote
InpGroup1string=== ADR ===---- ADR ----
InpAdrDaysint14Completed days in the average (1-100)
InpOpenFactordouble0.5Share of the ADR projected each way from today's open
InpGroup2string=== Levels ===---- Levels ----
InpShowOpenLvlsbooltrueShow open + / - ADR x factor
InpShowRangeLvlsbooltrueShow today's low + ADR and today's high - ADR
InpOpenColorcolorclrSteelBlueColour of the levels from the open
InpRangeColorcolorclrIndianRedColour of the levels from today's high and low
InpLineWidthint1Line width (1-5)
InpShowLabelsbooltrueShow a name and price on each level
InpGroup3string=== Info panel ===---- Info panel ----
InpShowInfobooltrueShow the ADR and % used panel
InpCornerENUM_BASE_CORNERCORNER_RIGHT_UPPERChart corner for the panel
InpInfoColorcolorclrDimGrayPanel text colour
InpFontSizeint9Font size

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.