SessionLevels
SessionLevels draws the levels of the trading day: the opening range — the range of the first minutes of the day, the initial balance — the range of the first hour, and the high, low and close of the previous day.
The indicator is drawn over the price chart.
How to read it
- A breakout of the opening range is the signal of the Opening Range Breakout strategy.
- The initial balance is the reference range of Market Profile; its extension is a sign of a trend day.
- The previous day’s high and low are support and resistance levels.
- The opening gap is measured from the previous day’s close.
How it is calculated
The trading day starts at the time set in Day start: hour and Day start: minute, by the chart’s time scale.
Tip: By default the day starts at midnight, and the Opening Range and Initial Balance windows are counted from the day start, not from the first bar. On the Moscow Exchange the first trades come at about 06:59–07:00 Moscow time, so with the default settings there are no bars in the first 30 and 60 minutes after midnight and Opening Range and Initial Balance are not drawn. For MOEX set Day start: hour to 7 (the morning session), 9 (the main session) or 10 (the main open by volume). Bars before the day start belong to the previous day. See the lesson When the day starts on MOEX.
- Opening range and Initial balance: the high and low accumulate while a bar starts inside its window from the start of the day (Opening range, minutes and Initial balance, minutes), then stay until the end of the day.
- Previous day and Previous close are the high, low and close of the previous day with the same day start.
The opening range and initial balance appear from the first bar of the day, the previous day levels from the second day of history. If the history starts later than the window, that day has no range. On bars longer than the window, the range is the first bar of the day.
The lines are horizontal, break at the change of day and are not taken into account by the chart’s automatic vertical scaling. The indicator does not draw the overnight session high and low.
The line values under the cursor are labeled: ORH and ORL — the opening range high and low, IBH and IBL — the initial balance, PDH and PDL — the previous day, PDC — the previous day’s close.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Day start: hour | The hour the trading day starts by the chart’s time scale, 0 to 23; 0 is midnight. | 0 |
| Day start: minute | The minute the trading day starts at, 0 to 59. | 0 |
| Opening range, minutes | The range of this many first minutes of the day, 1 to 1440. Usually 5–30. | 30 |
| Initial balance, minutes | The range of this many first minutes of the day, 1 to 1440. Usually 60. | 60 |
Plots
| Parameter | Description | Default |
|---|---|---|
| Opening range | The opening range high and low. | Orange, solid |
| Initial balance | The initial balance high and low. | Blue, dashes |
| Previous day | The previous day’s high and low. | Purple, solid |
| Previous close | The previous day’s close. | Purple, dashes |
Style
The lines have the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields.
How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.