Previous Day and Week High/Low Levels
Info
The Previous Day and Week High/Low Levels is a Indicator for MetaTrader 5 that previous day high/low, previous week high/low, and today's open levelsmany traders monitor key reference levels such as the previous day's and last week's high and low prices, along with the current day's opening price. These levels are significant for identifying potential breakouts, rejections, and price targets.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Previous Day and Week High/Low Levels
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, Previous Week High/Low, and Today's Open LevelsMany traders monitor key reference levels such as the previous day's and last week's high and low prices, along with the current day's opening price.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: Previous Day High/Low with First Touch Marker for MT4/MT5 - another powerful indicator for MetaTrader 5 traders.
Previous Day High/Low, Previous Week High/Low, and Today's Open LevelsAlso recommended: Previous Day and Week Levels with Round Numbers - similar indicator with strong performance on MetaTrader 5.
Many traders monitor key reference levels such as the previous day's and last week's high and low prices, along with the current day's opening price. These levels are significant for identifying potential breakouts, rejections, and price targets. This indicator draws these important levels directly onto any chart timeframe.
Key Levels Displayed:
- PDH / PDL: Previous Day High and Previous Day Low
- PWH / PWL: Previous Week High and Previous Week Low
- Open: Today's Opening Price
Each level is marked with a small, unobtrusive label displaying its name and price, positioned just to the right of the most recent candle. The levels are derived from the Daily (D1) and Weekly (W1) bars of the selected symbol. For clarity, a 'day' is defined by the broker's server time. These levels are recalculated at the opening of each new D1 bar and exclusively utilize completed D1 and W1 bars, ensuring they do not repaint during the trading session. If D1 or W1 historical data is still loading, the indicator will wait for the next tick to display the levels accurately.
All drawn lines and labels are automatically removed when the indicator is detached from the chart.
Indicator Inputs:
Input Name
Default Value
Description
Previous day high/low color
Dodger blue
Sets the color for the Previous Day High (PDH) and Previous Day Low (PDL) lines.
Previous week high/low color
Goldenrod
Sets the color for the Previous Week High (PWH) and Previous Week Low (PWL) lines.
Today's open color
Silver
Sets the color for the Today's Open price line.
Show previous week
true
Toggles the display of the Previous Week High (PWH) and Previous Week Low (PWL) lines.
Show today's open
true
Toggles the display of the Today's Open price line.
Line style
Dot
Determines the visual style for all indicator lines (e.g., Solid, Dash, Dot).
Line width
1
Sets the thickness for all indicator lines.
Show labels
true
Toggles the display of labels next to each price level, showing the level's name and price.
Label font size
8
Adjusts the font size of the displayed labels.
You may also like: Previous Day High, Low, and Close Levels Indicator - excellent alternative for indicator users on MetaTrader 5.
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 indicator_chart_window
#property indicator_buffers 0
#property indicator_plots 0
input color DayColor = clrDodgerBlue;
input color WeekColor = clrGoldenrod;
input color OpenColor = clrSilver;
.......
⚠ 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.