Loading…

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

SettingDefaultWhat it does
Show m1trueShow M1 row
Show m5trueShow M5 row
Show m15trueShow M15 row
Show m30trueShow M30 row
Show h1trueShow H1 row
Show h4trueShow H4 row
Show d1trueShow D1 row
Show w1falseShow W1 row
Near close seconds15Highlight a row when this close or less remains
Normal colorclrSilverRow colour, plenty of time left
Near close colorclrOrangeRedRow colour, about to close
Panel x10Panel horizontal offset in pixels
Panel y20Panel vertical offset in pixels
Panel font size9Panel font size
Refresh seconds1Panel refresh interval

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: Multi-Timeframe (MTF) · MT4 Indicator · MQL4 Source Code

MetaTrader 4 & 5 indicators · PolyMaria