Read it as a range
A large value means the smoothed high-low range is large. It does not represent a rise or fall of the price.
Smooths each bar's "high − low" while changing the length according to how the price advances. Although the name includes ATR, the calculation differs from the standard ATR, which includes gaps from the previous close.
Pink lineThe smoothed value of high − low. The unit is price.
The length changesThe averaging length is changed bar by bar based on how the midpoint of the high and low advances.
2 valuesThe line's value and the averaging length can also be checked in the Data Window.
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 to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view.
A large value means the smoothed high-low range is large. It does not represent a rise or fall of the price.
It is a price value, not pips or points. Read it according to the symbol's number of digits.
The averaging length is not fixed. Check it in the Data Window.
A calculation that smooths bar ranges. The more efficiently the midpoint of the high and low advances, the longer the averaging length becomes and the more slowly it follows.
Uses each bar's high − low. Even if a bar opens with a gap from the previous close, the width of that gap is not added directly.
The ratio is found by dividing the net movement of the high-low midpoint by the sum of recent movements.
The higher the ratio, the longer it is. For period N, the range is a minimum of max(N÷2,1) and a maximum of 5N. If the sum of movements is 0, it is set to N.
Moves from the previous average toward the bar's high-low range by the coefficient 2÷(1 + averaging length).
Check the line in the separate window with Period = 14.
The line's value is in price units, and the length is a number used in the averaging calculation.
The change example is 14→40. Compare the values with conditions other than the input kept the same.
Check changes in the range separately from rises and falls of the price.
| Included file | Purpose / location |
|---|---|
| TRI_Adaptive_ATR.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 is 1 input. Change it on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpPeriodThe first N bars are hidden, and display starts from bar N+1. With the default of 14 it is the 15th bar, and with the changed example of 40 it is the 41st bar. Even in the hidden section, the internal average needed for later calculations is updated.
The shortest setting can also be used. In this case, the lower limit of the average length is 1.
When the forming bar's high or low moves, the range and the average change. It is recalculated when history is added or corrected.
The upper limit of the separate window adjusts automatically. When comparing setting examples, check the scale and the values.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
Calculated values are stored in buffers and shown as lines and bars. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.
Check that the history has at least period N + 1 bars. With an out-of-range input it does not start, and 1 line giving the reason in English appears in "Toolbox → Experts". The reason is not shown on the chart.
This product adaptively smooths high − low. It does not produce the same values as the standard ATR.
It may be smoothing a state where the high-low range is small. Check the price unit and the number of displayed digits.
The range of the averaging length and the required number of history bars change. Wait for the update and compare the values.
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.
Midpoint price M = (H + L) ÷ 2. The efficiency ratio is the net movement from N bars earlier ÷ the sum of |change in M| over the latest N bars, and length = efficiency ratio × (5N − max(N÷2,1)) + max(N÷2,1). N÷2 is a real number. If the denominator is 0, the length is N.
The high − low of the oldest bar is used as the initial value of the average. Until N earlier bars are available, and on the first bar shown, the net movement is treated as 0; after that, the normal efficiency ratio is used.
Average = previous average + 2÷(1 + length) × (bar's high-low range − previous average). MediumVioletRed, solid, width 2. The length is not drawn as a line and is shown as a value.