The Previous Day High Low indicator for MT4 draws yesterday’s high and low as horizontal lines across today’s session, with the exact price printed on each line. You can also add the previous day’s open and close, and the previous week’s high and low, so the key reference levels for the session are on your chart before you place a trade.
The previous day’s high and low are among the most watched intraday levels in forex. Traders use them to judge whether today is breaking out of yesterday’s range or staying inside it. This free MetaTrader 4 indicator draws those levels automatically and keeps them up to date as each new day begins.
What Is the Previous Day High Low Indicator?
It is a levels tool. It reads the completed daily candle before today and marks its extremes on any intraday chart:
- PDH — previous day high.
- PDL — previous day low.
- PD Open and PD Close — optional previous day open and close.
- PWH and PWL — optional previous week high and low.
These levels matter because many participants see the same numbers. Stop orders often cluster just beyond the previous day’s extremes, so price reaction around them, either a rejection or a clean break, can tell you a lot about who is in control of the session.
How it works
The indicator takes the high, low, open and close of the previous D1 bar using MT4’s iHigh, iLow, iOpen and iClose functions. If that bar is a short Sunday candle and IgnoreSundayCandle is on, it uses the Friday bar instead. Each level is drawn as a horizontal line that starts at the first bar of the current day and extends ExtendBars bars past the latest candle, with a label at the right end showing the level’s name and price. Weekly levels come from the previous W1 bar and start at the beginning of the current week.
The lines update on every tick so they stay attached to the right edge of the chart, and they move to the new values automatically when a new day or week begins. Days are defined by your broker’s server time, because that decides where each D1 bar starts and ends.
Key Features
- Previous day high and low, plus optional open, close and previous week high and low.
- Price labels with the exact level, formatted to your symbol’s digits.
- Lines limited to the current day (or week), so they do not clutter older price history.
- Separate colors, styles and widths for daily and weekly levels.
- Optional handling of broker Sunday candles.
- All objects use the prefix MT4I_PDHL_ and are removed when you delete the indicator.
How to Trade With the Previous Day High Low Indicator
Breakout of the previous day’s range
- Wait for a candle on your trading timeframe (M15 or H1 are common) to close above PDH or below PDL.
- Prefer breakouts during active sessions such as the London or New York open; the Trading Sessions indicator linked below marks them for you.
- Enter on the close, or on a retest of the broken level from the other side.
- Place the stop back inside yesterday’s range, beyond the breakout candle’s opposite end.
Rejection (false break) setups
- Watch for price to push through PDH or PDL and then close back inside the range.
- That failed break often means the stops beyond the level were taken and the move ran out of buyers or sellers.
- Enter in the direction of the rejection, with the stop beyond the wick, and target the middle of yesterday’s range or the opposite level.
Using the weekly levels
With ShowWeekly on, the previous week’s high and low add a second, larger frame around the daily levels. A break of the previous day high that runs straight into the previous week high has little room to travel, so many traders lower their target or skip the trade. A break of yesterday’s range that also clears last week’s range is a bigger event and has more open space above or below it.
Inside days
When price spends the whole session between PDH and PDL, the market is consolidating. Range traders fade the edges; breakout traders wait for the next session to resolve it. An inside bar indicator on the D1 chart marks these days automatically.
Previous day levels gain weight when they line up with other references. Check them against daily pivot points and the session VWAP. Size each trade from the actual stop distance with the position size calculator.
Best Settings
- Scalping and day trading (M1 to M15): keep the defaults, PDH and PDL with labels. Add ShowWeekly when price is trading near last week’s extremes.
- Range context: turn on ShowClose; many traders watch whether price opens above or below the previous close.
- Cleaner chart: set DayLineStyle to Dot with DayLineWidth 1 so the levels stay in the background.
- Labels: raise LabelFontSize to 10 or 11 on high-resolution screens so the prices stay readable, and increase ExtendBars if the labels overlap the latest candles.
- Sunday candles: leave IgnoreSundayCandle on unless your broker has no Sunday session, in which case it has no effect.
Does It Repaint?
No. The Previous Day High Low indicator is non-repainting. Every level comes from a daily or weekly candle that has already closed, so the prices do not change during the day. The lines are redrawn on each tick only to keep them stretched to the latest candle; their price never moves until a new day or week starts. For background, see our guide to repainting in MT4 indicators.
How to Install
Download the free file, then in MetaTrader 4 open File > Open Data Folder > MQL4 > Indicators and copy previous-day-high-low-indicator-mt4.mq4 into that folder. Restart the terminal or right-click Indicators in the Navigator and choose Refresh, and the indicator compiles and appears under Indicators > Custom. Drag it onto a chart and adjust the inputs in the window that opens. The full walkthrough, with fixes for common problems, is in our guide on how to install indicators in MT4. This is an MT4 file, so it will not load in MetaTrader 5 (the two platforms use different file formats), and the MT4 mobile apps cannot run custom indicators at all, as explained in our MT4 mobile indicators guide.
Related Indicators
- Daily Support and Resistance Special Indicator MT4 for more daily support and resistance levels.
- Pivot Points Indicator MT4 for Standard, Fibonacci, Woodie and Camarilla levels.
- Camarilla Pivots Indicator MT4, a dedicated Camarilla tool.
- Trading Sessions Indicator MT4 to time breakouts with session opens.
See every scalping indicator in the library.
Trading on margin carries a high level of risk, so test any new tool on a demo account before you use it with real money.

