Check the colors
Green is +DI > −DI, red is +DI < −DI.
Shows whether +DI or −DI is larger with colored bars from each bar's low to its high.
Look at green and redGreen if +DI is larger, red if −DI is larger.
Look at the high-low rangeThe bar runs from that bar's low to its high. It is not the height of ADX.
Equal values are not drawnNo colored bar is placed on bars where +DI and −DI are equal.
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 for explaining the display. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.
Green is +DI > −DI, red is +DI < −DI.
The top and bottom ends of the bar are that bar's high and low.
It is overlaid on the candles rather than replacing them. It can hide the open and close.
These are high-low bars that carry the direction comparison as color; it is not a function that recolors bullish and bearish candles.
Based on the exponentially smoothed DI that uses the same formula as the MT5 standard ADX. It is not the Wilder method.
ForestGreen if +DI > −DI, Crimson if +DI < −DI. Equal values are EMPTY and are not drawn.
Corresponds to high − low. The length does not show the size of the DI difference or of the ADX value.
Because it is drawn on top of the price chart, adjust this product's line width and color if the candle bodies are hard to see.
Check the green and red high-low bars.
The bars do not show open or close, so distinguish them from the candles.
Between the change example 7 and 14, the DI smoothing changes and so do the places where the color switches.
Use the color and line width in the properties to keep the original bars easy to read.
| Included file | Purpose / location |
|---|---|
| TRI_DI_Trend_Bars.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.
InpPeriodNothing is drawn before bar n+1 counted from the oldest. After that, too, no bar is drawn on bars where the DIs are equal.
The high, low and the relative size of the DIs are updated, and the length and color of the bar change.
There are no arrows or alerts. It is not a display to be used as trading instructions.
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.
This product colors by DI; the original candles are colored by open and close.
Outside the initial section, equal DI values are a possible cause. Also distinguish a length of 0 from a hidden bar.
Make the line width of the overlaid bars thinner or adjust the color. The original price bars are not removed.
Check the period 1 to 500 and the number of history bars, and look in the Experts tab for an English message refusing to start.
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.
It is DRAW_COLOR_HISTOGRAM2 using 3 buffers: high, low and color index. With equal values, the high and low display values are set to EMPTY.
The base DI formula belongs to the same family as the standard ADX, but the display is price high-low bars. The bar length cannot be compared with standard ADX values.
Display starts at index n. Indexes are counted with the oldest bar as 0. It recalculates in response to the latest bar and changes in history.