MT5 indicators← Session Profile 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

Session Profile Levels

Counts, for each price, the bars of the previous trading day whose range included it, and displays the most frequent price and the aggregation range around it on the next trading day.

Indicator name: Session Profile LevelsMetaTrader 53 level lines on the price chart

Count in the previous session → decide the center and range → display in the next session

1 Count the bars for each price in the previous completed session2 Select the most frequent price and the range of the specified percentage3 Display the POC, upper end and lower end in the next session
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Magenta solid line: POCThe level with the largest number of bars on the previous trading day whose high-to-low included that price.

2

Blue dashed lines: upper and lower ends of the rangeThe range expanded up and down from the POC until it reached the specified percentage of the total count. The default is 70%.

3

Updated at boundariesBecause it is calculated from the completed previous session, the 3 levels are fixed within the session. It does not draw today's distribution as it happens.

MT5 onlyAggregates the number of barsDoes not use volume or orders
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
Price step / Price Step (points)
InpStep
4 → 20
Range percentage / Value Area (%)
InpValueAreaPercent
70 → 50

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 settingsInpStep = 4 / InpValueAreaPercent = 70
Session Profile Levels default settings
The default step of 4 points and share of 70%. A magenta POC and blue range lines are shown.
View the screen in detail at full size
Session Profile Levels default settings (full size)
Settings change exampleInpStep = 20 / InpValueAreaPercent = 50
Session Profile Levels settings change example
An example changed to a step of 20 points and a percentage of 50%. Because the step and the percentage are changed at the same time, the change in the lines cannot be read as the effect of either one alone.
View the screen in detail at full size
Session Profile Levels settings change example (full size)

Example shown: 1-minute chart (M1). This is an example for explaining the display. The settings change example is not a recommended value. Details can be checked in the full-size view. Please also check the price scale of the main chart and the positions of the candlesticks.

2

How to read it in 30 seconds

Magenta solid line: POC

The level with the largest number of bars on the previous trading day whose high-to-low included that price.

Blue dashed lines: upper and lower ends of the range

The range expanded up and down from the POC until it reached the specified percentage of the total count. The default is 70%.

Updated at boundaries

Because it is calculated from the completed previous session, the 3 levels are fixed within the session. It does not draw today's distribution as it happens.

3

What it measures

Counts, for each price, the bars of the previous trading day whose range included it, and displays the most frequent price and the aggregation range around it on the next trading day.

What is counted

For each fixed price step, each bar whose high-to-low includes that level is counted as 1. Because 1 bar is counted at several levels, the total count differs from the number of bars. It is not volume or the number of seconds spent at that price.

Meaning of 70%

It is a percentage of the total count over all levels. It does not mean 70% of the bars or 70% of the price range of 1 day. Because the range is expanded level by level, the percentage actually included can exceed the set value.

Changes with the timeframe

The highs and lows of the chart's bars are used. Even for the same period, changing the timeframe changes the counting, and the POC and range may change. Use a timeframe shorter than D1.

4

Situations for reading the display

POC and the price position

Indicator
The magenta solid line is the aggregation result of the previous completed session.
Cross-check
Compare the price scale with the positions of the candlesticks.
Check
Above or below is a positional relationship, not a forecast of the next direction.
Caution
Do not treat reaching or crossing alone as a trading signal.

Width of the range

Indicator
The 2 blue lines are the ends of the grid that contains the specified percentage.
Cross-check
Compare with the same step, percentage, timeframe and boundaries.
Check
Under the same conditions, the difference in the price width of the aggregation range can be read.
Caution
It does not guarantee probabilities or the range of future price movement.

Sections without lines

Indicator
No lines are shown in sections with nothing to aggregate or no valid grid.
Cross-check
Check the history and the price step.
Check
Do not read a missing display as price 0 or as a neutral signal.
Caution
When the settings are changed, the other sessions are also recalculated.
5

Steps for checking the display

1

Check the timeframe and boundaries

Select a timeframe shorter than D1 and set Session Start Hour and Minute in server time.

2

Check the step and percentage

The defaults are 4 points and 70%. Check the units and, if needed, change 1 item at a time.

3

Prepare the required history

The first period of the history is not used because it may start partway through. No lines are shown in the first 2 periods; from the next period, the values of the previous completed period are shown.

4

Compare the 3 lines

Match the magenta POC and the blue upper and lower ends to the price scale. Confirm that they are the aggregation of the previous completed session, not of the current one.

6

Installation and checking the package contents

Included filePurpose / location
TRI_Session_Profile_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. When comparing different settings, using separate charts makes checking easier.

4

Check the settings and display

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.

7

Settings

There are 4 inputs. Change them on the Inputs tab of the properties. The English item names and input names defined in the source are shown together.

Price step

English item name
Price Step (points)
Input name
InpStep
Default
4
Allowed range
Integer from 1 to 100000
Description
Price Step (points). The step is the specified number × point. A point is the unit of the smallest digit of the symbol's price display and is not necessarily the same as pips. The finer it is, the more levels and calculation there are.

Range percentage

English item name
Value Area (%)
Input name
InpValueAreaPercent
Default
70
Allowed range
Integer from 1 to 100
Description
Value Area (%). The percentage of the total count included around the POC. Changing only the percentage does not change how the POC is selected.

Boundary hour

English item name
Session Start Hour
Input name
InpSessionStartHour
Default
0
Allowed range
Integer from 0 to 23
Description
Session Start Hour. Uses the terminal's server time. It is not necessarily Japan time.

Boundary minute

English item name
Session Start Minute
Input name
InpSessionStartMinute
Default
0
Allowed range
Integer from 0 to 59
Description
Session Start Minute. The hour and minute together define the trading-day boundary.
8

Usage specifications

Preparing the display

The first period of the history is not used because it may start partway through. No lines are shown in the first 2 periods; from the next period, the values of the previous completed period are shown.

Trading day boundaries

The start time is the terminal server time. If the start is noon or later, the time after that start is treated as belonging to the next day. Boundaries treated as Saturday or Sunday do not start a new period and are merged into the preceding period.

Days that cannot be aggregated

If the step is larger than the range of the bars, there may be days on which no bar contains a grid level. If the aggregate count for that period is 0, none of the POC, upper edge or lower edge is shown for the next period.

Scope of functions

It does not draw a horizontal distribution histogram. There are no notification, sound or order functions, and no account authentication or license file is required. MT5 only.

For on-screen display only

The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.

9

Troubleshooting and usage notes

No lines appear

Check that the timeframe is shorter than D1 and that there is enough history. Nothing is displayed for the first 2 sessions, when there is no grid level within the session, or when no bar contains a grid level and the count is 0.

Lines disappear when the step is increased

If a coarse grid falls only in gaps in the price movement, the count becomes 0. Reduce Price Step (points) and check. Parts with no value are never displayed as a line at 0 yen.

Only 1 or 2 lines are visible

The POC and the upper and lower ends of the range may be at the same price. Check for overlapping lines and the chart's displayed price range.

The settings are not accepted

The price step is 1 to 100000, the percentage 1 to 100, the hour 0 to 23 and the minute 0 to 59. Timeframes of D1 or higher cannot be used.

Processing is heavy

Making the step small relative to a wide range increases the number of levels and the amount of aggregation. Review the step and the amount of history to match the granularity you need. No particular processing time is guaranteed in all cases.

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

Price levels and POC

With step st = Price Step × point, the levels k×st at or above the session low and at or below the high are counted. 1 is added if a bar contains that level. If the maximum counts are tied, the level closer to the midpoint of the session high and low is chosen; if that is also tied, the higher level.

How the value area is expanded

Starting from the POC, the counts of the adjacent upper and lower levels are compared and the larger side is added. If they are equal, both sides are added, and this continues until the total reaches the specified percentage. The upper and lower ends are the prices of those grid levels. Not all levels within the range have the same count.

Empty values and session updates

If there is not even 1 grid level, or the total count of the grid is 0, all 3 outputs are empty. The current session uses the values of the immediately preceding completed session. Recalculation results may change when history is added or corrected, or when inputs are changed.

Display

Previous POC is a magenta solid line, and Previous Value Area High and Previous Value Area Low are blue dashed lines. There is no function to fill between the upper and lower ends. Where sessions switch, lines with different values are connected.