The range is in price units
The average range is a price difference, not a count of points or pips. It is used multiplied by the multiplier.
Averages the ranges of completed trading days and draws lines from the current day's high and low, the open or the previous day's close as the base point. The average range is fixed during that day, but how the lines move depends on the choice of base point.
Average the ranges of past daysThe default is the simple average of True Range over the previous 10 trading days.
Add and subtract the range at the base pointBy default, the range is added to the current day's low and subtracted from the current day's high.
Check whether the lines are fixed or moveWith the current day's high and low as the base, the lines move as the high and low are updated. With the open or the previous day's close as the base, they are fixed within the same day.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-hour timeframe (H1). This is an example to explain the display. The changed settings are not recommended values. Details can be checked in the full-size view. Also check the price scale of the main chart and the positions of the candlesticks.
The average range is a price difference, not a count of points or pips. It is used multiplied by the multiplier.
There are 3 modes: the current day's high and low, the current day's open, and the previous day's close. The meaning of the lines differs by mode.
With the default, Top and Bottom can swap positions when the range becomes large.
Displays the past average range from the selected price as the base point. It is not a target price or an order instruction.
Takes the simple average, over the specified number of days, of True Range, which includes the gap from the previous close. It is not Wilder's recursive smoothing.
Takes the simple average of each trading day's high − low over the specified number of days. The gap from the previous close is not added.
Builds 4 High-Low averages over the previous 1, 5, 10 and 20 trading days and uses their simple average. The Days value is not used in the calculation of this mode.
Uses w=A×m, the average range A multiplied by the multiplier m. If the averaging source is the same, A is the same even when the base point is changed.
Check the combination of ATR, 10 days and the current day's high and low before placing it.
Compare with the candlesticks, reading the greenish line as the current day's low + range and the reddish line as the current day's high − range.
The example shown changes Days, Base and Session Start Hour. It is an example that includes the effects of all 3 items at once.
To check the differences separately, use separate charts and change the averaging mode, the number of days, the base point and the start time 1 at a time.
| Included file | Purpose / location |
|---|---|
| TRI_Daily_Range_Levels.ex5 | The MT5 main file. Place it in MQL5/Indicators. |
The ZIP contains only 1 item, the main file. The manual is opened from the product page on the site. Source code is not included. MT5 only; registration, account authentication and placing a license file are not required. Use it without changing the file name.
Extract the ex5 main file rather than leaving it in the compressed file.
In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.
Refresh the Navigator or restart MT5, and apply it to the target chart. Place only 1 instance of the same product on 1 chart.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
There are 7 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpAverageInpDaysInpBaseInpMultiplierInpShowPreviousInpSessionStartHourInpSessionStartMinuteUse it on daily and lower timeframes; on daily charts the start time is only 00:00. It does not start on weekly or monthly charts.
It is not a product that loads and copies the broker's D1. It groups days from the bars of the currently open chart and the server time. If the start is before noon, the day is named after the start date; if at or after noon, it is named after the following day. The start time does not shift automatically for daylight saving time.
Bars that would be named Saturday or Sunday are included in the preceding trading day (usually Friday). With start 00:00, Saturday and Sunday bars are included there. With start 07:30, Monday 00:00–07:29 is also usually included in the preceding Friday trading day, and from Monday 07:30 onward it is Monday.
With start 22:00, the day is named after the following day, so bars from Sunday 22:00 onward are Monday. Bars from Friday 22:00 onward and Saturday bars are included in the preceding Friday. If there are no Sunday bars, the span from the first Monday bar until Monday 22:00 becomes a short Monday trading day.
Days without bars are not filled in. For example, with start 22:00, even if Monday is a market holiday, bars from Sunday 22:00 onward alone create a short Monday. That short day is also used in the next day's calculation. On charts with missing bars or different holidays, the number of days and the values change.
On a chart where 4-hour bars start at 00, 04, 08, 12, 16 and 20 o'clock, if you specify start 22:00, the first bar representing the boundary is the next 00:00 bar. No new 22:00 bar is created. The rules for the start time and trading day names remain unchanged.
At a boundary where the level switches, a diagonal segment connects the previous bar and the next bar. This does not mean there is another calculated level partway along it.
Past lines are also recalculated when history is added or corrected or settings change. It is not guaranteed that past displays remain unchanged under all conditions.
This product does not widen the chart's vertical scale to fit distant lines. If a line is not visible, check not only display ON/OFF but also the price scale and display range.
The average is calculated using only completed trading days, so it does not change during the day. However, lines based on the current day's high and low move if the forming high or low changes.
If the number of days needed initially is not available, nothing is drawn. Average Range is a data value that is not drawn as a line. Even when the previous day's lines are set to display OFF, their calculated values are kept.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.
The first trading day is excluded because it may have started partway through. With N days, drawing starts from the N+2nd trading day (the 12th with the default 10). Composite starts from the 22nd. This differs from the calendar day count that includes holidays.
This product builds trading days from the chart's bars. If the timeframe, the start time, weekend bars or the history initialization differ, the values do not match the standard ATR even with the same number of days. It is not a product that gives the same values as the standard under all conditions.
Check the input ranges and the timeframe. If startup is refused, the reason appears as 1 line in English on the MT5 Experts tab. No panel with the reason appears on the chart. The allowed-range check is also performed for numeric inputs of the mode that is not in use.
Check with the timeframe, the start position of the history, the start time, weekend bars and holidays aligned. Having the same date alone does not necessarily mean that the bars included in the calculation are the same.
This display overlays price levels. Overlaps or crossings are not instructions for a reversal, a continuation or an order.
If the first display does not appear, check history loading and the input ranges. If an earlier display has stopped updating, first check the price feed and the terminal's connection status.
The normal TR is max(current day's high, previous trading day's close) − min(current day's low, previous trading day's close). Only the TR of the first complete trading day used starts as high − low, and the close of the excluded first day is not used. The simple average of the TR over the past N days is A in ATR mode.
High-Low is the average of (H−L) over the past N days. Composite adds the (H−L) averages over the previous 1, 5, 10 and 20 days and divides by 4. In Composite, the Days setting has no effect on the calculation.
w=A×Range Multiplier. In the current day's high and low mode, Top=current day's low+w and Bottom=current day's high−w. In the open mode, Top=current day's open+w and Bottom=current day's open−w. In the previous close mode, Top=previous day's close+w and Bottom=previous day's close−w.
In the current day's high and low mode, Previous Top=previous day's low+today's w and Previous Bottom=previous day's high−today's w. They do not use the previous day's range. Other base modes do not draw these 2 lines.
Top is SeaGreen and Bottom is Crimson. The previous-day lines are MediumSeaGreen and IndianRed dotted lines. In the current day's high and low mode, when the current day's range=w, Top overlaps the current day's high and Bottom the current day's low. If the current day's range>2w, Top goes below Bottom.