An arrow is not an order signal
It is a record of the time when a peak or trough could be confirmed. It does not instruct a trade in the direction the arrow points.
Draws price levels that extend at a fixed slope from peaks and troughs confirmed by the bars on the left and right. The points of the 3 levels above and below nearest the close, and the arrows on the confirming bars, show the position relative to price.
The horizontal position of an arrow is the confirming barAfter waiting for Fractal Bars bars on the right, the indicator places a LimeGreen arrow for a trough and a DarkOrange arrow for a peak. The price is an earlier extreme, so it is not necessarily the high or low of the arrow's bar.
The point color is its position relative to the closeCrimson is a level above the close, and SeaGreen is a level at or below the close. It does not mean that levels starting from a peak are always red and those from a trough are always green.
Levels above and below slope in the same directionIf Slope is positive, levels starting from either a peak or a trough rise with every 1 bar. At 0 they are horizontal. The slope is not a value obtained automatically from the market.
Compares the default settings and a settings change example on a screen with only this product applied.
This is an example for explaining the display. M1 on the screen is the timeframe display at the time the display examples were made and does not show the frequency of occurrence on actual 1-minute bars. The published images are screens from before the brand display was added. The calculation and drawing conditions are the same, and the included version has display settings for the brand text and QR. The settings change example is not a recommended value. Details can be checked in the actual-size display. Also check the price scale of the main chart and the positions of the candles.
It is a record of the time when a peak or trough could be confirmed. It does not instruct a trade in the direction the arrow points.
Shows 3 levels each in order of nearness to the close. Distant levels that are not shown may remain internally.
Distinguish lifetime, a break-and-return move, replacement of an extreme, and a change in display rank. A point that is no longer visible does not by itself establish that the level has ended.
It measures levels extended at a fixed slope from confirmed extremes, and their position relative to the close at that time.
Compares the F bars on each side of the center bar. The low may be equal to the older side but must be strictly lower than the newer side. The high is the reverse.
Internally, peaks and troughs are adopted alternately. However, a further extreme on the same side is adopted as a replacement, so arrows in the same direction may appear in a row on screen. Earlier confirmed arrows are not deleted.
Extreme price + number of bars elapsed since the extreme's bar × Slope × point. Because the display starts from the confirming bar, the price of the first point can differ from the extreme price of the arrow.
Among the levels alive at the time of confirmation, the new extreme is merged into the oldest level whose price at the extreme's bar is less than Gap away. The type (peak or trough) does not matter, and no new level is created. The confirmation count is kept only internally.
Start with 7 bars on each side, Gap 10, Slope 0.3, Life 200 and Closed Bars Only=true.
It is a record confirmed when the arrow's bar closed. That display could not be known at the bar of the earlier peak or trough.
3 each above and below, up to 6 in total. Upper points are Crimson, and lower ones (including equal) are SeaGreen.
Gap is the merge width and end condition, Slope is the slope, and Life is the lifetime. When comparing, keep the timeframe, history and other inputs the same.
| Included file | Purpose / location |
|---|---|
| TRI_Sloped_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 9 inputs. Change them on the Inputs tab of the properties. The English item names defined in the source are shown together with the input names.
InpBarsInpGapInpSlopeInpLifeInpClosedBarsOnlyInpTriBrandShowInpTriBrandCornerInpTriBrandXInpTriBrandYFor a trough-derived level, it ends when, after the low goes below the level −2×Gap, the high of a different bar returns above the level +2×Gap. For a peak-derived level, it is the reverse. Highs and lows, not closes, are used for the evaluation. The first break and the return are not allowed to occur on the same bar.
The bar at the end of the lifetime is included, and the level is removed on the next bar. When a further-out extreme in the same direction is adopted, levels newly created by the previous extreme are removed from then on. If it was a confirmation of an existing level, only the confirmation count is reverted; the already extended lifetime is not reverted.
When closed bars are updated normally with the same inputs and history, past arrows and dots are not deleted afterward. In a full recalculation due to settings or timeframe changes or additions to or corrections of the history, the display may change.
Internal levels are up to 100 in total. When full, new levels are not created, and old ones are not automatically pushed out. The display shows the 3 nearest above and the 3 nearest below; there is no function to show the confirmation count as line thickness, and no zigzag line.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
This happens when the new level ends by lifetime or a break and return before confirmation, when it is merged, or when there are 100 levels internally. Arrows and new levels are not necessarily 1 to 1.
It is a record of a replacement that adopted a further extreme. The internal representative extreme changes, but the earlier confirmed arrows remain.
On each bar, levels are re-sorted in order of nearness to the close. Upper 1 and the others are not fixed IDs of specific levels. When the display rank or the above/below relationship changes, the rows of points switch.
Arrows are placed at earlier extreme prices. Levels that live long can slope off screen. Adjust the price scale and vertical scaling.
Check the ranges of the bars on each side, Gap, Slope and Life. Slope does not accept negative numbers or non-finite values.
Set Slope=0. There is no function that automatically changes Gap or Slope for each timeframe; the input values are used as they are.
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.
Let the oldest bar be 0, the confirming bar t, F = bars on each side, and the center m=t−F. The candidate is confirmed when t≥2F. For a low, the condition is at or below the older F bars and strictly lower than the newer F bars; for a high, the reverse. If a trough is adopted on a bar, no peak is adopted on the same bar. With the default true, output is made after t closes. With false, the latest bar is provisional.
Levels that ended by the survival check are removed first, then the extreme is adopted and merged. It is merged into the oldest surviving level whose origin is before m and whose price difference at m is less than Gap. Ended levels are never revived. The extended expiry is max(previous expiry, m+Life).
When a level is created, lifetime, break and return are checked in order from the bar after the extreme to the confirming bar. If it ended during that time, no points are started. Points are never drawn back into the past.
0 to 2 = Upper Level 1 to 3, 3 to 5 = Lower Level 1 to 3 (symbol 158). Upper 1 and Lower 1 are width 2; the other levels are width 1. 6 = Low Extreme (LimeGreen, 233), 7 = High Extreme (DarkOrange, 234); arrows are width 2. Empty values are EMPTY_VALUE.
The published images and numbers were checked by feeding fixed price data to 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 level values, the subwindow name and Data Window display, and behavior with long history or symbols with different price digits have not been verified.