Candle Timer Countdown for MetaTrader 5
Info
The Candle Timer Countdown for MetaTrader 5 is a Indicator for MetaTrader 5 that countdown to the close of the current candle on xauusd, eurusd, or any chart, displayed next to the price or in a fixed corner. The timer synchronizes with the broker's server time (TimeTradeServer), ensuring accuracy even when the market is inactive.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Candle Timer Countdown for MetaTrader 5
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
Countdown to the close of the current candle on XAUUSD, EURUSD, or any chart, displayed next to the price or in a fixed corner.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: Heikin Ashi Candlesticks - another powerful indicator for MetaTrader 5 traders.
Countdown to the close of the current candle on XAUUSD, EURUSD, or any chart, displayed next to the price or in a fixed corner.Also recommended: HTF Candles (ICT Power of Three): Higher Timeframe Candles Displayed - similar indicator with strong performance on MetaTrader 5.
The timer synchronizes with the broker's server time (TimeTradeServer), ensuring accuracy even when the market is inactive.
The display format dynamically adjusts to the chart's timeframe: minutes and seconds for intraday charts, hours, minutes, and seconds for H1 and above, and days plus hours for D1 charts and higher.
Optional features include displaying the current spread next to the timer and dynamically changing the text color in the final seconds of a candle.
An optional pop-up or sound alert can be configured to trigger a set number of seconds before the candle closes. The indicator operates efficiently as a single text object, updated approximately every half second, without using canvas or buffers.
Settings
Display Settings
Positioning: Choose to display the timer next to the current price (moves with the bid) or in a fixed corner of the chart.
Corner Selection: If using corner mode, specify the corner (e.g., top right).
Horizontal Offset: Adjusts the horizontal position when in corner mode.
Vertical Offset: Adjusts the vertical position when in corner mode.
Price Mode Offset: Determines how far from the last candle the timer appears when positioned next to the price.
Show Spread: Enable or disable the display of the current spread (in points) after the time.
Show Symbol and Timeframe: Enable or disable the display of the symbol and timeframe (e.g., EURUSD M15) before the time.
Font Type: Select the font for the timer text.
Font Size: Set the size of the timer font.
Text Color: Choose the default color for the timer text.
Alert Text Color: Specify the color for the text during the final seconds.
Last Seconds for Color Change: Define the number of seconds before the close when the text color changes (0 to disable).
Alert Settings
Alert Timing: Set the number of seconds before the candle close to trigger an alert (0 to disable). An alert is issued once per candle.
Pop-up Alert: Enable or disable pop-up alerts.
Sound Alert: Enable or disable sound alerts.
Sound File: Specify the sound file to use for alerts (e.g., alert.wav).
Indicator Specific Settings
Object Prefix: Assign a unique prefix for the timer object. This is used to cleanly remove the indicator and its objects. To display multiple timers on a single chart, assign a distinct prefix to each instance.
System Requirements
Requires MetaTrader 5.
Compatible with any symbol, timeframe, and account type.
This is an indicator and does not perform trading operations.
The countdown precisely matches your broker's candle timings, as it relies on the trade server's clock, not your computer's.
During weekends or outside trading sessions, when the last candle does not close, the timer will stop at 00:00 and resume upon the opening of the next candle.
Customization and Usage
Apply this indicator to charts that you actively trade, such as M5 or M15 for XAUUSD, EURUSD, GBPUSD, US30, NAS100, or BTCUSD, especially when entering trades at the opening of a new candle.
Scalpers can benefit by setting alerts 5-10 seconds before the close, reducing the need to constantly monitor the clock.
Traders using Smart Money Concepts or price action strategies can use the countdown to anticipate the confirmation of a Break of Structure (BOS) or Change of Character (CHoCH) at the candle close.
The efficient update routine allows the time-left calculation to be integrated into custom Expert Advisors (EAs) or trading panels.
Source Code Information
The indicator is open source, allowing for free use, modification, and development of custom versions.
Latest updates and new tools are announced on the MQL5 channel.
Questions, suggestions, and shared backtests are welcomed in the Xander Lab group.
Additional tools are available on the developer's profile.
Usage is at your own risk.
Related Tools
Smart Money Concepts BOS CHoCH
Partial Close Multi TP Manager
Basket Pair Closer
XPro Trade Panel
XANDER Grid XAUUSD
Changelog
v1.0 - 2026-10-25 - Initial release
You may also like: Vela Mayor MTF: Higher Timeframe Candle Overlay for MT5 - excellent alternative for indicator users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 0
#property indicator_plots 0
enum ENUM_XP_PLACE
{
XP_PLACE_PRICE = 0,
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.