What to look at
Marks chosen alternately from strict peak and trough forms.
Checks 5-bar and 7-bar peaks and troughs, and alternately shows high-side and low-side marks that met the additional conditions. Marks are placed on the bar where the form could be confirmed, not at the center of the peak or trough.
Green pointing upA mark that adopted a low-side form.
Red pointing downA mark that adopted a high-side form.
Does not appear for every formUsing the previously adopted direction and price, only those that alternate are kept.
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.
Marks chosen alternately from strict peak and trough forms.
The 5-bar form is confirmed 2 bars after the center, and the 7-bar form 3 bars after.
It is limited not only by the form but also by the previous direction, the previous price and the additional confirmation.
Display candidates are narrowed in the order of form met, additional confirmation and alternating selection.
A shape where the center's high is higher than all of the 2 (or 3) bars on each side, or the center's low is lower than all of them. Equal values do not pass.
The high side also requires the confirming bar's low to fall below the earlier bar's low, and the low side requires the confirming bar's high to rise above the earlier bar's high.
If the last one is high side, the low side is adopted; if the last one is low side, the high side is adopted. The starting state is treated as after a low side, so at first only the high side is adopted.
If the candidate's price is the same as the price of the previously adopted mark, it is not adopted. It is not a comparison only with the previous price of the same side.
First load only this product, and check the price bars and the horizontal position of the marks.
The bar with the mark is not necessarily the peak or trough. Look for the bar that is earlier by the number of bars each product waits.
Check Closed Bars Only and the latest bar, and distinguish closed-bar marks from the provisional display on the forming bar.
On a separate chart, change the settings one at a time. The published change example is an example to show the effect, not a recommended setting.
| Included file | Purpose / location |
|---|---|
| TRI_Alternating_Reversal_Fractals.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.
InpUse7InpConfirmInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYIn the order low-side 5-bar pattern → low-side 7-bar pattern → high-side 5-bar pattern → high-side 7-bar pattern, the first candidate that also meets the alternation and price conditions is adopted.
The price of a mark is the high or low of the center of the pattern. There is also a drawing margin of 10 pixels. It does not necessarily match the price of the confirming bar.
This is verified on the assumption that only subsequent bars are added after closed bars, with the same history and the same settings. Filling in or correcting the history, the loading start position, or recalculation with changed settings may change past results.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
Check the history needed for the judgment and the conditions for it to be met. It is not an indicator that shows a mark on every bar. Widen the visible range toward the past to check.
Adjust the margin of the price scale and the chart's visible range. Because the center price is placed on a different bar, it may be far from the candles.
This product places a mark on the bar where the conditions could be confirmed. It does not afterwards move marks back to the peak or trough bar from before the confirmation.
Do not judge by color alone; look at the shape and direction of the arrow. Adjust the price scale and the chart's visible range to check.
The 3 product-specific inputs are all true / false. There is no numeric input for a period.
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 high side is low[t]<low[t−3] (5-bar form) or low[t]<low[t−5] (7-bar form). The low side is high[t]>high[t−3] or high[t]>high[t−5].
It starts as after a low side, with a previous price of 0. A candidate price of 0 is not adopted as a valid form. The direction and price are saved for each bar where a form is adopted.
The 5-bar form uses c=t−2 as the center and the 7-bar form c=t−3. The horizontal position of the mark is t in both cases. With closed bars only, it is blank until t closes.
Arrows are not moved back afterwards to the past center bar. The state is kept for each bar and recalculated, and the default setting excludes the forming bar.