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

Pivot Levels

Converts the previous period's high, low, close and so on into P, R and S price levels with the chosen formula. Day, week or month and 6 calculation methods can be switched for display.

Indicator name: Pivot LevelsMetaTrader 5Main chart

Read the lines after aligning the period and the formula

High, low and close of the previous periodSelect the period and the calculation methodDraws the P, R and S levelsOnly Woodie also uses the first open of the current period
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Choose the periodThe default is Day. Trading days are built from the chart's bars and combined into weeks or months as needed.

2

Choose the formulaThe default is Traditional, and the changed example is Camarilla. Even with the same range, the line prices change.

3

Check by line nameP, R1–R4 and S1–S4 are the identifying names of the lines. They are not instructions for trading or for price reactions.

MT5 onlyDay, week, month6 calculation methods
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
Calculation method
InpMethod
Traditional → Camarilla

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 settingsInpMethod = Traditional
Pivot Levels default settings
Default: Day, Traditional, start 00:00. Shows P, R1–R3 and S1–S3. The steps switch when the period changes.
View the screen in detail at full size
Pivot Levels default settings (full size)
Example of changed settingsInpMethod = Camarilla
Pivot Levels example of changed settings
Changed example: only Method is changed to Camarilla. P becomes the previous period's close, and the surrounding lines are also calculated with different formulas. Not all lines necessarily fit in the image.
View the screen in detail at full size
Pivot 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

Look at the period

Check Day, Week or Month. This is a separate setting from the chart's own timeframe.

Look at the method

Even for the same period, a different method gives different values. Align Method first.

Distinguish P from R and S

P is purplish, R is greenish and S is reddish. Also use the numbers and line styles to tell them apart.

3

What it measures

Converts the previous period's price information into several levels. The levels are fixed within the target period.

Source from the previous period

Basically, these are the high H, low L and close C of the most recent completed period. Only Woodie also uses the first open O of the current period.

How days, weeks and months are combined

Trading days are split at the start time. Week groups each trading day by its date into weeks starting on Monday, and Month groups them into calendar months. It does not read the broker's weekly or monthly bars as they are.

The 7 default lines

P, R1, R2, R3 and S1, S2, S3. Additional settings can draw R4, S4 and midlines. Traditional has no definition for R4 and S4.

Differences by method

Traditional and Classic differ from R3 and S3 onward. Camarilla has P=C. In Retracement, P is the middle of the previous period's high and low.

4

Situations for reading the display

The lines stay the same all day

Indicator
Day levels for the same trading day
Cross-check
They are not recalculated with new highs or lows of the current day.
Check
Read them as levels built from the previous period's source.
Caution
To avoid confusing this with a stopped data feed, also check that the candlesticks are updating.

P or the outer lines change

Indicator
Screen with Method changed
Cross-check
The formula is different, so the layout changes.
Check
Change 1 item at a time while keeping the period and the start time.
Caution
Do not treat differences caused by setting changes as changes in the market.

R4 and S4 do not appear

Indicator
Screen with Show R4 and S4 set to true
Cross-check
Traditional does not draw these 2 lines.
Check
Check Method and whether the lines are at prices within the screen.
Caution
Setting it to true does not make them appear in every method.

The start of a week or month is blank

Indicator
Left side with Week or Month
Cross-check
The first period is not used because it may have started partway through. Drawing starts after the next period has completed.
Check
Load sufficiently old history.
Caution
Having bars for 1 calendar week may not be enough.
5

Steps for checking the display

1

Start with Day and Traditional

Place it with the default and check the P, R and S lines.

2

Check the start of the trading day

Check the server time, the start time and weekend bars.

3

Switch the method

As in the example shown, change only Method and compare the positions of P and the surrounding lines.

4

Add the lines you need

Switch the midlines and R4/S4 according to the purpose of the display. Also take into account that distant lines can be off-screen.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Pivot_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 6 inputs. Change them on the Inputs tab of the properties. The English display name and the input name in the code are shown together.

Calculation period

Name shown on screen
Pivot Period
Input name
InpPeriod
Default
Day
Allowed range
Day / Week / Month
Description
Combines the trading days built from the chart's bars into days, weeks or months.

Calculation method

Name shown on screen
Method
Input name
InpMethod
Default
Traditional
Allowed range
Traditional / Classic / Woodie / Camarilla / Fibonacci / Retracement
Description
Even with the same source, the levels change with the formula. Calculation details are in Chapter 10.

Trading day start, hour

Name shown on screen
Session Start Hour
Input name
InpSessionStartHour
Default
0
Allowed range
0〜23
Description
Server time. Combined with the minute. There is no automatic adjustment for daylight saving time. On the daily timeframe, only 00:00 can be used.

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.

Show R4 and S4

Name shown on screen
Show R4 and S4
Input name
InpShowLevel4
Default
false
Allowed range
true / false
Description
Takes effect in methods other than Traditional. Not shown by default.

Show the middle line

Name shown on screen
Show Midpoints
Input name
InpShowMidpoints
Default
false
Allowed range
true / false
Description
Adds 6 lines between adjacent levels from S3 to R3.
8

Usage specifications

Usable timeframes

Use it on daily and lower timeframes. On daily charts, only start 00:00 can be used. It does not start on weekly or monthly charts. When using Week or Month, the chart must also be daily or lower.

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.

Fixed levels and period boundaries

Normally the levels do not move within the same calculation period. When a new period begins, they are updated using the previous period's data. Woodie uses the first open of the current period, not the current price.

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 levels do not appear

The first period, which contains the first trading day, is not used as calculation source. After the next period has completed, drawing starts from the 3rd period when counted. Week and Month need more history.

R is not necessarily above P

Do not decide the price order from the line names alone. Especially in Woodie, if the current period's open is outside the previous period's range, the order can differ from what is usually expected.

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

Calculation symbols

H, L and C are the previous period's high, low and close, O is the first open of the current period, and the width V=H−L. P, R and S are treated as the names of this product's lines.

Traditional

P=(H+L+C)/3. R1=2P−L, S1=2P−H, R2=P+V, S2=P−V, R3=H+2(P−L), S3=L−2(H−P). R4 and S4 are not drawn.

Classic

P, R1, S1, R2 and S2 are the same as Traditional. R3=R2+V, S3=S2−V, R4=R3+V, S4=S3−V.

Woodie

P=(H+L+2O)/4. Using this P, R1–R3 and S1–S3 are calculated with formulas of the same form as Traditional, and R4=R3+V, S4=S3−V.

Camarilla

P=C. R1–R4 add V×1.1÷12, V×1.1÷6, V×1.1÷4 and V×1.1÷2 to C in order. S1–S4 subtract the same amounts from C.

Fibonacci

P=(H+L+C)/3. R1–R4 add V×0.382, V×0.618, V and V×1.618 to P, and S1–S4 subtract the same amounts from P.

Retracement

P=L+0.5V. R1=L+0.618V, R2=L+0.786V, R3=H, R4=L+1.382V. S1=L+0.382V, S2=L+0.236V, S3=L, S4=L−0.382V.

Midlines and colors

The midlines are the middles of S3–S2, S2–S1, S1–P, P–R1, R1–R2 and R2–R3. P is DarkViolet, R is ForestGreen, S is Crimson, and the midlines are gray dotted lines. For R and S, 1 is a solid line, 2 dashed, 3 dotted and 4 dash-dot-dot.