0 if it is the adjacent bar
If there is a strictly higher high 1 bar earlier, the high-side count is 0.
Shows, as green positive bars and red negative bars, the number of past bars until a high higher than, or a low lower than, the current bar is met.
High side is greenThe number of bars passed, going back from the previous bar, until a bar strictly higher than the current one is met.
Low side is redShows as a negative value the number of bars until a low strictly lower than the current one is found.
Upper limit and minimumIf nothing is found within the limit, the number of bars searched. Bars below the minimum count are set to 0.
Compares the default settings and a settings change example on a screen with only this product applied.
Published example: M1. This is an example to explain the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR code. The example with changed settings is not a set of recommended values. Details can be checked in the full-size view. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and the displayed range.
If there is a strictly higher high 1 bar earlier, the high-side count is 0.
It does not stop at the same high or low. The comparison is strict.
Shows the number of bars searched. Distinguish reaching the limit from an exact distance to a found bar.
It measures how many past bars were passed, not the size of a high update or the elapsed time.
If a higher high is first found 3 bars earlier, the 2 bars in between were passed, so the value is 2.
Searches up to the smaller of Search Depth and the number of available past bars. If nothing is found, the value is that number of bars.
With 5, values 0 to 4 are set to 0. 5 or more is the original count. It is not a calculation that subtracts the minimum.
The high and the low are independent. On bars with a large range, both positive and negative bars can appear on the same bar.
Check the positive and negative bars and the bar counts on the vertical axis.
On the latest bar, the count changes as the high and low update.
Confirm that the found bar is not included in the count.
Change the minimum and the search depth one at a time to separate the effects of the 0 display and the limit.
| Included file | Purpose / location |
|---|---|
| TRI_High_Low_Age_Histogram.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. When comparing different settings, using separate charts makes checking easier.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
Using this product does not require allowing DLLs. When removed, this product's drawings are cleared.
There are 6 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpMinBarsInpDepthInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe high, low and close of the current bar move. Because the calculation is redone when history is added or corrected or settings are changed, past display may also change.
This product is for display. It has no function to automatically execute trades, exits, stop orders or notifications.
100 bars on M1 and 100 bars on H1 are not the same elapsed time. Compare on the same timeframe.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
If no matching value is found within the search range, the value is the limit count.
This is because the found bar is not included in the count. If it is found on the adjacent bar, the value is 0.
Values below Minimum Count are 0. Check the settings and the scale.
Check the search depth and the number of history bars. On the first run, the calculation goes back from each bar.
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.
The comparisons are strict: for the high, a past high must be greater than the current high; for the low, a past low must be less than the current low.
Searching back from t, if found at bar i, the value is t−1−i. If not found, it is min(t, Depth).
Shows the bar count as it is, without converting to price or days. The display has 0 decimal places.