Check the time first
Sessions are split based on the chart time. Do not enter Japan time or the PC time as is.
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.
Purple dotted lineThe average of the previous session's high, low and close.
Blue dashed linesThe upper and lower range centered on the pivot.
Gray solid linesThe previous session's high and low. They can be hidden in the settings.
Compares the default settings and a settings change example on a screen with only this product applied.
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.
Sessions are split based on the chart time. Do not enter Japan time or the PC time as is.
The pivot, range and previous session high/low have different roles. Check the colors and line styles.
Within a session the values are the same. When the session changes, they are updated to the next values.
What is shown are prices that summarize the previous session. They do not show where future prices will stop.
From the previous session's high H, low L and close C, P = (H + L + C) ÷ 3 is calculated.
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.
The maximum high and minimum low within the session. The display is switched with Show Previous High and Low.
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.
It does not start on weekly or monthly charts. First check on a timeframe shorter than daily.
The default is server time 00:30. There are restrictions on combinations with the timeframe.
Nothing is drawn from the oldest bar to the first boundary, or for the session after that. Check from the 2nd boundary onward.
Distinguish purple, blue and gray, and check the values in the Data Window.
| Included file | Purpose / location |
|---|---|
| TRI_Pivot_Range.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. Place only 1 instance of the same product on 1 chart.
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.
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.
InpStartHourInpStartMinuteInpShowPivotInpShowPrevRangeWith 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.
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 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.
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.
This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.
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.
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.
Set both Session Start Hour and Session Start Minute to 0. The default 00:30 cannot be applied to the daily chart.
If D is 0, the upper and lower range and the pivot overlap. This does not necessarily mean they are hidden or broken.
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.
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.
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.
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.