What it does
The previous day's high and low are some of the most watched levels in trading. Many traders also track the previous week and month. This indicator draws those highs, lows and (optionally) closes as horizontal lines that start at the open of the current period and extend to the right, each with a short label such as "PDH 1.08520". It removes everything it draws when you take it off the chart.
How it works
- For each enabled period (day, week, month) the indicator reads the high, low and close of the most recent completed bar of that timeframe from the broker's D1, W1 and MN1 history.
- It draws a line from the start of the current period at each price, with the label to the right of the latest bar.
- Labels use the prefixes PD (previous day), PW (previous week) and PM (previous month), followed by H, L or C.
- Lines are refreshed once per new chart bar, so they roll over automatically when a new day, week or month begins.
- Alerts check the last closed bar: if its close moved above a previous high or below a previous low that the prior bar had not crossed, one alert is sent for that bar.
All periods follow the broker's server time.
How to use it
Previous highs and lows mark where buyers and sellers last stopped the market, so they are natural candidates for support and resistance. Typical approaches include:
- Breakout: a close above the previous day high can show the market accepting higher prices.
- Rejection: a quick move through the level followed by a close back inside the range can suggest a failed breakout or a liquidity sweep.
- Targets: an open trade heading toward the previous week high or low has an obvious reference for a take-profit.
The previous close is useful as a gauge of whether the current session is trading above or below where the last one settled. The tool is built for intraday charts from M1 to H4.
Settings
| Input | Default | What it changes |
|---|---|---|
| Show previous day / week / month | true / true / false | Which periods are drawn |
| Include the previous close | true | Adds the dotted close line for each period |
| Day / week / month colour | blue / orange / orchid | Colour per period |
| Line width | 1 | Thickness of the lines |
| Label font size | 8 | Size of the text labels |
| Popup alert / Push notification | false | Alerts once per bar on a cross of a previous high or low |
Limitations
- Only the current set of levels is drawn; older periods are not shown in history.
- Server time defines the day, so levels differ between brokers, and short Sunday sessions can create a small "previous day".
- Levels are refreshed on new bars; if daily data is still loading when attached, they appear on the next tick.
- Previous levels are reference points, not predictions; strong trends often pass straight through them.

