MT5 indicators← Fibonacci Range 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

Fibonacci Range Levels

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%.

Indicator name: Fibonacci Range LevelsMetaTrader 5Main chart

Before the ratios, check which range and which direction

Past days or the recent N barsOrder of the extremes → 0% and 100%Converts the ratios into prices and draws themThis is a calculation of levels, not a forecast of reactions
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Set the rangeThe default is the previous 1 trading day. The changed example uses the recent 48 bars.

2

Read the 0% sideBy default, the extreme that appeared earlier in time is 0%. It is not necessarily the lower-priced side.

3

See the level for each ratioThese are lines calculated between 0% and 100% and further outside. They do not show future reactions.

MT5 onlyDefault is the previous 1 trading dayUp to 14 levels
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
How the range is built
InpRangeSource
Previous Days → Recent Bars

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 settingsInpRangeSource = Previous Days
Fibonacci Range Levels default settings
Default: Previous Days, 1 trading day, start 00:00. Levels made from the preceding range continue onto the current day's bars. Distant levels such as 161.8% may be off screen.
View the screen in detail at full size
Fibonacci Range Levels default settings (full size)
Example of changed settingsInpRangeSource = Recent Bars
Fibonacci Range Levels example of changed settings
Changed example: only Range Source is changed to Recent Bars. The setting uses 48 bars and does not include the forming bar. Because the calculation window moves 1 bar at a time, the levels and the direction also change.
View the screen in detail at full size
Fibonacci Range Levels example of changed settings (full size)

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.

2

How to read it in 30 seconds

Range first

Check whether it is Previous Days or Recent Bars. The number of days and the number of bars are separate settings.

0% and 100%

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.

50% is the middle

The orange 50% is the middle of the two ends. Reversing the 0% side does not change the price of 50%.

3

What it measures

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.

Previous Days

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.

Recent Bars

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.

Price source

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%.

Lines to display

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.

4

Situations for reading the display

0% is at the top

Indicator
The bluish lines of 0% and 100%
Cross-check
It is not abnormal for 0% to be on the higher-price side.
Check
Check the order in which the extremes appeared and 0% Level At.
Caution
Do not read top and bottom as a forecast of a rise or a fall.

There are several highs at the same price

Indicator
Equal extremes within the range
Cross-check
If they are equal, the newer bar is selected.
Check
Check whether the order of appearance has changed, even at the same extreme price.
Caution
The direction of the ratios may change depending on the order of appearance.

The direction differs between the daily and shorter timeframes

Indicator
Previous Days, Days In Range=1
Cross-check
If the range is 1 daily bar, the high and low are in the same bar. If the close is at or above the open, the low side is treated as first; if it is below, the high side is treated as first.
Check
On shorter timeframes, also check the order of the bars that made the high and the low.
Caution
The direction based on a bullish or bearish daily bar may not match the actual order on shorter bars.

Distant lines are not visible

Indicator
Outer lines such as 161.8%
Cross-check
Lines are also calculated outside the 0–100% width.
Check
Check the price scale, the display range and the display settings.
Caution
There is no function that automatically fits the vertical axis to all lines.
5

Steps for checking the display

1

Apply with the defaults

Place it on a short timeframe with the default settings and check 0%, 100% and 50%.

2

Check the range

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.

3

Check the direction of 0%

Earlier Extreme sets the extreme that appeared first as 0%, and Later Extreme sets the extreme that appeared later as 0%.

4

Change 1 item at a time

The changed example shown changes only Range Source. Compare it with the default on a separate chart.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Fibonacci_Range_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. Place only 1 instance of the same product on 1 chart.

4

Check the settings and display

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.

7

Settings

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.

How the range is built

Name shown on screen
Range Source
Input name
InpRangeSource
Default
Previous Days
Allowed range
Previous Days / Recent Bars
Description
Selects trading-day units or recent-bar units. With Recent Bars, the number of days and the start time are not used in the calculation.

Trading days in the range

Name shown on screen
Days In Range
Input name
InpSessions
Default
1
Allowed range
1〜20
Description
Used with Previous Days. This is the number of trading days that have bars, not the number of calendar days.

Trading day start, hour

Name shown on screen
Session Start Hour
Input name
InpSessionStartHour
Default
0
Allowed range
0〜23
Description
Server time used with Previous Days. It does not follow daylight saving time automatically. On the daily timeframe, this mode allows 00:00 only. It has no effect with Recent Bars.

Trading day start, minute

Name shown on screen
Session Start Minute
Input name
InpSessionStartMinute
Default
0
Allowed range
0〜59
Description
Specifies the start time. If there is no bar at the specified time, the split starts from the bar that comes after that time has passed.

Bars in the range

Name shown on screen
Bars In Range
Input name
InpBars
Default
48
Allowed range
2〜1000
Description
Used with Recent Bars. Counts the bars of the current chart without converting them into days.

Include the forming bar

Name shown on screen
Include Current Bar
Input name
InpIncludeCurrentBar
Default
false
Allowed range
true / false
Description
Affects Recent Bars only. false excludes the current bar; true includes it. With true, the extremes can change with ticks.

Price used for the extremes

Name shown on screen
Price Type
Input name
InpPriceType
Default
High and Low
Allowed range
High and Low / Open and Close (Body)
Description
Selects the high and low including wicks, or the top and bottom of the body.

Side where 0% is placed

Name shown on screen
0% Level At
Input name
InpZeroAt
Default
Earlier Extreme
Allowed range
Earlier Extreme / Later Extreme
Description
Selected by the order of appearance of the extremes. If the high and low are in the same bar, the order is decided by the close and the open.

Show 14.6%

Name shown on screen
Show 14.6%
Input name
InpShow146
Default
false
Allowed range
true / false
Description
An additional inner line.

Show 76.4%

Name shown on screen
Show 76.4%
Input name
InpShow764
Default
true
Allowed range
true / false
Description
Shown by default.

Show 123.6–150%

Name shown on screen
Show 123.6% to 150%
Input name
InpShow1236To150
Default
false
Allowed range
true / false
Description
Switches the 3 lines 123.6, 138.2 and 150% together.

Show 161.8%

Name shown on screen
Show 161.8%
Input name
InpShow1618
Default
true
Allowed range
true / false
Description
Shown by default, but it may be off-screen.

Show 261.8% and 423.6%

Name shown on screen
Show 261.8% and 423.6%
Input name
InpShow2618And4236
Default
false
Allowed range
true / false
Description
Switches the 2 distant lines together.
8

Usage specifications

Usable timeframes

Previous 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.

Trading days built from the chart's bars

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.

Weekend bars and 00:00 / 07:30

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.

Start 22:00 and Sunday bars

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.

Holidays are not filled with a fictitious 1 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.

Combinations of timeframe and start time

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.

Diagonal lines connecting steps

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.

Recalculation due to history and settings

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.

When a line is off screen

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.

Automatically drawn lines

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.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

This product shows calculation results through plot buffers and does not place orders. It does not guarantee profit or future price movement.

9

Troubleshooting and usage notes

The first line does not appear

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.

All lines overlap

If the high and low of the range are the same, the width is 0. The price of every ratio is also the same.

Cannot start

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.

The values are not the same as on another chart

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.

Lines and candlesticks overlap

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.

10

Technical information and specification details

Ratio calculation

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.

Order of the extremes

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.

Color guide

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.

When comparing with manual drawing tools

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.