Previous Day and Week High/Low Levels for MT4/MT5

Previous Day and Week High/Low Levels for MT4/MT5
Download ALL MT4 indicators (1681)
YouTube Video Thumbnail



Similar MetaTrader Tools

Previous Day and Week High/Low Levels for MT4/MT5

Info

The Previous Day and Week High/Low Levels for MT4/MT5 is a Indicator for MetaTrader 4 that previous day high/low (pdh/pdl)previous week high/low (pwh/pwl)today's openthese are important reference levels for traders, often used to identify potential breakouts, rejections, and price targets. This indicator draws these key levels directly onto your MT4/MT5 chart across any timeframe.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Indicator works exclusively on MetaTrader 4 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL4/Indicators folder via File ? Open Data Folder in MetaTrader 4.


How to Install and Use Previous Day and Week High/Low Levels for MT4/MT5

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

What this tool does

Previous Day High/Low (PDH/PDL)Previous Week High/Low (PWH/PWL)Today's OpenThese are important reference levels for traders, often used to identify potential breakouts, rejections, and price targets.

Typical Use Case

This Indicator excels in automated trading and technical analysis on MetaTrader 4.

Compatible Platform & Setup

This Indicator works on MetaTrader 4. Place the file in the MQL4/Indicators folder and restart the terminal.

Description & Settings

Related: ATR Monitor — Daily, Weekly, and Monthly Range Comparison - another powerful indicator for MetaTrader 4 traders.

Previous Day High/Low (PDH/PDL)

Also recommended: waddah attar weekly pivot fibo indicator - similar indicator with strong performance on MetaTrader 4.


Previous Week High/Low (PWH/PWL)

Today's Open

These are important reference levels for traders, often used to identify potential breakouts, rejections, and price targets. This indicator draws these key levels directly onto your MT4/MT5 chart across any timeframe.

The indicator displays:
- PDH / PDL: Previous day's high and low prices.
- PWH / PWL: Previous week's high and low prices.
- Open: The opening price of the current trading day.

Each drawn level includes a small, unobtrusive label showing its name and price, positioned to the right of the last candle. The levels are derived from the Daily (D1) and Weekly (W1) bars of the selected trading symbol. A "day" is defined by the broker's server time. These levels are recalculated at the opening of each new D1 bar and are based on completed D1 and W1 bars, ensuring they do not repaint during the trading session. If the D1 or W1 history is still loading, the indicator will wait for the next tick before drawing the levels.

All drawn lines and their associated labels are automatically removed when the indicator is detached from the chart.

Indicator Inputs:

Input

Default

Description

Previous day high/low colour

Dodger blue

Sets the color for the PDH and PDL lines.

Previous week high/low colour

Goldenrod

Sets the color for the PWH and PWL lines.

Today's open colour

Silver

Sets the color for the Today's Open line.

Show previous week

true

Toggles the display of Previous Week High/Low lines.

Show today's open

true

Toggles the display of the Today's Open line.

Line style

Dot

Determines the style of all drawn lines (e.g., solid, dashed, dotted).

Line width

1

Sets the thickness of all drawn lines.

Show labels

true

Toggles the display of labels showing the name and price for each level.

Label font size

8

Sets the font size for the level labels.

You may also like: Previous Day Closing Price Indicator - excellent alternative for indicator users on MetaTrader 4.

Source Code

#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version     "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property strict
#property indicator_chart_window
input color           DayColor   = clrDodgerBlue;
input color           WeekColor  = clrGoldenrod;
input color           OpenColor  = clrSilver;
input bool            ShowWeek   = true;

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.