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.
Uses highs and lows evaluated over 5 bars and switches the red and blue dot levels only when the update width condition is met.
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.
Choose whether to updateUpdated if the new high is above the resistance level or sufficiently below it. The low side uses the opposite conditions.
Hold the red and blue dotsRed is high+Offset, blue is low−Offset. If the update condition is not met, the same level continues.
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.
The price of the adopted high fractal plus Offset. Even with a new candidate, the level stays if the update condition is not met.
The price of the adopted low fractal minus Offset. It does not guarantee support.
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.
It does not follow every fractal; it chooses whether to update from the difference between the current level and the new high or low.
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.
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.
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.
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.
Load it in MT5 with enough history. The high side and low side start independently, and only one side may be visible.
Check the symbol's digits and Point, and convert Step and Offset into the price width they represent.
Compare the candidate high or low with the previous level. Step is not a setting that rounds values to a fixed grid.
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.
| Included file | Purpose / location |
|---|---|
| TRI_Stepped_Fractal_Levels.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.
InpStepPointsInpOffsetPointsInpShiftBarsInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYThe 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.
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.
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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
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.
This is because it is used not only for the dot height but also for the inward update threshold Step+Offset.
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.
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.
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.
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.
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.