MT5 indicators← Alternating Reversal Fractals product page日本語の取扱説明書

This product is in preparation for release. Product files are not yet distributed; the manual is published so that you can review its content. This manual is an English translation of the Japanese manual. Images (screens and figures) are not translated and may contain Japanese text or earlier names.

For Trilogy users

Alternating Reversal Fractals

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.

Indicator name: Alternating Reversal FractalsMetaTrader 5Price chart

Wait for the form to be confirmed, and show only the adopted highs and lows alternately

Height is the candidate high or lowCandidate barConfirming bar2 / 3 bars laterShown here
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Green pointing upA mark that adopted a low-side form.

2

Red pointing downA mark that adopted a high-side form.

3

Does not appear for every formUsing the previously adopted direction and price, only those that alternate are kept.

5-bar form + 7-bar formShown on the confirming barStarts from the high side
1

MT5 display and examples of changed settings

Compares the default settings and a settings change example on a screen with only this product applied.

Settings change example: these items are changed
Also use the 7-bar form / Use The 7-Bar Form Too
InpUse7
true → false
Confirmation of breaking the earlier bar / Require The Break Of The Earlier Bar
InpConfirm
true → false
Closed bars only / Closed Bars Only
InpClosedBarsOnly
true → false

All other inputs remain at their defaults. On a PC, the default is on the left and the change example on the right; at smartphone width they appear in the same order from top to bottom.

Default settingsInpUse7 = true / InpConfirm = true / InpClosedBarsOnly = true
Alternating Reversal Fractals default settings
Uses 5-bar and 7-bar patterns and a confirmation that breaks the high or low of an earlier bar. The green and red arrow colors overlap with the candle colors in the capture, so distinguish them by direction and shape.
View the screen in detail at full size
Alternating Reversal Fractals default settings (actual size)
Settings change exampleInpUse7 = false / InpConfirm = false / InpClosedBarsOnly = false
Alternating Reversal Fractals settings change example
An example that removes the 7-bar form and the additional confirmation and also shows the forming bar. The latest mark may change until the bar closes. Some arrows at the edge of the screen are cut off.
View the screen in detail at full size
Alternating Reversal Fractals settings change example (actual size)

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.

2

How to read it in 30 seconds

What to look at

Marks chosen alternately from strict peak and trough forms.

When does it appear

The 5-bar form is confirmed 2 bars after the center, and the 7-bar form 3 bars after.

Why it does not appear

It is limited not only by the form but also by the previous direction, the previous price and the additional confirmation.

3

What it measures

Display candidates are narrowed in the order of form met, additional confirmation and alternating selection.

5-bar and 7-bar forms

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.

Confirmation of breaking the earlier bar

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.

Alternating selection

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.

The previous price is also compared

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.

4

Situations for reading the display

There is a form but no mark

Indicator
Candidate peak / trough
Cross-check
Previously adopted direction
Check
Look at the alternation condition and the additional confirmation
Caution
This product does not show every form.

No mark on the first trough

Indicator
Candidates right after loading
Cross-check
Specification that starts from the high side
Check
Find the first adopted high side
Caution
Changing the start of the history also changes the selection path.

5-bar and 7-bar forms overlap

Indicator
Several candidates on the same confirming bar
Cross-check
Price of each form and the previous price
Check
Look at the order of priority of adoptable candidates
Caution
Even if a 5-bar form exists, the 7-bar form may be selected if the 5-bar form is not adopted because its price is the same.

The latest arrow moves

Indicator
Closed Bars Only=false
Cross-check
Latest high / low
Check
Check again after the bar closes
Caution
A mark on the forming bar is not treated as a confirmed record.
5

Steps for checking the display

1

Look from the default settings

First load only this product, and check the price bars and the horizontal position of the marks.

2

Find the candidate bar

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.

3

Distinguish the forming bar

Check Closed Bars Only and the latest bar, and distinguish closed-bar marks from the provisional display on the forming bar.

4

Compare one item at a time

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.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Alternating_Reversal_Fractals.ex5The 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.

1

Extract the ZIP

Extract the ex5 main file rather than leaving it in the compressed file.

2

Open the data folder

In MT5, open MQL5/Indicators from 'File → Open Data Folder' and place the included ex5 there.

3

Apply this product

Refresh the Navigator or restart MT5, and apply it to the target chart. When comparing different settings, using separate charts makes checking easier.

4

Check the settings and display

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.

7

Settings

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.

Also use the 7-bar form

English item name
Use The 7-Bar Form Too
Input name
InpUse7
Default
true
Allowed range
true / false
Description
true checks the 5-bar and 7-bar forms; false checks only the 5-bar form.

Confirmation of breaking the earlier bar

English item name
Require The Break Of The Earlier Bar
Input name
InpConfirm
Default
true
Allowed range
true / false
Description
true adds a comparison with the high / low 3 bars before the confirming bar for the 5-bar form, or 5 bars before for the 7-bar form.

Closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
true does not place marks on the latest forming bar. They are shown at the update when the last bar needed for the judgment has closed and the next bar has started. With false, marks appear and disappear with the price movement of the latest bar.

Brand and QR

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Switches the display only. The calculation conditions do not change.

Brand position

English item name
Brand position (chart corner)
Input name
InpTriBrandCorner
Default
Bottom left
Allowed range
Top left / Bottom left / Bottom right / Top right
Description
The default is bottom left.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer (pixels)
Description
Default 10. Negative numbers are treated as 0, and values above 4000 as 4000.
8

Usage specifications

Order of adoption

In 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.

Displayed price and margin

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.

History and the forming 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.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

No marks are found

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.

Marks are cut off at the edge

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.

Bar for the mark

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.

Arrows are buried in the candles

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.

Range of settings

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.

10

Technical information and specification details

Formula for the additional confirmation

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].

Initial state and price

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.

Output bar

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.

How the display works

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.