high, low and close of the previous day, week or month
Info
The high, low and close of the previous day, week or month is a Indicator for MetaTrader 4 that metatrader 5: follow on instagram:the indicator shows the high, close and low of the previous day, week or month. these levels are very commonly used as support and resistance among traders, so the indicator will draw them and leave a gap between periods to make it easy to distinguish when a new one started.
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 high, low and close of the previous day, week or month
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
metatrader 5: follow on instagram:the indicator shows the high, close and low of the previous day, week or month.
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: PostZigZag Close Indicator - another powerful indicator for MetaTrader 4 traders.
metatrader 5:
follow on instagram:
the indicator shows the high, close and low of the previous day, week or month. these levels are very commonly used as support and resistance among traders, so the indicator will draw them and leave a gap between periods to make it easy to distinguish when a new one started.
Also recommended: time until the bar closes - similar indicator with strong performance on MetaTrader 4.
update 1.1: added some optimizations.update 1.1.1: fixed compilation error in newer metatrader compilers.
settings:
precision:
which timeframe must be used to calculate the high, close and low of the period. this setting is required when time shift is applied, otherwise, it can be ignored. for example, if you want the indicator to
calculate the gmt 0
high, close and low for the period on a
gmt 2 broker
, you would need to set the
hour shift to -2
and
precision to h1
to allow the indicator to use the hourly chart for its calculation, it'll affect the closing value, so choose wisely.
period:
previous day, previous week or previous month, you can only choose one of them. add more instances of the indicator if want all modes drawn.
periods to calculate:
specifies how many days, weeks or months should be drawn on the chart. this way, only the relevant prices will be calculated.
hours shift:
self explanatory. be aware that it'll require
precision
to be set to at least h1.
minutes shift:
self explanatory. be aware that it'll require
precision
to be set at a multiple of the minutes shift, e.g: a 15 minutes shift requires precision to be set at least to m15.
ignore sunday:
sunday bars will be merged into monday. affects only the previous day mode.
ignore saturday:
saturday bars will be merged into friday. affects only the previous day mode.
buffer visibility:
show/hide any of the lines if required.
probe visibility:
show/hide any of the value tags.
probe size:
value tag size.
data window label:
text displayed in the data window and tool tip for each line.
important:
when timeshift and precision settings are used, the indicator may display the incorrect levels for a few seconds, this is because metatrader is downloading the required bars. so, if you use the h1 for precision, check if the bars were downloaded.
the following image shows high, close and low for: previous day(green), previous week(blue) and previous month(red). 3 instances of the indicator were attached to the chart and as you can see, only the month lines shows the value tag at the end of it(probe settings). this template can be downloaded.
You may also like: paragolic-close - excellent alternative for indicator users on MetaTrader 4.
Source Code
#property copyright "robotfx"
#property link "https://robotfx.org"
#property version "1.1"
#property strict
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 c'83,173,52'
#property indicator_color2 c'83,173,52'
#property indicator_color3 c'83,173,52'
#property indicator_style1 style_dash;
.......
⚠ 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.