Distinguish the 2 lines
Gray is the DI difference; the colored line is the signed ADX.
Shows a line of smoothed signed DX and the DI difference, so that the sign of the value and the meaning of the color can be checked separately.
Read above and below 0Because it is the result of smoothing signed DX, its sign can lag and differ from the current DI order.
The default color shows rise or fall of the valueBlue is above the previous value, orange shades are below. If equal, the previous color is kept.
Strength is a different coloringColors are split by whether the absolute value increased or decreased.
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.
Gray is the DI difference; the colored line is the signed ADX.
Direction is the rise or fall of the value; Strength is the increase or decrease of the absolute value.
There are also negative blue and positive orange-shaded sections. Blue is not always positive.
Because the direction sign is applied before smoothing, it differs from a line that adds the current DI sign to the standard ADX afterward.
+DI−−DI. If Diff Smoothing is 0, it is used as it is; with a positive period, it is the exponentially smoothed value.
The sign of the DI order is applied to DX, and that value is exponentially smoothed to make the colored line.
Blue if the current value of Signed ADX is larger than on the previous bar, SandyBrown if smaller. This is separate from being above or below 0.
Blue if the absolute value is larger than before, SandyBrown if smaller. If the same, the previous color. The name does not guarantee price strength or weakness.
Tell apart the 0 line, the gray line and the colored line.
Read whether the color shows a rise or fall.
Now reread it as an increase or decrease of the absolute value.
0 means no smoothing. When a period is specified, it is an additional process applied only to the gray line.
| Included file | Purpose / location |
|---|---|
| TRI_Signed_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.
InpPeriodInpDiffSmoothingInpColorModeFor base period n and additional smoothing q, the gray line is displayed from bar n+q+1 counted from the oldest, and the colored line from bar 2n+1.
With q=1 the coefficient is 1, so the value is the same as the original DI difference, but the gray line starts 1 bar later than with q=0.
If the compared value is the same, the previous color is kept. Values and colors on the current bar are updated.
±25 and 0 are reference lines. It does not issue alerts or place 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.
The color depends on the chosen comparison method, not on the sign. Look at Direction / Strength in the window name.
It is a separate output that applies the sign to DX and then smooths it. It is not the standard ADX with only a sign added.
The required number of bars is n+q+1. With a large q, it can appear later than the colored line.
Check the period and the smoothing range, and read the English message in the Experts tab.
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.
DX=100×|+DI−−DI|/(+DI+−DI) is calculated from the base DI, the sign of the DI order is applied, and it is smoothed with the coefficient 2/(n+1). A denominator of 0 gives 0. With equal DI values the previous sign is kept, but since DX=0, that bar contributes 0.
If q=0, the DI difference is used as it is. With q>0, G=2/(q+1)×DI difference+(1−2/(q+1))×G(previous). The initial state is 0.
The color compares the value (Direction) or the absolute value (Strength) with the previous bar, and is held when equal. That the base DI formula belongs to the standard ADX family is separate from whether the final display equals the standard ADX.