MT5 indicators← Prior Day 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

Prior Day Levels

Draws the previous day's daily high and low, the current day's open, the date boundaries and the current day's candle on the price chart. The candle on the right is a summary of the current day's daily bar, not a future candle.

Indicator name: Prior Day LevelsMetaTrader 5Main chart

Use the previous day's high/low as reference → compare with the current day's open → look at the shape of the daily bar

Previous day highPrevious day lowCurrent day openSummary of the current day's daily bar
Schematic diagram of how to read it. This is not an actual terminal screen.
1

Blue upper and lower linesThe previous day's high and low. The dotted lines to the right of the latest bar are extensions of the same levels.

2

Red dashed lineThe current day's open. Read whether the current price is above or below the open.

3

Candle on the rightA summary of the forming daily bar, drawn from the current day's high, low and open and the close of the current bar.

Daily basisRight margin requiredNot a forecast
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
Bars to extend the lines to the right
InpExtendBars
5 → 20
Distance of the daily candle to the right
InpCandleOffsetBars
10 → 25

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 settingsInpExtendBars = 5 / InpCandleOffsetBars = 10
Prior Day Levels default settings
The previous day's high and low as blue lines, the current day's open as a red dashed line, and a daily summary on the right.
View the screen in detail at full size
Prior Day Levels default settings (full size)
Settings change exampleInpExtendBars = 20 / InpCandleOffsetBars = 25
Prior Day Levels settings change example
The extension is changed to 20 bars and the daily candle distance to 25 bars. A right margin is required.
View the screen in detail at full size
Prior Day Levels settings change example (full size)

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.

2

How to read it in 30 seconds

Date basis

The previous day is the preceding daily bar in the terminal. It may not match yesterday on the calendar.

Leave space at the right edge

Enable the right margin in the MT5 chart settings.

Do not decide on line crossings alone

Combine with the price position and the candle shape, and set trading conditions separately.

3

What it measures

Read the previous day's high and low and the current day's position on a single price screen.

Definition of the previous day

Uses the bar one before the current day in the same symbol's daily series. For symbols with weekends or short daily bars, Friday, Sunday or another day may be the previous day. 0:00 Japan time is not used as a fixed reference.

Current day candle

The high, low and open are read from the current day's daily bar, and the close side of the body from the close of the current chart bar. By default it is green if above the open and red if at or below it. Because it is still forming, its shape and color change.

Weekdays and boundaries

On timeframes below daily, the weekday is shown. On daily and above, weekday names are not shown. A dotted boundary is drawn 24 hours after the start of the current day's daily bar.

4

When to use it in decisions

Approaching the previous day high

Indicator
Nearing the upper blue line
Price
Look at the recent high and the bar shapes
Consideration
Observe the reaction near the level
Exclusion condition
Do not decide that a breakout will continue on reaching it alone

Below the previous day low

Indicator
Below the lower blue line
Price
Look at pullbacks and where the price stays
Consideration
Cross-check with conditions already set
Exclusion condition
The blue lines do not necessarily act as support or resistance

Crossing the open

Indicator
Moving above and below the red dashed line
Price
The current day's direction is switching
Consideration
Look at it together with the body of the daily candle on the right
Exclusion condition
Do not use crossing the open alone as an order condition

The date changes

Indicator
The reference lines move to the new previous day
Price
Check the terminal's daily boundary
Consideration
Wait for new daily data to update
Exclusion condition
Do not mistake old lines awaiting an update for the new reference
5

Actual decision steps

1

Know the daily boundary

Check the start time of the terminal's daily bar.

2

Make a margin at the right edge

Enable the setting that leaves space at the right edge of the chart, and adjust it to a width that fits the candle.

3

Read the three price levels

Cross-check the position of the current price against the previous day's high and low and the current day's open.

4

Read the candle on the right

Look at the current day's high/low and body. It is still forming and is not a future bar.

6

Installation and checking the package contents

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

Bars to extend the lines to the right

Name shown on screen
Level Extension (bars)
Input name
InpExtendBars
Default
5
Allowed range
Integer from 0 to 500
Description
Specified in bars of the current chart timeframe. The extension is automatically limited to 2 bars before the position of the daily candle. 0 means up to the latest bar.

Distance of the daily candle to the right

Name shown on screen
Daily Candle Offset (bars)
Input name
InpCandleOffsetBars
Default
10
Allowed range
Integer from 2 to 500
Description
How many bars to the right of the latest bar the daily summary is placed. A larger value requires more right margin.

Daily wick width

Name shown on screen
Daily Candle Wick Width
Input name
InpWickWidth
Default
2
Allowed range
Integer from 1 to 5
Description
Line width of the high-to-low line of the right candle. The body width is 2 bars of the chart timeframe.

Daily up color

Name shown on screen
Daily Candle Up Color
Input name
InpUpColor
Default
LimeGreen
Allowed range
Select a color
Description
Color when the current price is higher than the current day's open. Default is LimeGreen.

Daily down color

Name shown on screen
Daily Candle Down Color
Input name
InpDownColor
Default
Red
Allowed range
Select a color
Description
Color when the current price is at or below the current day's open. Default is Red.

Previous day high/low color

Name shown on screen
Previous High/Low Color
Input name
InpLevelColor
Default
DodgerBlue
Allowed range
Select a color
Description
The solid high and low lines and their dotted extensions. Default is DodgerBlue.

Current day open color

Name shown on screen
Today's Open Color
Input name
InpOpenColor
Default
Red
Allowed range
Select a color
Description
The dashed line of the current day's open. Default is Red.

Date boundary color

Name shown on screen
Day Separator Color
Input name
InpSeparatorColor
Default
Olive
Allowed range
Select a color
Description
The solid lines at the start of the previous and current days, and the dotted line 24 hours after the start of the current day. Default is Olive.
8

Usage specifications

Conditions for the right-side candle to be visible

This product does not automatically change the chart's right margin setting. Enable an operation that leaves space at the right edge, such as MT5's “Chart shift”. If the position is far away, increase the margin or reduce Daily Candle Offset.

Waiting for daily bar data to update

While the current or previous day's daily bar cannot be obtained, or while the date update has not caught up, the drawing is not updated. Earlier lines may remain, so check the date boundary.

How it looks on different timeframes

The line extension and the candle distance are the chart timeframe's seconds × the specified number of bars. Changing the timeframe also changes the on-screen position. It is not a bar count that excludes non-trading time.

Only 1 instance of the same product on 1 chart

If you add the same product to the same chart more than once, the drawings overwrite each other, or deleting one also removes the display of the other. To use different settings at the same time, use separate charts.

For on-screen display only

It has no value buffers and shows its output as lines and text on the chart. It does not place trade orders or issue alerts. It does not guarantee profit or market direction.

9

Troubleshooting and usage notes

The candle on the right is missing

Enable the right margin. Also check that Daily Candle Offset is not too large, and check the chart zoom and the margin width.

The extension does not grow when increased

Level Extension is automatically adjusted with Daily Candle Offset − 2 as its upper limit. Check both values.

The previous day's levels differ from what you expected

Check the same symbol's preceding daily bar, not the date in Japan time. It may include weekends or short daily bars.

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

Data used

The current and previous day's D1 series and the close of the current chart bar. Prices are not converted to another unit and are drawn at the symbol's price positions. There are no output buffers.

Placement formula

Bars of line extension = min(Level Extension, Daily Candle Offset − 2). Starting from the start time of the latest bar, objects are placed to the right by multiplying by the length of the chart timeframe.

Updates

Redrawn on price updates; when waiting for data, on date changes and similar cases, data is also re-fetched by a timer. The close side of the right daily candle is not a final value.