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.
Groups the bars of the current chart and overlays the open, high, low and close of a longer time span for checking.
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.
Read the colorIf the close is above the open, the up color; if below, the down color; if nearly the same, the equal color.
Check the boundariesThe candle length and the boundary time are specified by inputs. The time reference is server time.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
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.
This product does not change the chart's own timeframe; it overlays candles of a longer time span.
For the session in progress, the close, high, low and color change. Read it separately from completed sessions.
OHLC formed by grouping the bars in the chart by time. It does not load completed data from another timeframe.
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.
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 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.
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 length | Usable MT5 chart timeframes (shift 0) |
|---|---|
| 2 hours | M1, M2, M3, M4, M5, M6, M10, M12, M15, M20, M30 |
| 3 and 4 hours | The above + H1 |
| 6 and 8 hours | The above + H1, H2 |
| 12 hours | The above + H1, H2, H3, H4 |
| 24 hours | The 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.
First open a supported timeframe such as M15 and attach only 1 instance of this product.
Check Candle Length and Boundary Shift. The reference is the server time, not Japan time.
For one period, compare the open, high, low and close of the original bars with the overlaid shapes.
When you change the length, shift, number of candles or colors, make it clear which conditions each display uses.
| Included file | Purpose / location |
|---|---|
| TRI_HTF_Candles.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 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.
InpCandleHoursInpShiftHoursInpMaxCandlesInpUpColorInpDownColorInpDojiColorInpWidthInpFillBoundaries 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.
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.
Instances with the same length and shift may interfere with each other's display. Compare different settings on separate charts as well.
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.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
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.
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.
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.
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.
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.
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).
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.
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.
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.