Magenta solid line: POC
The level with the largest number of bars on the previous trading day whose high-to-low included that price.
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.
Magenta solid line: POCThe 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 rangeThe range expanded up and down from the POC until it reached the specified percentage of the total count. The default is 70%.
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.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
The level with the largest number of bars on the previous trading day whose high-to-low included that price.
The range expanded up and down from the POC until it reached the specified percentage of the total count. The default is 70%.
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.
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.
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.
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.
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.
Select a timeframe shorter than D1 and set Session Start Hour and Minute in server time.
The defaults are 4 points and 70%. Check the units and, if needed, change 1 item at a time.
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.
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.
| Included file | Purpose / location |
|---|---|
| TRI_Session_Profile_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. When comparing different settings, using separate charts makes checking easier.
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.
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.
InpStepInpValueAreaPercentInpSessionStartHourInpSessionStartMinuteThe 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.
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.
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.
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.
The display is a record of calculation results. It does not direct trading decisions and does not guarantee future price movements.
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.
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.
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 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.
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.
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.
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.
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.
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.