High and Low Daily Levels Indicator MT5
- Indicateurs
-
Martin Koprla
System Architecture & Algorithmic Diagnostics
I specialize in technical analysis optimization, custom MQL development, and high-performance trading utilities. My approach strictly rejects retail marketing hype, black-box systems, and over-optimized curve-fitting. - Version: 1.1
High/Low Daily Levels is a robust, lightweight indicator for MetaTrader 5 that plots the High and Low of the trading day as clean horizontal lines directly on your chart. Levels are read from the D1 series, so they are identical on every chart timeframe, from M1 to D1.
Whether you trade breakouts, trend continuations or mean reversion around key session boundaries, the indicator gives you precise visual references without cluttering your workspace.
Key Features:
* Three display modes: Current Day (updates in real time as new highs/lows form), Previous Day (fixed reference levels of the last completed day), or both at once.
* No overlap: previous-day levels are clipped at the start of the current day, so the two sets of lines never collide. Optionally they can be extended to the right edge.
* Separate styling: color, line style and width can be set independently for the current and the previous day.
* Efficient rendering: the chart is redrawn only when a level actually changes; ordinary intrabar ticks cost a single comparison. Previous-day data is cached and refreshed once per day.
* Reliable on startup: if the D1 history is not yet synchronized (e.g. first launch or a closed market at the weekend), the indicator retries automatically instead of leaving the chart empty.
* Works on D1 and higher: an optional setting ensures a visible line segment even when a day spans a single bar.
* Clean removal: all drawn lines are cleared when the indicator is removed from the chart.
Input Parameters:
* Display mode: Current day only / Previous day only / Current + previous day.
* Previous day: extend past the day start (default: false).
* Draw sessions that span a single bar (default: true).
* Current day: color, style, width (default: DimGray, Dash, 1).
* Previous day: color, style, width (default: SlateGray, Solid, 1).
Notes:
* The trading day follows the broker's server time, i.e. the D1 candle of your broker.
* Works on any symbol: Forex, metals, indices, stocks and CFDs.
* No DLLs, no external files.
Ideal for day traders, breakout traders and anyone who needs reliable daily reference levels in MetaTrader 5.
