by MQL5
This is a Multi-Timeframe (MTF) Highs & Lows indicator for MetaTrader 5. It plots previous period highs and lows (Daily, Weekly, Monthly, and optionally 4H/8H) directly on your chart, along with the current developing daily high/low.
Core Features
1. High/Low Levels Displayed
Current Daily (ongoing day) — labeled as CDH/CDL
Previous Daily — labeled as PDH/PDL
Previous Weekly — labeled as PWH/PWL
Previous Monthly — labeled as PMH/PML
4 Hour (optional) — P4HH/P4HL
8 Hour (optional) — P8HH/P8HL
2. Visual Elements
Horizontal lines for each high and low (customizable color, style, width).
Colored background boxes showing the full range of each period.
Price Labels on the right side showing:
Price value
Distance from current price as percentage (e.g., (-12.4%) from high)
Optional Touch Count [T:n] — how many times price touched the level
Optional Bars at Level [B:n] — time spent near the level
Smart label merging: When multiple levels (e.g., Daily + Weekly high) are very close, they combine into one clean multi-line label (e.g., PDH/PWH).
Breakout Markers: Small arrows appear when price breaks a previous high or low.
Line extension to the right (adjustable bars).
3. Trading Tools & Alerts
Breakout alerts (sound + popup + push notification) for:
Daily, Weekly, Monthly, 4H, 8H highs/lows
Touch count and time-at-level statistics (helpful for identifying strong S/R zones).
4. Customization
Full control over colors for each timeframe.
Show/hide individual timeframes, boxes, labels, markers, etc.
Adjustable label and marker sizes.
Thresholds for touch detection and time-at-level.
Best Use Cases
Swing/Intraday Trading: Quickly see key higher-timeframe support and resistance on lower timeframes.
Breakout Trading: Visual and audible alerts when price breaks daily/weekly/monthly levels.
Range Analysis: See how price is positioned within previous period ranges.
Clean multi-timeframe confluence spotting (when daily + weekly + monthly levels cluster).