The Candle Timer indicator for MT4 shows how much time is left before the current candle closes, along with the live spread and, if you want it, the broker’s server time. It refreshes every second on a timer, so the countdown keeps moving even when no new ticks arrive.
MetaTrader 4 has no built-in candle countdown. If you trade candle closes, wait for confirmation before entering, or simply want to know whether that H1 candle has 3 minutes or 40 minutes left, this free tool puts the answer right next to price.
What Is the Candle Timer Indicator?
A candle timer, also called a bar timer or candle countdown, is a small information display. It does not analyze price and gives no buy or sell signals. Its job is to answer three practical questions while you trade:
- How long until this candle closes?
- What is the spread right now?
- What time is it on the broker’s server?
Those questions matter more than they seem. Many strategies only act on closed candles, including every arrow indicator on this site that is marked non-repainting. Knowing exactly when the candle closes lets you be at the screen for it. The spread matters for scalping and for news times, when it can widen sharply.
How the Indicator Works
Countdown
The close time of the current candle is its open time plus the length of the timeframe. On the monthly chart the code uses the first day of the next calendar month instead, since months are not all the same length. The time left is that close time minus the current server time.
MT4 only updates its server time when a new price tick arrives, which would make a normal countdown freeze in quiet markets. To avoid that, the indicator measures the difference between the server time and your computer’s clock every time a fresh tick comes in. Between ticks it adds that difference to your computer’s clock, which keeps counting each second. A one-second timer (EventSetTimer) redraws the readout even when price is not moving.
Two honest edge cases are shown on screen rather than hidden:
- “Waiting for tick” appears right after you load the indicator until the first new tick arrives, because the clock offset cannot be measured without one. During the weekend this message stays up.
- “00:00 (waiting for new bar)” appears if the countdown reaches zero but no tick has arrived yet. MT4 only opens a new candle on the first tick of the new period.
Spread
The spread is read from the terminal’s current market information for the symbol, in points. In pip mode it is converted using the usual rule: on 5-digit and 3-digit quotes one pip is 10 points, so a 12-point spread shows as 1.2 pips. On 4-digit and 2-digit quotes one pip equals one point.
Server time
When ShowServerTime is on, the same estimated server time used for the countdown is shown in hours, minutes and seconds. This is handy because chart times in MT4 are in server time, which is often different from your local time.
What the readout looks like
In near-price mode the indicator writes a single line that starts a few bars to the right of the last candle and follows the bid price up and down, for example “<- 04:27 | Spread 1.2 pips”. In corner mode it shows up to three separate lines: “Candle closes in 04:27”, then the spread, then the server time if enabled. When an hour or more remains the countdown adds hours, and when a day or more remains it adds days, such as “3d 06:12:45”. Lines you switch off are removed rather than left blank.
Key Features
- Live countdown to the candle close on every timeframe from M1 to MN1, including a days counter for weekly and monthly candles.
- Timer-based refresh every second, so it does not freeze between ticks.
- Current spread in pips or points, with correct handling of 5- and 3-digit brokers.
- Optional broker server time.
- Two layouts: one line next to the current price, or stacked lines in any chart corner.
- Color change during the last seconds of a candle (10 seconds by default).
- Removes all of its chart objects and stops its timer when you remove it.
How to Trade With the Candle Timer Indicator
Trading candle closes
If your rules say “enter after the candle closes above the level”, the timer tells you when to check. On M15 and H1 this is the main reason traders install a countdown. Pair it with a closed-candle signal tool such as the 3 EMA Crossover indicator, whose arrows only print after the candle closes.
Scalping and spread control
Scalpers often set a maximum spread they are willing to pay. With the spread on screen, you can skip entries when it widens, for example around rollover or news releases. For a fuller spread history, see the Spread Watch indicator, and use the pip value calculator to see what a given spread costs per lot.
Session timing
The server clock makes it easier to line up session opens and daily candle closes with your local time. The Trading Sessions indicator draws the session boxes themselves.
Best Settings
- Near-price mode keeps your eyes on the chart and works well on uncluttered charts.
- Corner mode with CORNER_RIGHT_LOWER or CORNER_LEFT_UPPER is cleaner when you run several indicators or use the one-click trading panel.
- WarnSeconds 10 to 30 gives you a visual cue before the close on M1 to M15. Set it higher on H1 and above if you want more warning.
- Set SpreadInPips to false if you think in points, for example on indices or metals where pip conventions vary.
Does It Repaint?
No. The Candle Timer draws no signals, arrows or historical values, so there is nothing that could change after the fact. It is an information display that refreshes once per second. Learn more about which indicators can repaint in what repainting is.
How to Install
Copy “candle-timer-indicator-mt4.mq4” to File > Open Data Folder > MQL4 > Indicators, restart MT4 or refresh the Navigator, then drag it onto a chart. Full instructions are in how to install indicators in MT4. Like all custom indicators it runs on the desktop terminal only, since the MT4 mobile apps cannot load custom indicators.
Related Indicators
- Candle Pips indicator labels each candle with its size in pips.
- Position Size Calculator indicator works out your lot size on the chart.
- Spread Watch indicator keeps an eye on spread changes.
Browse more informational indicators. A timer helps with discipline but does not improve a strategy by itself, and trading on margin carries a high level of risk.
