Multi Timeframe Bar Countdown
A trader working an M15 setup often also wants to know how close the H1 or H4 bar is to closing, without switching charts or opening a second window to check. This indicator lists up to eight timeframes (M1 through W1, each individually togglable) with a live "time to bar close" countdown for each, refreshed every second regardless of whether the chart's own symbol is actively ticking. Rows that are within a configurable number of seconds of closing are highlighted, so a trader watching a multi-timeframe confluence setup can see at a glance which timeframe is about to print a new bar. Notes and limitations Each timeframe's countdown is computed from that timeframe's own most recent bar open time plus its fixed period length - it does not require that timeframe's chart to be open anywhere, only that the platform has history for the symbol on it, which is loaded automatically the first time it is requested. On a symbol/timeframe combination with no history yet, the row may briefly show an incorrect countdown until the platform finishes loading that series; this is a one-time startup gap, not a recurring issue.
Indicator · MT4 · v1.0 · Free
About Multi Timeframe Bar Countdown
Multi Timeframe Bar Countdown is an indicator for MetaTrader 4. It has 15 settings, such as Show m1, Show m5 and Show m15. MQL source code included.
Files in the download: MultiTimeframeCountdown.mq4, MultiTimeframeCountdown.txt.
Settings
| Setting | Default | What it does |
|---|---|---|
| Show m1 | true | Show M1 row |
| Show m5 | true | Show M5 row |
| Show m15 | true | Show M15 row |
| Show m30 | true | Show M30 row |
| Show h1 | true | Show H1 row |
| Show h4 | true | Show H4 row |
| Show d1 | true | Show D1 row |
| Show w1 | false | Show W1 row |
| Near close seconds | 15 | Highlight a row when this close or less remains |
| Normal color | clrSilver | Row colour, plenty of time left |
| Near close color | clrOrangeRed | Row colour, about to close |
| Panel x | 10 | Panel horizontal offset in pixels |
| Panel y | 20 | Panel vertical offset in pixels |
| Panel font size | 9 | Panel font size |
| Refresh seconds | 1 | Panel refresh interval |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: Multi-Timeframe (MTF) · MT4 Indicator · MQL4 Source Code