MT5 indicators← Higher Timeframe Candles 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

Higher Timeframe Candles

Groups the bars of the current chart and overlays the open, high, low and close of a longer time span for checking.

Indicator name: Higher Timeframe CandlesMetaTrader 5Overlaid on the price chart

Read a group of small bars as one candle

Up: close > openDown: close < openGroups thin bars by the specified time spanBox =open and closeWick =high and low
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Look at the box and the wicksThe box is the session's open and close, and the upper and lower wicks are that session's high and low.

2

Read the colorIf the close is above the open, the up color; if below, the down color; if nearly the same, the equal color.

3

Check the boundariesThe candle length and the boundary time are specified by inputs. The time reference is server time.

7 lengths from 2 to 24 hoursAggregated from the current chart's barsDoes not show remaining time
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
Candle length
InpCandleHours
4 hours → 6 hours
Boundary shift
InpShiftHours
0 → 2
Number of candles shown
InpMaxCandles
200 → 30
Up color
InpUpColor
ForestGreen → DodgerBlue
Down color
InpDownColor
Crimson → Orange
Equal color
InpDojiColor
Gray → DarkGreen
Line width
InpWidth
2 → 1
Fill the body
InpFill
false → true

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 settingsInpCandleHours = 4 hours / InpShiftHours = 0 / InpMaxCandles = 200 / InpUpColor = ForestGreen / InpDownColor = Crimson / InpDojiColor = Gray / InpWidth = 2 / InpFill = false
Higher Timeframe Candles default settings
The default is 4 hours with a boundary shift of 0. The green (ForestGreen) and red (Crimson) outlines are this product's display. Distinguish them from the thin gray bars in the background.
View the screen in detail at full size
Higher Timeframe Candles default settings (full size)
Settings change exampleInpCandleHours = 6 hours / InpShiftHours = 2 / InpMaxCandles = 30 / InpUpColor = DodgerBlue / InpDownColor = Orange / InpDojiColor = DarkGreen / InpWidth = 1 / InpFill = true
Higher Timeframe Candles settings change example
An example changed to 6 hours with a +2 hour boundary, with the number of candles, colors, width and fill also changed. The blue and orange are this product's display. Neither image shows a candle in the equal color.
View the screen in detail at full size
Higher Timeframe Candles settings change example (full size)

Example shown: 15-minute chart (M15). 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.

2

How to read it in 30 seconds

First, 4 hours with shift 0

With the defaults, boundaries are at 0, 4, 8, 12, 16 and 20 o'clock server time. Attach it to a supported timeframe such as M15.

Distinguish the long candles from the original bars

This product does not change the chart's own timeframe; it overlays candles of a longer time span.

The right edge is an interim value

For the session in progress, the close, high, low and color change. Read it separately from completed sessions.

3

What it measures

OHLC formed by grouping the bars in the chart by time. It does not load completed data from another timeframe.

How the four prices are combined

Uses the open of the first bar in the session, the close of the last bar, the maximum high and the minimum low. Missing bars are not filled in for the calculation.

Up, down and equal colors

If close − open is greater than 0.5 point, the up color; if less than −0.5 point, the down color; in between, the equal color. A point is the symbol's price display unit.

The width is the positions of elapsed bars

The left and right ends of the box are the start times of the first and last bars of the session. It does not extend to the scheduled session end time and does not show remaining time.

Boundaries and usable timeframes

The chart's bar must be 1/3 or less of the length being displayed, and must divide that length and the shift evenly. The table below is for a shift of 0.

Candle lengthUsable MT5 chart timeframes (shift 0)
2 hoursM1, M2, M3, M4, M5, M6, M10, M12, M15, M20, M30
3 and 4 hoursThe above + H1
6 and 8 hoursThe above + H1, H2
12 hoursThe above + H1, H2, H3, H4
24 hoursThe above + H1, H2, H3, H4, H6, H8

"The above" in the table means the minute timeframes in the first row. If the shift is not 0, the shift time must also be evenly divisible by the chart timeframe. Example: with +1 hour, H2 and above cannot be used. H12, daily, weekly and monthly are not supported.

4

Situations for reading the display

Compare the short bars with the long candle

Indicator
Look at the open and close of the box and the upper and lower wicks.
Cross-check
Cross-check against the high and low of the original bars in the same period.
Check
First check the time span to display and the chart's timeframe.
Caution
The overlaid colors are aggregation results, not trading instructions.

Compare with shifted boundaries

Indicator
Look at the difference between 4 hours with shift 0 and 6 hours with +2 hours.
Cross-check
With 6 hours and +2 hours, the boundaries are at hours 2, 8, 14 and 20.
Check
When comparing, use separate charts and note the input conditions.
Caution
Changing the boundaries also changes the bars included and the four prices (open, high, low, close).

The shape of the candle in progress changes

Indicator
Look at changes in the close and color at the right edge and in the upper and lower wicks.
Cross-check
Check whether the period is still in progress.
Check
Read it as an interim display and keep it separate from final values.
Caution
The remaining time of the period cannot be read from the width of the box.

Rectangles overlap and are hard to read

Indicator
Choose either outline or fill.
Cross-check
Check that the original bars are visible and that the colors do not blend into the background.
Check
Set Fill Body to false, or adjust the line width and color.
Caution
Changing the display colors does not change the formula.
5

Steps for checking the display

1

Choose a chart

First open a supported timeframe such as M15 and attach only 1 instance of this product.

2

Set the length and boundaries

Check Candle Length and Boundary Shift. The reference is the server time, not Japan time.

3

Cross-check the four prices

For one period, compare the open, high, low and close of the original bars with the overlaid shapes.

4

Record setting changes together with their conditions

When you change the length, shift, number of candles or colors, make it clear which conditions each display uses.

6

Installation and checking the package contents

Included filePurpose / location
TRI_HTF_Candles.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. Place only 1 instance of the same product on 1 chart.

4

Check the settings and display

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.

7

Settings

There are 8 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Candle length

Name shown on screen
Candle Length (hours)
Input name
InpCandleHours
Default
4 hours
Allowed range
2, 3, 4, 6, 8, 12 or 24 hours
Description
The time span to aggregate. Choose a length that is at least 3 times the chart's timeframe and divisible by it.

Boundary shift

Name shown on screen
Boundary Shift (hours)
Input name
InpShiftHours
Default
0
Allowed range
−23 to 23 hours
Description
Shifts the server-time boundaries in hours. With 6 hours and +2, they are at hours 2, 8, 14 and 20.

Number of candles to display

Name shown on screen
Candles to Draw
Input name
InpMaxCandles
Default
200
Allowed range
1–1000 bars
Description
The upper limit drawn, starting from the newest period. If little history is available, fewer than this number are drawn.

Up color

Name shown on screen
Up Candle Color
Input name
InpUpColor
Default
ForestGreen
Allowed range
Select an MT5 color
Description
Color for periods where close − open exceeds 0.5 point.

Down color

Name shown on screen
Down Candle Color
Input name
InpDownColor
Default
Crimson
Allowed range
Select an MT5 color
Description
Color for periods where close − open is less than −0.5 point.

Colors for equal values

Name shown on screen
Doji Color
Input name
InpDojiColor
Default
Gray
Allowed range
Select an MT5 color
Description
Used for periods where the difference is within ±0.5 point, and for the warning shown on an unsupported timeframe.

Line width

Name shown on screen
Line Width
Input name
InpWidth
Default
2
Allowed range
1〜5
Description
Width of the body outline and the wicks.

Fill body

Name shown on screen
Fill Body
Input name
InpFill
Default
false
Allowed range
true / false
Description
When true, the body is filled and placed behind the original bars. Periods with only 1 bar and bodies with equal open and close are not filled; their outline is drawn in front.
8

Usage specifications

Server time and daylight saving time

Boundaries are fixed to server time and are not automatically adjusted for daylight saving time. If the server's time offset changes, the boundaries as seen in Japan time change.

Omitting the first section of history

Because the start of the history may be in the middle of a section, the oldest section is not drawn. If there is only one section's worth of history, nothing is drawn.

Avoid duplicates with the same conditions

Instances with the same length and shift may interfere with each other's display. Compare different settings on separate charts as well.

Updates and changes in history

The section in progress is redrawn as the price updates. On a new bar or a change in history, all sections are recalculated, so past displays may also change according to the history.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

It draws shapes and text on the chart. There is no plot buffer for retrieving calculated values. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.

9

Troubleshooting and usage notes

“not available on this time frame” appears

The chart's timeframe cannot be used with the input length. Check the table in Chapter 3 and the shift conditions, and switch back to a supported timeframe. You do not need to attach the indicator again.

Nothing is displayed

Check the supported timeframes, required history and input ranges. With out-of-range inputs it does not start, and the reason is shown in English in the “Experts” tab.

The boundaries do not match Japan time

Check the difference between the chart's server time and the time you want to align with. Boundary Shift is not a Japan time or GMT setting.

Original bars are hard to see / colors are not visible

Adjust Fill Body, Line Width and each color. Avoid colors close to the background, and use an outline-only display if needed.

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

Periods and the four prices

Periods are set from each bar's start time using the specified time span and shift. The first open, last close, highest high and lowest low of the bars in that period are used. The wicks are placed on the middle bar (for an even number of bars, the older of the middle 2).

Boundary of the unchanged color

The difference is calculated in points, and the range including −0.5 to +0.5 gets the unchanged color. It is not limited to an exact open = close.

Drawing and removal

Each period uses objects for 1 body and 2 wicks. Old periods that fall out of range are deleted, and removing the indicator removes this product's objects.

Display constraints

The number of candles is an upper limit within the available history, excluding the oldest period. A period in progress is not final, and the display does not guarantee future prices, profit or no repainting.