MT5 indicators← Fractal Line Angle 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

Fractal Line Angle

The slopes of the lines connecting confirmed peaks to each other and troughs to each other are read as 2 lines in a separate window. The values are calculated from the price difference and the elapsed time, and are not the angle of the line seen on screen itself.

Indicator name: Fractal Line AngleMetaTrader 5Separate window

Peaks and troughs confirmed → 2 points on the same side → slope to the separate window

Uses 2 points on the same sideWaits for 2 bars on the right to closeSeparate window: unit is radiansBlue: peak lineRed: trough line
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Distinguish blue and redBlue is the slope of 2 upper fractals, red the slope of 2 lower fractals. The up/down relation of the lines does not mean a ranking of highs and lows.

2

Read above and below 0Positive means the newer extreme is higher, negative lower, and 0 the same price. The angle is shown in radians.

3

Arrows are optionalWhen arrows are enabled, the condition of breaking a line on the price side is shown at the angle's position in the separate window. It is not a trading instruction.

Confirmed by 2 bars on the right2 points on the same sideShown in radiansMT5, no account authentication
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
Fractal rule / Fractal Rule
InpRule
Five Bars (higher than two bars on each side) → Stepped Five Bars (each side steps down)
Cross arrows / Show Cross Arrows
InpArrows
false → true

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 settingsInpRule = Five Bars (higher than two bars on each side) / InpArrows = false
Fractal Line Angle default settings
Defaults: Five Bars, no arrows. Blue and red change value where a new fractal is taken in, and the same value continues in between. Part of the blue line is above the top edge.
View the screen in detail at full size
Fractal Line Angle default settings (full size)
Settings change exampleInpRule = Stepped Five Bars (each side steps down) / InpArrows = true
Fractal Line Angle settings change example
Change example: Stepped Five Bars and the arrow display were enabled. The green up arrows and purple down arrows appear in the separate window. Because 2 conditions are changed, the difference is not only the arrows.
View the screen in detail at full size
Fractal Line Angle settings change example (full size)

This is an example to explain the display. M1 on the screen is the timeframe shown when the display example was created and does not show the frequency of actual 1-minute bars. The published images are screens 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 QR. The settings change example is not a recommended value. Details can be checked at full size. Also check the vertical axis and units of the separate window. Except for products with a fixed scale, the scale changes with the settings and display range.

2

How to read it in 30 seconds

Which line is it

Upper Line Angle is the slope between peaks, and Lower Line Angle the slope between troughs. Blue is not necessarily above red.

Check the unit

0.5 is not 0.5 degrees but 0.5 radians. It is not the slope on screen or a pip value either.

Check the bars it waits for

The check is made only after 2 bars to the right of the center have closed. By default, the latest forming bar is empty.

3

What it measures

A display that organizes the direction of price movement into updates of peaks and updates of troughs. It does not show price levels or forecast probabilities.

Five Bars

If the center high is strictly higher than each of the 2 bars on either side, it is a peak; if the low is strictly lower than each of them, a trough. Candidates that include equal values are not adopted.

Stepped Five Bars

A peak is a shape where the highs step down one by one from the center to both sides, and a trough a shape where the lows step up. Flat sequences are not adopted.

Slope calculation

The price difference between the newer and older of the 2 points on the same side × 240 is divided by elapsed seconds ÷ 14400, and its arctan is shown. The price difference is not converted to points.

Range of value comparison

Even with the same price difference, the absolute value becomes smaller when the elapsed time is longer. Market closure time is also included in the time difference. Do not compare values from symbols with different price levels or digits as strengths on the same scale.

4

Situations for reading the display

Both blue and red are positive

Indicator
Both peaks and troughs update at higher prices
Cross-check
Highs, lows and times on the price chart
Check
Organized as updates in the upward direction
Caution
Does not guarantee the next rise

Blue and red have different signs

Indicator
Peaks and troughs update in different directions
Cross-check
The latest 2 points of each
Check
Read as a state where the directions do not agree
Caution
A cross of the lines itself is not a trading condition

The value stays flat for a long time

Indicator
The same 2 points continue to be used
Cross-check
Status of confirming new peaks and troughs
Check
Distinguish from waiting for an update
Caution
It does not mean that price has stopped

Arrows appear

Indicator
Condition met for breaking the virtual price line
Cross-check
Open and close of the previous bar and open of the current bar
Check
Check which side's line the mark is for
Caution
Not a cross of 0 by the angle or a cross of the 2 lines
5

Steps for checking the display

1

Start from the default

Match the signs of blue and red with the peaks and troughs on the price chart.

2

Read the confirmation delay

Check that the value is updated from 2 bars after the center.

3

Enable arrows only when needed

Set Show Cross Arrows to true and check the conditions for the previous bar and the current bar's open.

4

Compare under the same conditions

Changing Fractal Rule changes both the adopted points and the angles. Compare with the same timeframe, history and symbol.

6

Installation and checking the package contents

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

Fractal rule

English item name
Fractal Rule
Input name
InpRule
Default
Five Bars (higher than two bars on each side)
Allowed range
Five Bars / Stepped Five Bars
Description
Choose between comparison with each of the 2 bars on either side, or a shape that steps one level on each side.

Cross arrows

English item name
Show Cross Arrows
Input name
InpArrows
Default
false
Allowed range
true / false
Description
With true, the condition of breaking a line on the price side is drawn at the angle's position. With the default false, there are no arrows.

Closed bars only

English item name
Closed Bars Only
Input name
InpClosedBarsOnly
Default
true
Allowed range
true / false
Description
With true, the latest forming bar is left empty. With false, it is a provisional display that includes the high and low of the latest bar in the check. The fractal formation, lines and arrows can change partway through a bar.

Brand display

English item name
Show Trilogy brand and QR code
Input name
InpTriBrandShow
Default
true
Allowed range
true / false
Description
Turns the brand text and QR display on or off. 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, top right, bottom left, bottom right
Description
Choose the display position from the four corners of the chart.

Horizontal margin

English item name
Brand horizontal offset (pixels)
Input name
InpTriBrandX
Default
10
Allowed range
Integer, pixels
Description
The horizontal distance from the selected corner. It is not used in the calculation.

Vertical margin

English item name
Brand vertical offset (pixels)
Input name
InpTriBrandY
Default
10
Allowed range
Integer, pixels
Description
The vertical distance from the selected corner. It is not used in the calculation.
8

Usage specifications

Time of confirmation

Values are used from the time the 2nd bar to the right closes, not from the center of the peak or trough. They are not values that were known at the time of the center bar.

Provisional display on the latest bar

With Closed Bars Only=false, the high and low of the forming bar make fractals form or lapse. Distinguish the latest lines and marks from confirmed values.

Recalculation

In normal updates with the same inputs and the same history, output on closed bars is not changed afterward. Settings changes, additions to or corrections of the history, and reloading trigger recalculation.

Initial blanks

Until 2 points are available for peaks and for troughs respectively, the angle on that side is empty. Sometimes only one side is displayed. No trendline is drawn on the price side.

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 arrows appear

The default is false. Even when enabled, it requires the strict condition that the open and close of the previous bar straddle the line and the current bar's open is also outside it.

The line is above 0 but there is no arrow

Arrows are decided not by the sign of the angle but by the condition of breaking a line on the price side.

The order of the upper and lower lines swaps

Upper/Lower are the names of the peaks and troughs used. They do not represent the order of the angle values.

Lines at the edge are cut off or small

Adjust the height and vertical scale of the separate window, and also check the full-size view. Do not judge whether a value exists only from the edge of the display.

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

Angle formula and unit

A=atan((P2−P1)×240/((T2−T1)/14400)). Time T is in seconds, and P is the price itself. The output is in radians, in the range between −π/2 and π/2. It is not the visual angle that changes with the zoom of the price chart.

Strict arrow conditions

The line through the latest 2 points confirmed up to the current bar is extended to the times of the previous bar and the current bar. An up arrow is previous open<upper line, previous close>upper line, current open>upper line; a down arrow is previous open>lower line, previous close<lower line, current open<lower line. Equality does not meet the condition. If the adopted points are updated on the current bar, the previous bar is evaluated with that new line.

Drawing correspondence

buffer 0 is Upper Line Angle (DodgerBlue), 1 is Lower Line Angle (Crimson), 2 is Cross Up (LimeGreen, 233), 3 is Cross Down (Magenta, 234). Line width and arrow width are 2, and empty is EMPTY_VALUE.

Verified scope

The published images and numbers were checked on the product before the brand display was added. For the product with the brand display, we confirmed that the calculation part is the same, but the on-screen display has not yet been verified. Intermediate calculation values, the subwindow name and Data Window display, and behavior with long history or symbols with different price digits have not been verified.