Read the top and bottom prices
The height of the red and green marks is the extreme price held before the turn.
Confirms tops and bottoms on the bar where the close breaks the opposite level, or where the wait bars and the pullback width are met. The height of a mark is the held extreme price, and the horizontal position is the confirming bar.
Blue line and red and green marksBlue is the line connecting confirmed vertices. Red is a top and green is a bottom, drawn on the bar that confirmed the turn.
2 kinds of conditionAfter confirming that new extremes have stopped, a turn occurs by a close breaking the level, or by the wait bars and the pullback width. The close route does not wait for the bar count or width.
Different from the time of the extremeThe horizontal position of a mark is the confirmation time. It is not drawn back on the past bar where that price was made.
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.
The height of the red and green marks is the extreme price held before the turn.
The bar with the mark is the time the condition was confirmed. It does not mean you could trade at that price.
With a close breaking the level, the bar count and width are not needed. With the bar route, the pullback width and the current bar's high/low condition are also needed.
Measures, after new extremes have stopped, a close breaking to the opposite side and turns by time and price width. It is not a line that predicts future highs or lows.
Relative to the first bar, the direction is up if both the high and the low are higher, and down if both are lower. No point is drawn until both conditions are met.
In an up direction, the internal mark is set on a bar whose high is strictly lower than the held high. An equal high alone does not set it. The down direction is the reverse.
When the internal mark exists and the direction is up, the direction reverses if the close falls below the held opposite-side low. This can happen on the same bar as the first lower high.
The count decreases from the bar after the internal mark is set. When the remaining count is 0, the pullback from the top to the low exceeds the specified size, and the current high is lower than the top, the direction turns down. The reverse also applies.
An equal high or equal low does not reset the count. If price moves to a new extreme without reversing, the count and the internal mark are reset.
The price size is Minimum Size × the symbol's _Point. If _Point is 0.00001, 500 points is 0.00500. Do not confuse it with pips or a fixed number of digits.
Check bar count 12, size 500 points, Closed Bars Only true.
Look at the initial condition where both high and low rise / fall, and the extremes held after that.
Distinguish a break of the level by the close from the waiting bar count and pullback size counted from after the internal mark.
It is a past extreme price placed on the confirming bar. Read the time a line segment is completed as the time the next point appears.
| Included file | Purpose / location |
|---|---|
| TRI_Close_Break_Swing.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 7 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpMinBarsInpMinSizeInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYWhen closed bars are added with the same history and settings, confirmed dots are not moved to the bar of a past extreme. However, the segment connecting dots is added only once the next dot appears. The segment cannot be read as having been visible from earlier.
Settings changes, adding older history or correcting history may change the whole result. With Closed Bars Only=false, marks on the forming bar appear and disappear.
A mark may appear at a price away from the high/low of the confirming bar. It is not a price at which a trade could have been made on that bar, nor a record of execution.
Before the first turn, the opposite-side high or low of the first bar is used. A previously confirmed swing point does not necessarily exist.
There is no line extending to an unconfirmed extreme, no Fibonacci, no pitchfork, and no notification or order function.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
The start mark in an up direction requires a high strictly lower than the held high. An equal value alone does not start it.
The count decreases, and the bar does not trigger a reset as a new extreme. However, on the reversal bar of the bar-count path in an up direction, the high must be lower than the top.
The reversal may be by the close-break path. This input acts only on the bar-count and pullback-size path.
After the initial direction is decided, it waits for a reversal. With only 1 point no line can be drawn; a 2nd point is needed.
The bar count is an integer from 1 to 500 and the size an integer from 1 to 100000. 0 cannot be used.
Adjust the chart's display range and price scale. The published images can also be checked at full size.
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.
If an internal mark exists up to the previous bar, the remaining count is first reduced by 1, and then the conditions of the current bar are checked. The bar on which the mark is first set is not counted. For example, with a count of 2, the remaining count is 0 on the 2nd bar after the start bar.
In an up direction, high < held high is the start mark. Close < held low is path 1. Path 2 is remaining count 0, low < extreme − size, and high < held high. The down direction is the reverse, and the price comparisons do not include equality.
The reversal check is done first, and then the extreme of the remaining direction is updated. On an outside bar that already has a start mark, the earlier extreme may be confirmed by the close break, and the new high or low of that bar may not be extended in the same direction.
The high and low of bar 0 are the reference, and the direction is decided when, from bar 1 onward, both the high and the low are higher / lower. No reversal occurs while there is no direction. No vertex is drawn yet at the time the first direction is set.
The blue line is a DRAW_SECTION connecting the confirmed points; red and green are tops and bottoms. At most 1 point is confirmed on 1 bar. The times of the confirming bar and of the extreme are not necessarily the same.
M1 is the timeframe shown when the display example was created. The price series is mainly at 30-minute intervals and does not show the frequency of actual 1-minute bars. The published images are screens before the brand display was added; the screen display on the product with the brand display has not been checked yet.