What to look at
Levels of highs and lows confirmed over several time spans.
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.
The 4 colors are the timeframe tiersTier 1 is orange-red, tier 2 blue, tier 3 gold and tier 4 magenta.
2 lines per tierThe 2 lines of the same color are resistance and support. The color alone does not distinguish rising from falling.
Updated after confirmationAfter the higher-timeframe bar 2 bars after the center closes, the new level is shown from the next higher-timeframe boundary.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
Levels of highs and lows confirmed over several time spans.
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.
It is not a price that always rebounds, nor a trading instruction. Price can also cross the line.
Groups the bars of the same chart by time boundaries and keeps the levels confirmed on 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.
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.
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.
The previous level is used until the next fractal of the same side is confirmed. Resistance and support are updated independently.
Check the 4 timeframes and the chart timeframe.
Look at the resistance and support of the same color as one pair.
From the position where the line updated, check the relation between the higher-timeframe center and the 2 bars after it.
On a separate chart, change only 1 timeframe and compare the values and the overlap of lines.
| Included file | Purpose / location |
|---|---|
| TRI_HTF_Fractal_Levels.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 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.
InpTf1InpTf2InpTf3InpTf4InpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIf 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.
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.
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.
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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
They may overlap the lines of other tiers. Avoid identical settings, and compare by changing only one tier's setting on a separate 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.
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.
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.
2 lines, resistance and support, for each of 4 tiers, 8 in total. It has no object extension lines or notifications.
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.