When a dot appears, check the time
Top is a record of when an upward swing ended, and Bottom of when a downward swing ended. It does not show that an order could have been placed at the past extreme.
Checks the swing direction by breaks of the preceding highs and lows, and shows the extreme of the ended swing as a dot on the bar where the turn was confirmed. A product for comparing 4 lengths on the same chart.
The horizontal position is the confirmation barThe dot is not moved back to the position of the past peak or trough; it is placed on the bar where the turn could be judged. By default, it waits until that bar closes.
The vertical position is the extreme of the ended swingThe dot's value is the extreme price. On display only, Top is shifted up and Bottom down by 8 pixels. It can look separated from that bar's candle.
Colors distinguish the length input fieldsGray, gold, blue and crimson are Length 1 to 4. Colors do not separate rising and falling. Top and Bottom of the same layer have the same color.
Compares the default settings and a settings change example on a screen with only this product applied.
This is an example for explaining the display. M1 on the screen is the timeframe display at the time the display examples were made and does not show the frequency of occurrence on actual 1-minute bars. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR. The settings change example is not a recommended value. Details can be checked in the actual-size display. Also check the price scale of the main chart and the positions of the candles.
Top is a record of when an upward swing ended, and Bottom of when a downward swing ended. It does not show that an order could have been placed at the past extreme.
By default, later input fields have longer calculation windows, but the size is fixed to the input field. If lengths are entered in reverse order, the largest dot can belong to the shortest calculation window.
The dots appear as a result of price having come back. They do not measure the persistence of a reversal, a trading advantage or fill prices. Do not use the dot's price directly as an order price.
Examines the highs and lows of the same timeframe with 4 calculation window lengths. It does not show agreement across other timeframes or 4 independent grounds for trading.
For each length L, the bar is compared with the highest high and lowest low of the preceding L bars, excluding the current bar. If the high exceeds the highest high, the direction is up; if the low breaks below the lowest low, it is down. An equal value alone is not treated as a break.
An outside bar that breaks both sides reverses the direction up to that point. In the initial state with no direction yet, no direction is set and no dot is output.
At a reversal, the high or low of the ended swing is recorded. If the outside bar made an extreme beyond it, it is replaced by that bar's extreme.
Whereas the original product connects dots with lines for 1 length, this runs the same turn rule separately as 4 sets and places only dots that differ in color and size. All timeframes are the same as the chart.
Check the actual values of Length 1 to 4. The dot widths are 1, 2, 3 and 4, and even if you reorder the values, color and width stay with the input field.
Follow Tops and Bottoms of the same color in time order and read on which bar each turn was confirmed. There are no connecting lines in the display.
The dot's price is the extreme of the ended swing, and its horizontal position is the bar where it was judged. It does not need to match the current bar's high or low.
When examining differences due to calculation window length, keep Closed Bars Only the same. The change example is a behavior comparison, not a recommended setting.
| Included file | Purpose / location |
|---|---|
| TRI_Multi_Length_Break_Marks.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 9 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.
InpLength1InpLength2InpLength3InpLength4InpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYWith true, a dot is placed on the bar being evaluated after that bar closes. It is not added afterward to the past bar where the extreme formed.
In normal calculation where subsequent bars increase with the same history and the same inputs, dots on closed bars are not moved or deleted. Full recalculation due to settings changes or additions to or corrections of the history is a separate matter.
There are no orders, sound notifications, text signals or on-screen toggle buttons. It is an indicator for checking the display of prices and dots.
There is no display drawn back on the extreme bar, no ATR offset, no specification of the initial calculation range, and no text, sounds or buttons.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Each length is initialized on the bar L bars from the start of the history, and the direction is set after that. Setting the first direction alone does not output a dot; a further turn is required.
This is normal, because the vertical value is the extreme of the earlier swing and the horizontal position is the turn bar. There is also the 8-pixel display offset.
Even if you swap the lengths, the size stays fixed to input fields 1 to 4. Check the correspondence between colors and input fields.
Adjusting the price scale to widen the display range makes them easier to check. The published images also have dots cut off at the edges.
All 4 Lengths are integers from 1 to 500. 0, negative numbers and 501 or more are rejected at initialization.
This product shows dots only; there are no lines, notifications, text or buttons. The display method differs from the original Break Swing ZigZag.
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.
Bars are processed in order from the oldest. Each layer's direction, highest high and lowest low are independent. After initialization of length L, the preceding L bars are compared for t>L. The first one-sided break only creates the direction, and if the first one is an outside bar, the direction stays 0.
At a reversal from up to down, the larger of the held highest high and the outside bar's high becomes Top. From down to up, the smaller of the held lowest low and the outside bar's low becomes Bottom. For a one-sided break, it is the held extreme.
There are 8 display buffers, in the order Top and Bottom for Length 1 to 4. The values are prices, and empty is EMPTY_VALUE. Symbol 108, width 1 to 4, Top shifted up 8 pixels and Bottom shifted down 8 pixels. It is not a process that adds or subtracts 8 points to or from the price.
The published images and numerical checks were made by giving fixed price data to the product before the brand display was added. For the product with the brand display, it was confirmed that the calculation part is the same, but its on-screen display has not yet been verified. Whether it gives the same values as other indicators with the same name, behavior over long histories and on symbols with a different number of price digits, and the subwindow name and Data Window display have not been verified.