Which of the 2 lines is higher
Check whether ATR is larger or smaller than its own average.
Compares the blue ATR and the orange-red ATR average line in the same window. If needed, the difference between the 2 lines can be shown as gray bars. What is compared is the range of price movement, not the up or down direction of price.
BlueATR, the true range averaged with the selected method.
Orange-redA line that averages the ATR again. It is not a price average.
Gray barsATR − average line, when the display is enabled.
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. The vertical axis of the separate window is adjusted automatically for each image, so do not compare values by on-screen height alone.
Check whether ATR is larger or smaller than its own average.
Above 0, ATR is larger; below 0, it is smaller.
The ATR averaging method and the ATR average line method are selected separately.
Read the price range itself separately from its deviation from its recent average.
Averages the true range, which includes the previous close as well as the high and low.
The MA line is the average of the blue ATR. It is not a price MA.
Gray bars=ATR−ATR MA. By default, the bars of the calculated result are not drawn.
The 2 lines and the difference are in the same units as price. They are not values converted to ratios or pips.
Read from the 2 lines, blue and orange-red.
Set Show Difference Histogram to true.
Setting ATR MA Period to 0 removes the average line and the bars.
| Included file | Purpose / location |
|---|---|
| TRI_ATR_With_MA.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 5 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpATRPeriodInpATRMethodInpMAPeriodInpMAMethodInpShowHistogramValues and drawing change with the latest bar's high, low and close. They are also recalculated when history is added or corrected or settings change.
Compare with the same symbol, timeframe, period and loaded history. The display is not a forecast of future prices.
By default, ATR can be calculated from the 30th bar, and the average line and difference from the 49th bar. EMA starts from the first value of the input series; the other methods need the specified number of bars.
The default header is in the order difference, ATR, ATR MA, and the hidden difference appears as 0. Do not use the hidden value to judge that the difference is zero.
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.
Check the display switch and ATR MA Period. With period 0, it does not appear even if the display switch is true.
Values are shown in price units. Check the decimal places and the vertical axis, and do not regard a value such as 0.0001 as abnormal.
Check the allowed range of the inputs and the number of history bars. Outside the range, the indicator does not start, and the reason is shown in English in the Experts tab of the Toolbox. No explanation is shown on the chart.
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.
ATR=MA method(TR,N). ATR MA=other MA method(ATR,M). Diff=ATR−ATR MA. For TR, the oldest bar uses H−L, and after that max(H,previous C)−min(L,previous C).
SMA uses equal weights, LWMA gives more weight to newer values, the EMA coefficient is 2/(N+1), and SMMA uses 1/N. SMMA uses the simple average of the first N values as the seed.
ATR Method=SMA uses the same simple-average formula as the MT5 standard ATR. EMA, SMMA and LWMA are not treated as equivalent to the standard ATR.