Check the timeframe
Check Timeframe and the chart timeframe. Combinations that cannot be handled fall back to the chart timeframe.
Confirms peaks and troughs on a higher timeframe built from the chart's bars, and shows marks after confirmation, high/low levels and points using ATR.
Red and green arrows are points after confirmationRed is the higher-timeframe high and green the low. They are placed on the first chart bar of the next period after the higher-timeframe bar closes.
Orange-red and gray are the last high and lowOrange-red keeps the last confirmed high and gray the last confirmed low. The blue line joins the confirmed points.
The small round dots are a separate calculationThey are ATR points, greenish if the last point is a low and reddish if it is a high. They are not actual orders or fixed stops.
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.
Check Timeframe and the chart timeframe. Combinations that cannot be handled fall back to the chart timeframe.
Arrows are confirmations by closed higher-timeframe bars; round dots are the ATR calculation on the current bar.
Because arrows are shown after confirmation, they lag behind the positions of past peaks and troughs.
Shows the price structure confirmed on the higher timeframe and the position relative to the chart's range. It is not an indicator that decides future reversals or stop-loss prices.
Instead of reading another timeframe's history directly, the chart's bars are grouped by time period. On long timeframes, the incomplete period at the start of the history is not used.
When a point is confirmed on higher-timeframe bar k, the mark appears on the first bar of the next period k+1. The high/low hold lines are also values up to the closed period.
The true range of the chart's bars is simply averaged over ATR Period bars. It is not the higher-timeframe ATR. The first display comes after the period's number of bars.
If the last confirmed point is a low, current high − multiple × ATR; if it is a high, current low + multiple × ATR. It can come inside the candle, and the upper and lower names do not guarantee that it is always placed outside the bar.
The default is H1. With Current, the chart's bars are used, and confirmed points appear on the next chart bar.
Check the red high and green low arrows, the orange-red / gray hold lines and the blue connecting line.
Round dots are set by the current bar's price and the ATR multiple. They are not the higher-timeframe vertex price itself.
Depth is a number of higher-timeframe bars and ATR Period a number of chart bars. Do not mistake the two for the same bar unit.
| Included file | Purpose / location |
|---|---|
| TRI_HTF_ZigZag_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 11 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpTfInpDepthInpDeviationInpBackstepInpPriceInpAtrPeriodInpAtrMultInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe horizontal position of a dot is the time it was confirmed, and the vertical position is the price of the past candidate. It may be away from the candle at that time.
When the next confirmed dot appears, a segment is added between it and the previous dot. It does not mean that a signal appeared at that time on each past bar along the segment.
The statement that confirmed dots are not moved applies to adding bars with the same history and the same settings. It does not guarantee the same display after history corrections, additional loading or input changes.
Confirmed dots and high/low holding lines are read from closed higher timeframe bars. The round ATR dots also change on the current chart bar, and there is no Closed Bars Only setting.
Aggregation follows timeframe periods in terminal time. Periods with no trading are not filled in artificially. It is not guaranteed to always match the higher timeframe history the terminal holds separately.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
The period at the start of the history is excluded, and it waits for higher-timeframe confirmation and the next period. If there is only one vertex, the level on the opposite side is blank.
If it cannot be used in combination with the chart timeframe, it falls back to the chart timeframe. Check the supported conditions.
This is because they are placed on the bar after confirmation at a past candidate price. Adjust the price axis and the visible range.
The calculation is high − multiple × ATR or low + multiple × ATR. When the multiple is small, for example, it comes inside the bar.
Check the supported timeframes and the ranges of Depth, Deviation, Backstep, ATR Period and ATR Multiple.
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.
Current is the chart timeframe. The same timeframe is used as is. If the chart is weekly or monthly, a request for a different timeframe falls back to the same timeframe. Otherwise weekly and monthly are allowed, and fixed-length timeframes are used if they are longer than the chart and their seconds divide evenly.
Candidate updates take priority, and on a higher-timeframe bar that does not update the candidate, the opposite-side extreme, exceeding Deviation and at least Backstep bars are checked. Output first appears in the period after the confirming period. When a later point forms, a line segment is added.
The true range is max(high, previous close) − min(low, previous close). The first bar is high − low. When the 0-based bar number i is at least the period P, the P bars from i−P+1 to i are averaged and the point is shown.
0 connecting line, 1 high mark, 2 low mark, 3 last high, 4 last low, 5 low-side ATR point, 6 high-side ATR point. A blank is different from zero.
The published screens are display examples. They do not guarantee performance for all symbols, all timeframes or long histories. There are no notifications, automated trading or simultaneous display of several timeframes.