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
Multi-Scale Fractal Marks
Examines the highs and lows on the chart with 4 different comparison bar counts and shows an arrow on the bar where a peak or trough is confirmed. The timeframe names are used to determine the comparison bar counts; it does not read the values of the higher timeframes themselves.
Compares before and after the center and places a mark N bars later
Schematic diagram of how to read it. This is not an actual terminal screen.
1
Color shows the levelLevel 1 is orange-red, level 2 is blue, level 3 is gold and level 4 is magenta.
2
Direction shows high or lowEven with the same color, a down arrow is a mark for the high side and an up arrow for the low side.
3
Horizontal position is the confirmation timeThe mark appears not at the center of the peak or trough but on the bar where the following N bars have been checked.
4 levels evaluated separatelyClosed bars only by defaultNo higher timeframe data is retrieved
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.
Distance to offset the mark / Distance From The High Or Low (points, 0 to 10000) InpDistance0 → 5
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.
With the M1 defaults, the number of bars compared on each side is 37, 150, 600 and 3600. In this captured range only the 1st-tier marks are visible. Not all 4 tiers appear on every screen.View the screen in detail at full size
An example changed to M5/M15/M30/H1 and a distance of 5 points. On M1, the comparison bar counts are 12, 37, 75 and 150 bars. Closed Bars Only stays true. Arrows near the lowest low are partly cut off at the bottom edge of the screen.View the screen in detail at full 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
Peak and trough patterns confirmed with different bar counts. The color distinguishes the comparison level.
When it is known
N bars are needed after the candidate. With the default closed-bars-only setting, it waits until the last of those bars closes.
What it does not show
It is not a forecast of a future reversal or a trading instruction. The price of an arrow is the candidate high or low.
3
What it measures
Determines the comparison bar count from the reference timeframe and examines the pattern with N bars before and after on the same chart.
How the comparison bar count is determined
With r as the integer part of reference timeframe ÷ chart timeframe, N=2r+floor(r/2). Current is r=1. Levels whose reference timeframe is shorter than the chart are hidden.
High-side pattern
The N bars older than the center must be at or below the center, and the N newer bars must be strictly lower than the center. Equal values are allowed only on the older side.
Low-side pattern
The N bars older than the center must be at or above the center, and the N newer bars must be strictly higher than the center.
Mark positions
The horizontal position is N bars after center c, and the price is high[c]+distance or low[c]−distance. It is not the high or low of the bar with the arrow itself.
4
Situations for reading the display
Only 1 color is visible
Indicator
Arrows of level 1 only
Cross-check
N of the other levels and the number of history bars
Check
Check whether the longer levels also have the history they need
Caution
The absence of marks for the longer levels alone does not mean something is wrong.
Marks overlap at the same position
Indicator
Arrows of multiple levels
Cross-check
The 4 reference timeframes
Check
Check that you have not chosen the same reference timeframe
Caution
Several tiers can also adopt the same candidate.
Made the base timeframe shorter
Indicator
That tier's marks disappeared
Cross-check
Whether it is shorter or longer than the chart timeframe
Check
If the base is shorter than the chart, conclude that the tier is not displayed
Caution
There is no behavior that reads values from a shorter timeframe to fill in.
The mark on the latest bar changes
Indicator
Arrows on the forming bar
Cross-check
Closed Bars Only
Check
If false, distinguish it as a provisional display until the bar closes
Caution
With true, the latest bar is blank, and you check it at the update when the next bar starts.
5
Steps for checking the display
1
Apply with the defaults
First load only this product, and check the chart timeframe and the settings of the 4 tiers.
2
Find the comparison bar count
N is found from the base timeframe and the chart timeframe. On M1, the default tier 1 gives N=37.
3
Look back to the candidate
Find the candidate N bars before the mark, and compare the highs and lows before and after it.
4
Change 1 tier at a time
On a separate chart, change only 1 base timeframe. A shorter setting does not necessarily give better results.
6
Installation and checking the package contents
Included file
Purpose / location
TRI_Multi_Scale_Fractal_Marks.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.
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 10 inputs. Change them in the Inputs tab of the properties window. The English item names and input names defined in the source are shown together.
Base timeframe of tier 1
English item name
Scale 1 Timeframe
Input name
InpTf1
Default
M15
Allowed range
MT5 timeframe selection (Current, M1 to MN1)
Description
The comparison bar count is set from the ratio of the length of the base timeframe to the chart timeframe. This setting does not fetch candles of that timeframe. Current gives a ratio of 1, and if the base is shorter than the chart, that tier is not drawn.
Base timeframe of tier 2
English item name
Scale 2 Timeframe
Input name
InpTf2
Default
H1
Allowed range
MT5 timeframe selection (Current, M1 to MN1)
Description
The comparison bar count is set from the ratio of the length of the base timeframe to the chart timeframe. This setting does not fetch candles of that timeframe. Current gives a ratio of 1, and if the base is shorter than the chart, that tier is not drawn.
Base timeframe of tier 3
English item name
Scale 3 Timeframe
Input name
InpTf3
Default
H4
Allowed range
MT5 timeframe selection (Current, M1 to MN1)
Description
The comparison bar count is set from the ratio of the length of the base timeframe to the chart timeframe. This setting does not fetch candles of that timeframe. Current gives a ratio of 1, and if the base is shorter than the chart, that tier is not drawn.
Base timeframe of tier 4
English item name
Scale 4 Timeframe
Input name
InpTf4
Default
D1
Allowed range
MT5 timeframe selection (Current, M1 to MN1)
Description
The comparison bar count is set from the ratio of the length of the base timeframe to the chart timeframe. This setting does not fetch candles of that timeframe. Current gives a ratio of 1, and if the base is shorter than the chart, that tier is not drawn.
Distance to offset the mark
English item name
Distance From The High Or Low (points, 0 to 10000)
Input name
InpDistance
Default
0
Allowed range
Integer 0 to 10000 points
Description
Added to the candidate high and subtracted from the low. Default 0. The price conditions do not change.
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 blank. With false, marks may 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 only the display. 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
Required history
Confirming the first candidate requires 2N+1 bars; with closed bars only, 2N+2 bars including the next forming bar. This is the minimum number of bars that can be displayed, not a number that guarantees the conditions are met.
Difference between M1 and M15
The default N is 37, 150, 600 and 3600 on M1, and 2, 10, 40 and 240 on M15. Changing the chart timeframe also changes the marks.
Not bars of the same timeframe
Selecting H1 does not read H1 highs and lows. It also does not aggregate to fill weekends or gaps; it compares by the number of bars on the chart.
point and pip
A point is the unit of the smallest displayed digit of the symbol and is not necessarily the same as a pip. On a 5-digit forex quote, 5 points is 0.00005.
When the history is changed
The case where only subsequent bars increase with the same history and the same settings is different from filling in or correcting the history or changing the loading start position. In recalculation with changed history or settings, past display may also change.
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 whether there is enough history for the required number of bars and whether there are candidates that meet the conditions. Widen the visible range and look at earlier bars as well.
Arrows are cut off at the edge of the screen
Adjust the margin of the price scale and the visible range. Because a mark places a past candidate price on a later bar, it can be far from the current candle.
Bar for the mark
A mark is placed on the bar where the conditions can be confirmed. Marks are not moved back afterwards to the bar of the past peak or trough.
An input was rejected
Distance is an integer from 0 to 10000. Out of range, the calculation does not start.
A long tier does not appear
On M1, the default D1 tier gives N=3600, and the initial closed-bar display needs at least 7202 bars. Check the comparison bar count and the history.
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
Integer conversion
The ratio of seconds is first truncated to an integer, and r/2 is also truncated. It is not simply 2.5 times rounded to the nearest integer. Current gives N=2.
How confirmation relates to output
For a candidate c, the output is at t=c+N. The result of comparing N bars on each side is written to t. With true, it is shown at the update after t closes; with false, it is also evaluated while t is forming.
8 display series
Each tier has 2 series, a high side and a low side, for 8 series across the 4 tiers. Each tier uses one color, with different directions.
How the display works
There is no placing of marks back on the center bar afterwards, no distance adjustment per timeframe, no comment display and no limit on the number of history bars. Peaks and troughs are judged only by the stated high/low conditions.