Look at both the high and the low
An update of the high alone does not necessarily make an up bar. The low must also be at or above the previous one.
Counts bars whose high and low both rise or both fall, and connects with lines the price points recognized on a bar in the opposite direction.
Up and down countA bar is up if both the high and low are at or above the previous ones, and down if both are at or below the previous ones.
Recognized in the opposite directionOn a bar in the opposite direction after the required count is reached, the previous bar's high or low is adopted.
Lines connecting pointsThe high side is red and the low side is blue. Points on the same side are connected, and the middle of a line is not a new signal.
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.
An update of the high alone does not necessarily make an up bar. The low must also be at or above the previous one.
On a bar that fits neither, the count is kept. It does not mean that all of the most recent Q bars are up or down.
When a later point appears, the line is connected from the previous point. Do not read the line in that section as a signal that was known before.
This product does not count bullish and bearish candles. It compares the high and low with the previous bar, not the open and close.
When the down count is Q or more and an up bar occurs, the previous bar's low is output on the current bar.
When the up count is Q or more and a down bar occurs, the previous bar's high is output on the current bar.
On a bar where both are the same as the previous bar, the up processing and then the down processing are run in order. With Q=1 and similar settings, points can appear on both sides.
On an outside bar, where the high rises and the low falls, and on an inside bar, where the high falls and the low rises, both counts are kept as they are.
Check the red and blue lines with the default 2.
The candidate is the previous bar and the evaluation is on the current bar. It is provisional until the current bar closes.
Compare both the high and the low, and distinguish inside and outside bars.
When you change the required count, compare both the point positions and the connected sections.
| Included file | Purpose / location |
|---|---|
| TRI_Bar_Sequence_Swing_Points.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 5 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.
InpQualifyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe high, low and close of the current bar move. Because the calculation is redone when history is added or corrected or settings are changed, past display may also change.
This product is for display. It has no function to automatically execute trades, exits, stop orders or notifications.
The values of the dots do not move to past bars, but a new dot causes a line to be drawn between past dots. Distinguish how it looks in real time from the completed line.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
The evaluation uses both the high and the low, not bullish or bearish candles.
It is kept on inside and outside bars. The count is reset by an opposite-direction evaluation.
By design, points on the same side are connected. The line between points is not information from a past time.
The required count is 1 to 100. Check that you have not specified a value out of range.
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 condition is recognized at t, and the high or low of t−1 is output at t.
The up condition is processed first and the down condition after. On a bar with equal values, both are processed.
The high side and the low side each connect points with DRAW_SECTION. No calculated values are added to bars other than the points.