MT5 indicators← HTF Fractal Levels 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

HTF Fractal Levels

Builds several timeframes from the chart's bars and shows the prices of confirmed peaks and troughs as resistance and support lines. Lines are not moved back to the center of a peak or trough; the levels are shown from after the higher-timeframe bars needed for confirmation have closed.

Indicator name: HTF Fractal LevelsMetaTrader 5Price chart

Confirm the higher-timeframe peak or trough, then show the level after it

Separate the higher-timeframe center from the start of the lineCandidate centerTo the next boundaryThe bar 2 bars later closes
Schematic diagram of how to read it. This is not an actual terminal screen.
1

The 4 colors are the timeframe tiersTier 1 is orange-red, tier 2 blue, tier 3 gold and tier 4 magenta.

2

2 lines per tierThe 2 lines of the same color are resistance and support. The color alone does not distinguish rising from falling.

3

Updated after confirmationAfter the higher-timeframe bar 2 bars after the center closes, the new level is shown from the next higher-timeframe boundary.

4 tiers × resistance and supportUses only closed higher-timeframe barsAggregated from the chart's bars
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
Timeframe of tier 1 / Timeframe 1
InpTf1
M15 → M5
Timeframe of tier 2 / Timeframe 2
InpTf2
H1 → M15
Timeframe of tier 3 / Timeframe 3
InpTf3
H4 → M30
Timeframe of tier 4 / Timeframe 4
InpTf4
D1 → H1

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 settingsInpTf1 = M15 / InpTf2 = H1 / InpTf3 = H4 / InpTf4 = D1
HTF Fractal Levels default settings
The default is 4 tiers: M15, H1, H4 and D1. Each color represents resistance and support of the same tier. These are levels aggregated from the bars on the chart, not higher timeframe history obtained separately.
View the screen in detail at full size
HTF Fractal Levels default settings (actual size)
Settings change exampleInpTf1 = M5 / InpTf2 = M15 / InpTf3 = M30 / InpTf4 = H1
HTF Fractal Levels settings change example
An example changed to M5, M15, M30 and H1. In this image, tiers 1 and 2 overlap the gold lines of tier 3 and are not visible as separate colors. The 4 colors are not always seen apart.
View the screen in detail at full size
HTF Fractal Levels settings change example (actual size)

Example shown: M1. This is an example for explaining the display. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the packaged version has display settings for the brand text and the QR code. 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.

2

How to read it in 30 seconds

What to look at

Levels of highs and lows confirmed over several time spans.

When does it change

After the higher-timeframe bars needed to confirm a new peak or trough have closed. It is not updated on a forming higher-timeframe bar.

What it does not show

It is not a price that always rebounds, nor a trading instruction. Price can also cross the line.

3

What it measures

Groups the bars of the same chart by time boundaries and keeps the levels confirmed on the higher timeframe.

Building the higher timeframe

The chart's highs, lows and so on are grouped for each time boundary. The higher-timeframe period that contains the first bar of history is not used, because it may be incomplete.

Shape of peaks and troughs

Checks for a peak whose 2 newer-side bars are strictly lower than the center, or a trough whose 2 newer-side bars are strictly higher. It judges with shapes of 5 to 9 bars, including runs of equal values on the older side.

Start of the lines

After the higher-timeframe bar 2 bars after the center m closes, the level is shown on the chart bars of the next boundary. On a tier with the same timeframe as the chart, it starts from the bar after the confirming bar.

Keeping the level

The previous level is used until the next fractal of the same side is confirmed. Resistance and support are updated independently.

4

Situations for reading the display

Fewer lines seem to be showing

Indicator
Lines at the same price
Cross-check
Each tier's timeframe and price
Check
Check for identical settings or overlaps
Caution
The number of overlapping lines cannot be counted from the number of colors on screen alone.

Price crossed the line

Indicator
Resistance and support levels
Cross-check
Candles and the next level update
Check
Read it as a high or low confirmed in the past
Caution
There is no mechanism that cancels a level just because price crossed the line.

The line stays horizontal for a long time

Indicator
Keeping the level
Cross-check
Formation of a new peak or trough
Check
Check the confirmation conditions of that timeframe
Caution
The level does not necessarily change at fixed time intervals.

Selected a shorter timeframe

Indicator
A tier equal to the chart
Cross-check
Selected value and the chart timeframe
Check
Check the conditions for treating it as another timeframe
Caution
It does not fetch the history of timeframes shorter than the chart.
5

Steps for checking the display

1

Apply with the defaults

Check the 4 timeframes and the chart timeframe.

2

Tell the tiers apart by color

Look at the resistance and support of the same color as one pair.

3

Find the time of confirmation

From the position where the line updated, check the relation between the higher-timeframe center and the 2 bars after it.

4

Change only one tier

On a separate chart, change only 1 timeframe and compare the values and the overlap of lines.

6

Installation and checking the package contents

Included filePurpose / location
TRI_HTF_Fractal_Levels.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 8 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Timeframe of tier 1

English item name
Timeframe 1
Input name
InpTf1
Default
M15
Allowed range
Current / MT5 timeframes (M1 to MN1)
Description
Current is the same timeframe as the chart. A shorter timeframe, or a timeframe that is not an integer multiple, is treated as the chart timeframe. For the weekly and monthly exceptions, see the usage specifications.

Timeframe of tier 2

English item name
Timeframe 2
Input name
InpTf2
Default
H1
Allowed range
Current / MT5 timeframes (M1 to MN1)
Description
Current is the same timeframe as the chart. A shorter timeframe, or a timeframe that is not an integer multiple, is treated as the chart timeframe. For the weekly and monthly exceptions, see the usage specifications.

Timeframe of tier 3

English item name
Timeframe 3
Input name
InpTf3
Default
H4
Allowed range
Current / MT5 timeframes (M1 to MN1)
Description
Current is the same timeframe as the chart. A shorter timeframe, or a timeframe that is not an integer multiple, is treated as the chart timeframe. For the weekly and monthly exceptions, see the usage specifications.

Timeframe of tier 4

English item name
Timeframe 4
Input name
InpTf4
Default
D1
Allowed range
Current / MT5 timeframes (M1 to MN1)
Description
Current is the same timeframe as the chart. A shorter timeframe, or a timeframe that is not an integer multiple, is treated as the chart timeframe. For the weekly and monthly exceptions, see the usage specifications.

Brand and QR

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

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Four corners
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

Reinterpretation of timeframes

If longer than the chart and an integer multiple of its length, it is aggregated. Shorter values or non-integer multiples are replaced with the chart timeframe. If the chart is daily or shorter, weekly and monthly can also be selected. If the chart is weekly or monthly, a different timeframe is replaced with the chart timeframe.

Time boundaries

Weeks are divided at Monday, months at 0:00 on the 1st, and others by the number of seconds in the timeframe. Times are chart times. Missing bars or fictitious bars for holidays are not filled in.

Values during a bar

If the history is the same, the lines are not moved by the high/low of the forming higher timeframe bar. There is no Closed Bars Only input.

Effect of history

Longer tiers require enough chart history. The first segment is discarded, and the line is blank until the peak/trough conditions are formed after that.

Changes to history and settings

The case where subsequent bars increase with the same history and settings is different from filling in or correcting the history or changing the start position. Recalculating with changed history or settings may also change past display.

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

The first line does not appear

Check the history and the peak/trough conditions on the selected timeframe. Even if a level appears on a short time span, it may not yet appear on a longer tier.

Orange-red or blue cannot be seen

They may overlap the lines of other tiers. Avoid identical settings, and compare by changing only one tier's setting on a separate chart.

Values differ from the higher-timeframe chart

This product aggregates from the current chart. If the history range, missing bars or time boundaries differ, the values do not necessarily match the terminal's higher timeframe.

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

From confirmation to output

The result when higher-timeframe bar k closes is kept as R[k] and S[k] and shown on the chart bars contained in higher-timeframe bar k+1. The results of a forming higher-timeframe bar are not read.

Fractal comparison

The 2 newer-side bars use a strict comparison. Extended shapes that include equal values on the older side are also judged. The rule does not always compare only 2 bars on each side.

Display series

2 lines, resistance and support, for each of 4 tiers, 8 in total. It has no object extension lines or notifications.

Timeframe data

It does not refer to a separate higher-timeframe history; it groups the OHLC of the bars that exist on the chart. It does not show future peaks or troughs from the time of the center.