MT5 indicators← Stepped Fractal Levels 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

Stepped Fractal Levels

Uses highs and lows evaluated over 5 bars and switches the red and blue dot levels only when the update width condition is met.

Indicator name: Stepped Fractal LevelsMetaTrader 5Price chart

Fractal recognition → update width check → hold the level

Levels are updated only by highs and lows that meet the conditionsRed: resistance reference levelBlue: support reference levelThe dots are not orders; they are selected and held price levels
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Check the 5-bar patternCompares 2 bars on each side of the center. With the default Shift=1, all bars used for the evaluation are closed.

2

Choose whether to updateUpdated if the new high is above the resistance level or sufficiently below it. The low side uses the opposite conditions.

3

Hold the red and blue dotsRed is high+Offset, blue is low−Offset. If the update condition is not met, the same level continues.

MT5, price chartDefault Shift=1Step and Offset in points
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
Width to update the step / Step (points)
InpStepPoints
150 → 50
Margin from the fractal / Offset From The Fractal (points)
InpOffsetPoints
10 → 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.

Default settingsInpStepPoints = 150 / InpOffsetPoints = 10
Stepped Fractal Levels default settings
Defaults: Step=150 points, Offset=10 points, Shift=1. Red and blue dots continue at the same height, and the step changes when the conditions are met.
View the screen in detail at full size
Stepped Fractal Levels default settings (full size)
Settings change exampleInpStepPoints = 50 / InpOffsetPoints = 5
Stepped Fractal Levels settings change example
An example with Step=50 and Offset=5. Shift stays at 1. Even if the number of pixels of red dots is the same as the default, the update steps and the dot heights differ.
View the screen in detail at full size
Stepped Fractal Levels settings change example (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

Red dots

The price of the adopted high fractal plus Offset. Even with a new candidate, the level stays if the update condition is not met.

Blue dots

The price of the adopted low fractal minus Offset. It does not guarantee support.

Bars to wait

The pattern is complete 2 bars after the center and is used from Shift bars after that. With the default Shift=1, that is 3 bars after the center.

3

What it measures

It does not follow every fractal; it chooses whether to update from the difference between the current level and the new high or low.

5-bar evaluation

The center high must be at or above the 2 older bars and strictly higher than the 2 newer bars. The low is the opposite. Equal values are handled differently on the left and right.

Resistance side update

Updated if the candidate high is higher than the current red level, or if the drop from the red level to the candidate high is Step+Offset or more. The first candidate is also accepted.

Support side update

Updated if the candidate low is lower than the current blue level, or if the difference between the candidate low and the blue level is Step+Offset or more.

Point units

Both Step and Offset are multiplied by the symbol's Point. With Point=0.00001, 150 points=0.00150 and 10 points=0.00010. The same number gives different price widths on different symbols.

4

Situations for reading the display

Red step rises

Indicator
A new candidate high has exceeded the current red level.
Cross-check
Check the difference between the high and the level including Offset.
Check
You can read the occurrence of a high fractal separately from an actual update.
Caution
It is not a rule that updates simply on a rise of Step or more.

Small candidate changes are ignored

Indicator
There is a new fractal, but it does not meet the update condition.
Cross-check
Check the previous level, the candidate high or low, and Step+Offset.
Check
Check why the same step continues.
Caution
A dot on every bar does not mean a new signal on every bar.

Price goes beyond a dot

Indicator
The level is a held reference price and does not constrain price movement.
Cross-check
Check the position of the regular bars and the level, and Shift.
Check
Distinguish a breakout display from order execution.
Caution
It does not automatically execute stop loss, take profit or trades.

Setting Shift to 0

Indicator
The latest forming bar is also used for the evaluation.
Cross-check
Check the possibility that a candidate disappears before the bar closes.
Check
Compare while understanding the difference from the default reference to closed bars.
Caution
It is not a setting that shifts the display into the past.
5

Steps for checking the display

1

Check the default display

Load it in MT5 with enough history. The high side and low side start independently, and only one side may be visible.

2

Check Point

Check the symbol's digits and Point, and convert Step and Offset into the price width they represent.

3

Cross-check step updates

Compare the candidate high or low with the previous level. Step is not a setting that rounds values to a fixed grid.

4

Change one at a time

Step relates to the update condition, Offset to the dot height and the update threshold, and Shift to the waiting time for the evaluation. The published example changes Step and Offset at the same time.

6

Installation and checking the package contents

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

Width to update the step

English item name
Step (points)
Input name
InpStepPoints
Default
150
Allowed range
Integer 0 to 100000 points
Description
Default 150. Candidates that come back inside the current level are selected by the difference Step+Offset. Candidates toward the outside are updated by a separate strict condition.

Margin from the fractal

English item name
Offset From The Fractal (points)
Input name
InpOffsetPoints
Default
10
Allowed range
Integer 0 to 100000 points
Description
Default 10. Red=high+Offset, blue=low−Offset. It is also added to the update threshold.

Bars to delay the evaluation

English item name
Shift Bars (0 to 100)
Input name
InpShiftBars
Default
1
Allowed range
Integer 0 to 100
Description
Default 1. Used 2+Shift bars after the center. With 1 or more, the bars used for the evaluation are closed. With 0, candidates change during 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
Default true. It does not affect the calculation conditions.

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
Default 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

Display timing

The bar Shift bars before the bar t where the dot is placed is the end of the evaluation window. Dots are not placed back on the center bar afterward.

Initial display

At least Shift+5 bars are required. Until an actual fractal appears, the dots on that side are empty. One side can be drawn without waiting for the other.

Holding and updating

When there is no high/low candidate, and when there is a candidate but it does not meet the width condition, the previous value is carried over as is.

History and inputs

Adding to or correcting the history may change results from the initial state. Loading is refused if Step or Offset is outside 0 to 100000, or Shift is outside 0 to 100.

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 dots / only one side

The high and the low are waited for independently. Check not only the number of history bars but also whether a fractal on that side has been established.

Same step even after changing Step

The candidate price difference may meet the same update condition under either setting. Do not judge the setting to be ineffective from the screen range alone.

Changing Offset also changes the number of updates

This is because it is used not only for the dot height but also for the inward update threshold Step+Offset.

The latest dot changes

With Shift=0, the forming bar is included. Returning to the default 1 evaluates with closed bars only. Recalculation due to corrections in the history is a separate matter.

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

Output

Draws the 2 buffers, resistance and support, as round dots. The unit is price; it is not a shape that always keeps the same pixel distance.

Exact update formula

With R as the previous resistance, H as the candidate high and q as Point: if R is empty, R−H≥(Step+Offset)q, or R−H<0, then new R=H+Offset q. With S as the previous support and L as the candidate low: if S is empty, L−S≥(Step+Offset)q, or L−S<0, then new S=L−Offset q.

Equal-value boundary

Updates toward the outside use strict comparison. The inward threshold, on the other hand, includes equality. With Step=Offset=0, every established fractal is accepted.

Initialization and other implementations

It starts empty and holds a value from the side that is established first. Matching the initial values of the standard Fractals or of other implementations that limit the number of history bars calculated is not guaranteed.