Look at the labels
The 3 lines labeled Filtered are not raw ADX or DI.
Applies a two-stage filter to ADX and ±DI and shows them as 3 smooth lines that differ from the original calculated values.
Distinguish blue, green and redBlue is processed ADX, green is processed +DI, and red is processed −DI.
Change the shape with coefficientsIn addition to the period, you specify 2 coefficients: leading and smoothing.
Not limited to 0 to 100The processed lines can go below 0 or above 100.
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.
The 3 lines labeled Filtered are not raw ADX or DI.
The period is for the base calculation; the 2 coefficients are for the filter after it.
Values shown below 0 are also results of the calculation. Do not immediately conclude they are abnormal.
This display processes the original ADX and DI in two stages; it is important not to mistake the filtered values for standard ADX values.
Based on the exponentially smoothed DI and ADX that use the same formula as the MT5 standard ADX. It is not the Wilder method.
Shapes the line using the current value, the previous original value and the previous filtered value. It does not mean it refers to future bars.
The output of the leading filter is exponentially smoothed with Smoothing Alpha. A small coefficient keeps more of the past output.
A horizontal line for comparison. Because the values are processed, do not carry over level interpretations for the standard ADX as they are.
Check the Filtered display: blue ADX, green +DI and red −DI.
Look at the vertical axis, including whether there are values below 0.
Even if you use the change example as a reference, that does not mean its values are recommended.
When comparing with the base ADX on another chart, understand that even with the same period, they differ in whether processing is applied.
| Included file | Purpose / location |
|---|---|
| TRI_Smoothed_ADX.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 3 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.
InpPeriodInpLeadAlphaInpSmoothAlphaFor period n, the ±DI lines start from bar n+1 counted from the oldest, and the ADX line from bar 2n+1. With the default of 14, these are the 15th and 29th bars.
Because of the leading-type processing, values can go outside 0–100. The display is not specified to be fixed at 0–100.
The latest bar changes with price updates. There are no alerts or orders.
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 trade orders. It does not guarantee profit or future price movement.
A two-stage filter is added. This product does not show the same values as the standard.
Filtered DI is a processed value. It does not mean the original DM/TR ratio is negative.
±DI and ADX start displaying at different numbers of bars.
A coefficient of 0 cannot be used. Set both coefficients back to above 0 and up to 1, and the period to 1 to 500.
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 an original value X, L=2X+(a1−2)X(previous)+(1−a1)L(previous), F=a2L+(1−a2)F(previous). ADX, +DI and −DI are each processed independently. The initial state is 0.
The base uses the same formula as the exponentially smoothed standard ADX, but the final display is F. Equality with the standard is not claimed to extend to the final 3 lines.
The previous filter state is kept for each bar, and the forming bar is recalculated. This product does not refer to future data to draw ahead.