Range first
Check whether it is Previous Days or Recent Bars. The number of days and the number of bars are separate settings.
Selects the high side and the low side from past trading days or from the range of recent bars, and draws price levels for each ratio. Read it by first checking the range and which side is 0%.
Set the rangeThe default is the previous 1 trading day. The changed example uses the recent 48 bars.
Read the 0% sideBy default, the extreme that appeared earlier in time is 0%. It is not necessarily the lower-priced side.
See the level for each ratioThese are lines calculated between 0% and 100% and further outside. They do not show future reactions.
Compares the default settings and a settings change example on a screen with only this product applied.
Example shown: 1-hour timeframe (H1). This is an example to explain the display. The changed settings are not recommended values. Details can be checked in the full-size view. Also check the price scale of the main chart and the positions of the candlesticks.
Check whether it is Previous Days or Recent Bars. The number of days and the number of bars are separate settings.
The 2 bluish lines are the 2 ends of the range. Whether 0% is at the top or the bottom depends on the order in which the extremes appeared and on the settings.
The orange 50% is the middle of the two ends. Reversing the 0% side does not change the price of 50%.
Uses the 2 extremes of the selected range as the ends and converts the ratios into prices. This is not a product that judges buying or selling.
Combines the specified number of the most recent completed trading days. Bars of the current day are not included in the range, and the levels are the same within the same trading day. The first trading day is excluded because it may have started partway through.
Builds the range from the recent N bars of the chart. The default is 48 bars excluding the current bar. If the current bar is included, the levels also move when that bar's high or low is updated.
High and Low uses the highs and lows including wicks; Open and Close (Body) uses the outer of the open and close. With the latter, wicks can extend outside 0–100%.
The default is 8 lines: 0, 23.6, 38.2, 50, 61.8, 76.4, 100 and 161.8%. Up to 14 lines can be shown with the display settings. Not all lines necessarily fit on the screen.
Place it on a short timeframe with the default settings and check 0%, 100% and 50%.
For Previous Days, check the start time and the number of days; for Recent Bars, check the number of bars and how the current bar is handled.
Earlier Extreme sets the extreme that appeared first as 0%, and Later Extreme sets the extreme that appeared later as 0%.
The changed example shown changes only Range Source. Compare it with the default on a separate chart.
| Included file | Purpose / location |
|---|---|
| TRI_Fibonacci_Range_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. Place only 1 instance of the same product on 1 chart.
First check with the default values. Changes and removal are done from the chart's 'Indicators List'.
This product does not require DLL permission or enabling automated trading. When removed, this product's drawings are cleared.
There are 13 inputs. Change them on the Inputs tab of the properties window. The English display name and the input name in the code are shown together.
InpRangeSourceInpSessionsInpSessionStartHourInpSessionStartMinuteInpBarsInpIncludeCurrentBarInpPriceTypeInpZeroAtInpShow146InpShow764InpShow1236To150InpShow1618InpShow2618And4236Previous Days works on daily and lower timeframes. On daily charts, only start 00:00 can be used. Recent Bars can also be used on weekly and monthly charts.
It is not a product that loads and copies the broker's D1. It groups days from the bars of the currently open chart and the server time. If the start is before noon, the day is named after the start date; if at or after noon, it is named after the following day. The start time does not shift automatically for daylight saving time.
Bars that would be named Saturday or Sunday are included in the preceding trading day (usually Friday). With start 00:00, Saturday and Sunday bars are included there. With start 07:30, Monday 00:00–07:29 is also usually included in the preceding Friday trading day, and from Monday 07:30 onward it is Monday.
With start 22:00, the day is named after the following day, so bars from Sunday 22:00 onward are Monday. Bars from Friday 22:00 onward and Saturday bars are included in the preceding Friday. If there are no Sunday bars, the span from the first Monday bar until Monday 22:00 becomes a short Monday trading day.
Days without bars are not filled in. For example, with start 22:00, even if Monday is a market holiday, bars from Sunday 22:00 onward alone create a short Monday. That short day is also used in the next day's calculation. On charts with missing bars or different holidays, the number of days and the values change.
On a chart where 4-hour bars start at 00, 04, 08, 12, 16 and 20 o'clock, if you specify start 22:00, the first bar representing the boundary is the next 00:00 bar. No new 22:00 bar is created. The rules for the start time and trading day names remain unchanged.
At a boundary where the level switches, a diagonal segment connects the previous bar and the next bar. This does not mean there is another calculated level partway along it.
Past lines are also recalculated when history is added or corrected or settings change. It is not guaranteed that past displays remain unchanged under all conditions.
This product does not widen the chart's vertical scale to fit distant lines. If a line is not visible, check not only display ON/OFF but also the price scale and display range.
It is not a drawing tool whose end points you move by dragging. It does not show arrows or send notifications. Even when a line is set to OFF, the calculated value for that ratio itself is kept.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.
Previous Days excludes the first trading day and appears after the specified K days have completed (the K+2nd trading day when counted). Recent Bars appears from bar N+1 when the current bar is excluded, and from bar N when it is included. Load the history that is needed.
If the high and low of the range are the same, the width is 0. The price of every ratio is also the same.
Check the input ranges and the timeframe. If startup is refused, the reason appears as 1 line in English on the MT5 Experts tab. No panel with the reason appears on the chart. The allowed-range check is also performed for numeric inputs of the mode that is not in use.
Check with the timeframe, the start position of the history, the start time, weekend bars and holidays aligned. Having the same date alone does not necessarily mean that the bars included in the calculation are the same.
This display overlays price levels. Overlaps or crossings are not instructions for a reversal, a continuation or an order.
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.
If the 0% price is Z, the 100% price is T and the ratio is r%, the price is Z+(T−Z)×r/100. The 14 levels are 0, 14.6, 23.6, 38.2, 50, 61.8, 76.4, 100, 123.6, 138.2, 150, 161.8, 261.8 and 423.6.
When highs or lows repeat at the same value, the newer bar is selected. If both are in the same bar, a close at or above the open (including equal) means low → high; otherwise it means high → low. Earlier/Later acts on this order.
0% and 100% are SteelBlue, 23.6% and 76.4% are Peru, 38.2% and 61.8% are Goldenrod, 50% is a DarkOrange dashed line, and 161.8% is a MediumOrchid dashed line. Check the ratio and the position, not only the color.
First align how 0% and 100% are placed, the bars used, and whether wicks or bodies are used. Even lines with similar names have different prices if the direction or the range differs.