MT5 indicators← High Low Age Histogram product page日本語の取扱説明書

This product is in preparation for release. Product files are not yet distributed; the manual is published so that you can review its content. This manual is an English translation of the Japanese manual. Images (screens and figures) are not translated and may contain Japanese text or earlier names.

For Trilogy users

High Low Age Histogram

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.

Indicator name: High Low Age HistogramMetaTrader 5Separate window

Counted without including the bar that was found

Found 1 bar earlier → value 0High side + countLow side − countPasses equal values and stops at a strictly higher high or strictly lower lowA large count does not guarantee a future update or reversal
Schematic diagram of how to read it. This is not an actual terminal screen.
1

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.

2

Low side is redShows as a negative value the number of bars until a low strictly lower than the current one is found.

3

Upper limit and minimumIf nothing is found within the limit, the number of bars searched. Bars below the minimum count are set to 0.

Unit is barsDefault minimum 5 / search 1000Does not stop at equal values
1

MT5 display and examples of changed settings

Compares the default settings and a settings change example on a screen with only this product applied.

Settings change example: these items are changed
Minimum count to display / Minimum Count (bars)
InpMinBars
5 → 0
Maximum bars to search / Search Depth (bars)
InpDepth
1000 → 200

All other inputs remain at their defaults. On a PC, the default is on the left and the change example on the right; at smartphone width they appear in the same order from top to bottom.

Default settingsInpMinBars = 5 / InpDepth = 1000
High Low Age Histogram default settings
Minimum 5, search 1000. The bar count on the high side is shown in green as positive, and on the low side in red as negative.
View the screen in detail at full size
High Low Age Histogram default settings (full size)
Settings change exampleInpMinBars = 0 / InpDepth = 200
High Low Age Histogram settings change example
Changed to minimum 0 and search 200. Small counts are also shown, and the search limit is shortened to 200 bars. Also check the vertical axis.
View the screen in detail at full size
High Low Age Histogram settings change example (full size)

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.

2

How to read it in 30 seconds

0 if it is the adjacent bar

If there is a strictly higher high 1 bar earlier, the high-side count is 0.

Equal values are passed

It does not stop at the same high or low. The comparison is strict.

Upper limit if not found

Shows the number of bars searched. Distinguish reaching the limit from an exact distance to a found bar.

3

What it measures

It measures how many past bars were passed, not the size of a high update or the elapsed time.

Count example

If a higher high is first found 3 bars earlier, the 2 bars in between were passed, so the value is 2.

End of the search

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.

0 display due to the minimum

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.

Measures 2 directions separately

The high and the low are independent. On bars with a large range, both positive and negative bars can appear on the same bar.

4

Situations for reading the display

Green is tall

Indicator
Many bars were passed before a higher high was met.
Cross-check
Check whether the search limit has been reached.
Check
Read it as how far back the search reached.
Caution
It does not indicate a continued price rise or a buy.

Red is long

Indicator
Many bars were passed before a lower low.
Cross-check
The minus sign is to distinguish the low side.
Check
You can read the count as the absolute value.
Caution
It is not a size of decline or loss.

Positive and negative grow at the same time

Indicator
Both the high and the low sides reach a wide range.
Cross-check
Compare with that bar's range.
Check
It is not a contradiction; these are separate measurements.
Caution
This product does not determine a single direction.

Mostly 0

Indicator
Values may be below the minimum, or the matching bar may be the one just before.
Cross-check
Check which is larger, the minimum or the search depth.
Check
If the minimum exceeds the search depth, everything can become 0.
Caution
It is not necessarily an input error.
5

Steps for checking the display

1

Look at the default screen

Check the positive and negative bars and the bar counts on the vertical axis.

2

Check the target bar

On the latest bar, the count changes as the high and low update.

3

Compare with the price

Confirm that the found bar is not included in the count.

4

Compare conditions separately

Change the minimum and the search depth one at a time to separate the effects of the 0 display and the limit.

6

Installation and checking the package contents

Included filePurpose / location
TRI_High_Low_Age_Histogram.ex5The 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.

1

Extract the ZIP

Extract the ex5 main file rather than leaving it in the compressed file.

2

Open the data folder

In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.

3

Apply this product

Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.

4

Check the settings and display

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.

7

Settings

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.

Minimum count to display

English item name
Minimum Count (bars)
Input name
InpMinBars
Default
5
Allowed range
Integer from 0 to 100000
Description
Default 5. Counts below it are set to 0. If it is larger than the search depth, everything can become 0.

Maximum bars to search

English item name
Search Depth (bars)
Input name
InpDepth
Default
1000
Allowed range
Integer from 1 to 100000
Description
Default 1000. A combination of a large value and a long history increases the calculation load.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Switches the display only. The calculation conditions do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.
8

Usage specifications

Current bar and history

The 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.

Does not place orders

This product is for display. It has no function to automatically execute trades, exits, stop orders or notifications.

Unit of comparison

100 bars on M1 and 100 bars on H1 are not the same elapsed time. Compare on the same timeframe.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

Bars line up at the limit

If no matching value is found within the search range, the value is the limit count.

The value is 1 smaller than expected

This is because the found bar is not included in the count. If it is found on the adjacent bar, the value is 0.

No small bars

Values below Minimum Count are 0. Check the settings and the scale.

Loading or updating is slow

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.

10

Technical information and specification details

Comparison

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.

Counting

Searching back from t, if found at bar i, the value is t−1−i. If not found, it is min(t, Depth).

Value format

Shows the bar count as it is, without converting to price or days. The display has 0 decimal places.