Range average
Select from ATR type, high-low difference, or composite average.
Displays lines obtained by adding the average range of completed past sessions to, or subtracting it from, today's high and low, the open, or the previous close.
Range averageSelect from ATR type, high-low difference, or composite average.
Base priceToday's high and low, today's open, or the previous close.
Independent base lineBase Line can add the open or the previous close.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-minute chart (M1). This is an example for explaining the display. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.
Select from ATR type, high-low difference, or composite average.
Today's high and low, today's open, or the previous close.
Base Line can add the open or the previous close.
Displays lines obtained by adding the average range of completed past sessions to, or subtracting it from, today's high and low, the open, or the previous close.
The ATR type is a simple average of True Range. It is not exponential smoothing. High-Low is a simple average of the high-low difference, and Composite averages, with equal weights, the high-low difference averages over 1, 5, 10 and 20 sessions.
The line for the upper side is today's low + average range × multiplier, and the line for the lower side is today's high − the same range. When today's range widens, the 2 lines may swap their upper/lower positions.
Adds and subtracts average range × multiplier above and below the open or the previous close. The base is fixed within the session, but with the today's-high-and-low method it changes as they update.
The ATR type is a simple average of True Range. It is not exponential smoothing. High-Low is a simple average of the high-low difference, and Composite averages, with equal weights, the high-low difference averages over 1, 5, 10 and 20 sessions.
Check the settings list below in the input fields of the properties. Do not confuse periods, times and units.
Day boundaries use the terminal server time. If the start time is noon or later, the time after that start is treated as belonging to the next business day. Saturdays and Sundays do not start a new period and are merged into the preceding period. The partial first period is not used as a completed reference period. The width needs the specified number of completed periods. The independent Base Line alone may appear first.
Match the diagram, the actual screen and the price scale. Also check for lines off the screen and overlapping lines.
| Included file | Purpose / location |
|---|---|
| TRI_Daily_Range_Levels_Plus.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. When comparing different settings, using separate charts makes checking easier.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
There are 8 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpAverageInpDaysInpBaseInpMultiplierInpShowPreviousInpSessionStartHourInpSessionStartMinuteInpBaseLineDay boundaries use the terminal server time. If the start time is noon or later, the time after that start is treated as belonging to the next business day. Saturdays and Sundays do not start a new period and are merged into the preceding period. The partial first period is not used as a completed reference period. The width needs the specified number of completed periods. The independent Base Line alone may appear first.
They are the previous day's low + the current average width, and the previous day's high − the current average width. They are not “the lines shown yesterday saved as they were.”
Use it on D1 or lower. On D1, set the start time to 00:00.
The forming bar may change with price updates. Past calculation results may also change with history additions or corrections or settings changes.
No account authentication or license file is required. There are no sound, notification or order functions. An MT4 version is not included.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
This can happen with the today's-high-and-low method. Check based on the current high, low and average range, and do not decide upper and lower from the line names alone.
Even if the history needed for the average range is insufficient, the base line may be calculable first.
Even if Show Previous is enabled, the previous day's lines are not displayed if Base is the open or the previous close.
Check the price feed, terminal connection, history loading and input ranges. Not being displayed does not necessarily mean a malfunction.
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.
For each completed session, it is max(high, previous close) − min(low, previous close). If the first complete session has no previous close, the high-low difference is used. These are simple-averaged over the specified number.
Calculates each of the 1-, 5-, 10- and 20-session simple averages of the high-low difference and then divides by 4. A complete history of 20 sessions is required.