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

Pivot Range

Shows on the price chart a central pivot and upper and lower range lines calculated from the high, low and close of the previous session. The boundary time is specified in server time.

Indicator name: Pivot RangeMetaTrader 5Price chart

Read the lines for the next session from 3 prices of the previous session

5 lines calculated from the previous sessionPrevious session highRange topPivotRange bottomPrevious session low
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Purple dotted lineThe average of the previous session's high, low and close.

2

Blue dashed linesThe upper and lower range centered on the pivot.

3

Gray solid linesThe previous session's high and low. They can be hidden in the settings.

Sessions split by server timeFirst 2 sessions not shownDaily chart: 00:00 only
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
Boundary minute
InpStartMinute
30 → 0
Show previous session high/low
InpShowPrevRange
true → false

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 settingsInpStartMinute = 30 / InpShowPrevRange = true
Pivot Range default settings
The default boundary is 00:30. The purple pivot, the blue upper and lower range, and the gray previous-section high and low are shown.
View the screen in detail at full size
Pivot Range default settings (full size)
Settings change exampleInpStartMinute = 0 / InpShowPrevRange = false
Pivot Range settings change example
An example changed to a 00:00 boundary with the previous session high/low hidden. The 3 purple and blue lines are shown.
View the screen in detail at full size
Pivot Range settings change example (full size)

Example shown: 15-minute chart (M15). This is an example to explain the display. The settings change example is not a recommended value. Details can be checked in the full-size view.

2

How to read it in 30 seconds

Check the time first

Sessions are split based on the chart time. Do not enter Japan time or the PC time as is.

Distinguish the line types

The pivot, range and previous session high/low have different roles. Check the colors and line styles.

Read session by session

Within a session the values are the same. When the session changes, they are updated to the next values.

3

What it measures

What is shown are prices that summarize the previous session. They do not show where future prices will stop.

Pivot

From the previous session's high H, low L and close C, P = (H + L + C) ÷ 3 is calculated.

Upper and lower range

With D = |(H + L) ÷ 2 − P|, the top is P + D and the bottom is P − D. These differ from the previous session's high and low themselves.

Previous session high/low

The maximum high and minimum low within the session. The display is switched with Show Previous High and Low.

What a session means

Values are aggregated with the first bar that starts at or after the specified time as the boundary. A Sunday bar does not start a new session.

4

Situations for reading the display

The lines continue horizontally

Indicator
The line values continue during the same session.
Cross-check
Cross-check the chart time with the boundary setting.
Check
Check the price of each line in the Data Window.
Caution
Do not decide the subsequent movement merely because the price has approached a line.

The lines change in steps

Indicator
In a new session they switch to the aggregated values of the previous session.
Cross-check
Check that the boundary time matches the bar increments.
Check
Compare the positions where the values change with the start of the sessions.
Caution
The values of adjacent bars are joined by diagonal lines. The slope of the line itself is not a predicted value.

The gray lines are not visible

Indicator
The previous session high/low may be hidden.
Cross-check
Check Show Previous High and Low.
Check
Show only the lines you need and cross-check with the Data Window.
Caution
Even when hidden, the calculated values remain. This is different from being hidden because of insufficient history.
5

Steps for checking the display

1

Choose the timeframe

It does not start on weekly or monthly charts. First check on a timeframe shorter than daily.

2

Check the boundary time

The default is server time 00:30. There are restrictions on combinations with the timeframe.

3

Load enough history

Nothing is drawn from the oldest bar to the first boundary, or for the session after that. Check from the 2nd boundary onward.

4

Cross-check the roles of the 5 lines

Distinguish purple, blue and gray, and check the values in the Data Window.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Pivot_Range.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 4 inputs. Change them on the Inputs tab of the properties window. The English display names are shown together with the input names in the code.

Boundary hour

Name shown on screen
Session Start Hour
Input name
InpStartHour
Default
0
Allowed range
0〜23
Description
Specified in server time. The time combined with the minute must be at or before the start time of the last bar within 1 day on that timeframe.

Boundary minute

Name shown on screen
Session Start Minute
Input name
InpStartMinute
Default
30
Allowed range
0〜59
Description
The default is 30 minutes. On the daily chart, both hour and minute must be 0. Example: H4 allows up to 20:00, and 20:30 does not start.

Show pivot

Name shown on screen
Show Pivot
Input name
InpShowPivot
Default
true
Allowed range
true / false
Description
If true, the purple dotted line is shown. Even if false, the value remains in the Data Window. The upper and lower range continue to be shown.

Show previous session high/low

Name shown on screen
Show Previous High and Low
Input name
InpShowPrevRange
Default
true
Allowed range
true / false
Description
If true, the gray high and low lines are shown. Even if false, the calculated values are kept.
8

Usage specifications

Boundary shifts by timeframe

With the default of 00:30, the boundary is the bar starting at 01:00 on H1 and at 04:00 on H4. If there is no bar exactly at the specified time, it is the first bar at or after that time.

Sundays and weekends

Sunday bars do not start a new section and are included in the previous section. At the start of the week, bars before the specified time are also included in the previous section.

The first 2 sections

The span from the oldest bar to just before the first boundary is section 1, and the next one is section 2; neither is drawn. This does not simply mean that the display appears after waiting 2 days.

Forming bar and history

The lines within a section are calculated from the previous section. When past history is added or corrected, or the boundary setting is changed, the display may change through recalculation.

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

Calculated values are stored in buffers and shown as lines and bars. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.

9

Troubleshooting and usage notes

Nothing appears after applying it

It does not start on weekly or monthly charts, or when the combination of boundary time and timeframe is not suitable. 1 line giving the reason in English appears in "Toolbox → Experts". The reason is not shown on the chart.

Using it on the daily chart

Set both Session Start Hour and Session Start Minute to 0. The default 00:30 cannot be applied to the daily chart.

Lines overlap

If D is 0, the upper and lower range and the pivot overlap. This does not necessarily mean they are hidden or broken.

The time differs from what you expected

Server time may differ by FX broker and by season. Cross-check the chart time with the boundary.

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

Display of the 5 lines

Pivot = DarkViolet, dotted; Range Top / Range Bottom = MediumBlue, dashed; Previous High / Previous Low = DimGray, solid. All are width 1 and shown on the price chart.

Session aggregation and updates

Uses each session's maximum high, minimum low and last close. On days other than Sunday, a new session starts when a bar at or after the specified time crosses that time or the date changes. The oldest bar itself is not counted as a boundary.

Timeframe and boundary conditions

With the timeframe length as T seconds and the boundary as B seconds after 0:00, the start condition is daily or below and B ≦ 86400 − T. This is the restriction of 00:00 for daily and up to 20:00 for H4.