Range Level Band
Within a set number of recent bars, it takes the highest high and the lowest low as the upper and lower lines, adds 3 lines that divide the space between them into 4 equal parts, and overlays them on the price chart as 5 levels.
Recent high and low → divide into 4 equal parts → 5 levels
Upper and lower limitsThe highest high and the lowest low within the recent number of bars.
Center dashed lineExactly halfway between the upper and lower limits.
1/4 dotted linesPositions 1/4 of the width inside the upper limit and the lower limit respectively.
MT5 display and examples of changed settings
Only the price chart and this product are shown. Compare the default settings and the example of changed settings with the same symbol, timeframe and display range.
View the screen in detail at full size
View the screen in detail at full size
Example shown: synthetic data, 1-minute timeframe (M1). This is not the price movement of an actual symbol. The changed settings are an example to show the difference, not recommended values. You can enlarge it from "View the screen at full size".
How to read it in 30 seconds
What it measures
Divides the recent high-low range into 4 equal parts to make 5 levels
For the range going back the specified number of bars from the current bar, it finds the maximum of the highs and the minimum of the lows. These 2 are the upper and lower limits. The difference between the upper and lower limits is the width; 1 line is drawn 1/4 of the width inside each of the upper and lower limits, and 1 line exactly in the middle. That makes 5 levels in total. If a number of bars to shift the reference is specified, the range ending at the bar that many bars earlier is used instead of the current bar.
Upper and lower limits
The highest high and the lowest low within the recent number of bars.
Center dashed line
Exactly halfway between the upper and lower limits.
1/4 dotted lines
Positions 1/4 of the width inside the upper limit and the lower limit respectively.
When to use it in decisions
Read in the order "indicator → confirm with price → consider → conditions that do not apply". This is not a trading instruction; it is a way to organize the material for your decisions.
The price approached the upper limit
- Indicator
- The price is in the high zone within the recent number of bars.
- Price
- Confirm whether the price actually made a new high.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use an approach to the upper limit alone as a reason to sell. The price can also break through it.
The price approached the lower limit
- Indicator
- The price is in the low zone within the recent number of bars.
- Price
- Confirm whether the price actually made a new low.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use an approach to the lower limit alone as a reason to buy.
The upper or lower limit moved in a step
- Indicator
- The maximum or minimum has changed.
- Price
- Check whether only 1 bar made the new high or low.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not use the movement of a level itself as a signal. It only means that a past high or low has been replaced.
The price crossed the center dashed line
- Indicator
- The price moved between the upper half and the lower half of the recent range.
- Price
- Check whether the price momentum continues.
- Consideration
- Cross-check against the price evidence and your trading plan made in advance.
- Exclusion condition
- Do not decide the direction just from whether the price is above or below the center line.
Actual decision steps
Choose the symbol and timeframe
Choose the symbol and timeframe, and confirm that at least the required number of bars of history are displayed.
Read the position relative to the reference
Read which of the bands formed by the 5 lines the price is in.
Cross-check against the price evidence
Check whether the upper or lower limit has moved recently.
Decide how to treat the current bar
On the current bar, the levels can move. Decide in advance whether to read on closed bars or to wait for the bar to close.
What to decide before entering
This product does not place or close orders. If you trade, decide your reasons, acceptable loss and exit conditions separately, and do not leave them to the indicator alone.
What to check while holding a position
Give priority to your plan made in advance and to the price movement. Do not postpone a stop-loss or exit just because the indicator moves up or down.
Installation and checking the package contents
| Included file | Location and purpose |
|---|---|
| TRI_Range_Level_Band.ex5 | The indicator itself for MetaTrader 5. Place it in MQL5/Indicators. |
| TRI_Range_Level_Band_Manual.html | The manual for this product. Open it in a browser. |
Extract the ZIP first. MT5 only. This product does not require placing a license file or account authentication. Use the files without renaming them.
Open the data folder
In MT5, select "File → Open Data Folder".
Place the indicator file
Place the included TRI_Range_Level_Band.ex5 in MQL5/Indicators.
Place it on a chart
Refresh the Navigator or restart MT5, and apply this product to a chart of the symbol and timeframe you want.
Check the settings and display
Check with the default settings first. To change them, open this product's properties from the Indicators List. For the required number of history bars and where it is displayed, see Chapters 7 and 8.
To remove it, select this product in the chart's Indicators List and delete it.
Settings
There are 2 calculation inputs. Open the properties from the Indicators List and change them there.
Bars for measuring the range
- Input name
- InpPeriod
- Default
- 96
- Allowed range
- An integer from 2 to 10000. Out of range, the indicator cannot be applied.
- Description
- Specifies over how many bars the maximum of the highs and the minimum of the lows are taken. A larger value gives levels over a wider range that move less easily.
Bars to shift the reference
- Input name
- InpShift
- Default
- 0
- Allowed range
- An integer from 0 to 10000. Out of range, the indicator cannot be applied.
- Description
- With 0, it looks up to the current bar. With 1 or more, it uses the range ending at the bar that many bars earlier.
Line color and width
- Default
- Upper limit = red, upper 1/4 = orange dotted line, center = gray dashed line, lower 1/4 = orange dotted line, lower limit = blue. Shown overlaid on the price chart.
- Where to change
- You can adjust it on the Colors tab of the properties.
- How to read
- Read which of the bands formed by the 5 lines the price is in, and whether the levels have moved.
Usage specifications
Where the display starts
Display starts from the bar after “reference shift count + range measurement count − 1” bars have passed. With the defaults, the first displayed bar is the 96th bar counted from the oldest bar.
Order of levels
The order upper limit ≧ upper 1/4 ≧ middle ≧ lower 1/4 ≧ lower limit is never broken.
Conditions under which the levels move
They move only when the bars in the range change and the maximum or minimum changes. On other bars they stay flat.
Unit
Same unit as the price. All 5 lines are placed on the vertical axis of the price chart.
Handling of the current bar
When the reference shift count is 0, the levels may move as the current bar's high and low are updated. They are fixed when the bar closes.
Additions and corrections to history
If the data provider adds or corrects past bars, recalculation runs from that range.
When removing
Select this product in the Indicators List and delete it. This product has no recovery procedure using a license file.
Troubleshooting and usage notes
The levels are far from the price
When the number of bars for measuring the range is large, old highs and lows remain. A smaller number brings the levels closer to the price.
The 5 lines look like they overlap
This happens when the width of the range is narrow. A larger number of bars gives more width.
The line is not displayed
The number of bars displayed may be insufficient. Make the number of bars smaller, or load the history and then check.
The display does not change after changing the settings
If a value is outside the allowed range (bars 2–10000, shift 0–10000), this product is not applied.
The levels never move
The maximum and minimum within the range have not changed. This is not an error.
Notes on use
- The indicator is information calculated from past and current prices. It does not guarantee profit, the future direction or the success of a trade.
- It does not place orders, close positions, send alerts or send email.
- Changing the settings, symbol or timeframe also changes the values. Distinguish changes in the current bar from recalculation caused by added or corrected history.
Technical information and specification details
Calculation approach and display specifications
It directly scans the calculation window of the specified number of bars to find the maximum of the highs and the minimum of the lows, and adds 3 lines at the positions dividing their difference into 4 equal parts, drawing 5 levels in total. The end point of the calculation window can be moved into the past by the number of bars to shift the reference. It uses 5 buffers for drawing. It does not use other indicators, external libraries, communication or order functions.
| Item | Content |
|---|---|
| Version | 1.00 |
| Platform | MetaTrader 5 |
| Display | 5 levels on the price chart (red, orange dotted, gray dashed, orange dotted, blue) |
| Unit | Same units as the price |
| Copyright notice | Trilogy Inc. |
Status of the general reading
The situations and steps on this page are examples of linking calculated values to observation of the price. They do not guarantee the future direction, full compatibility, non-repainting or a light calculation load.