The candle closing time remaining cctr indicator puts a live countdown on your chart. A corner label shows how long the current bar has left. Traders who act on bar close use it to time the click. Nothing draws over the candles themselves.
This build ships as candle-closing-time-remaining-cctr-indicator-mt5-indicator-forexmt4systems.ex4 for MT4 and candle-closing-time-remaining-cctr-indicator-mt5-indicator-forexmt4systems.ex5 for MT5; the screenshots below come from EURUSD H1.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 0 |
| Alerts | popup, push notification, email, sound |
| Inputs | 14 |
What the Candle Closing Time Remaining CCTR Indicator draws on the chart
One chart label does the work. LabelPrefix starts the text and the timer follows it. Charts above an hour show hours, minutes and seconds. Faster charts drop the hour block.
The label also names the chart period in brackets. A screenshot then tells you where it came from. LabelColor paints the text dodger blue. LabelFontName sets Consolas, a fixed-width face, so the digits hold still as they tick.
No buffer draws on price. The build declares one hidden buffer to keep the platform happy and leaves your candles untouched.

How the Candle Closing Time Remaining CCTR Indicator calculates its values
Working out the time left
Bar timing drives everything. The code reads the open time of the current bar. It then adds the bar length in seconds. Take away the server clock and you get the time left, which never drops below zero. The text updates on every tick.
Formatting the text
Seconds split into hours, minutes and seconds. Above one hour the text shows all three parts. Below that it drops the hour block to save space. LabelPrefix sits in front, and the shipped wording reads Closes in.
Placing the label
LabelCorner picks the anchor and defaults to 1, the top right. LabelXDistance defaults to 20 pixels and LabelYDistance to 24. Every property refreshes on each pass, so a change lands on the next tick. Anyone reading candlestick charts wants that text in the same spot each day.
How to read the signals
Read it as a clock, not a signal. The number counts down to the close of the bar in front of you. It resets the moment a new bar opens.
Bar-close traders use the last few seconds to check their level and place the order. The timer removes guesswork on charts whose bars close on odd minutes.
The chart period in brackets guards against a common mistake. Two windows side by side stay easy to tell apart.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
EnableAlerts and EnablePopup start on. Push, e-mail and sound all start off, and SoundFile points at alert.wav. The message marks a new bar rather than a trade setup, and it fires once per bar.
Every Candle Closing Time Remaining CCTR Indicator input
Display settings
| Setting | What it does | Default |
|---|---|---|
LabelName |
OBJ_LABEL name. Object name the label uses; change it only when another tool already claims that name. | CCTR_Label |
LabelCorner |
0=TL 1=TR 2=BL 3=BR. Chart corner for the text, running from top left through to bottom right. | 1 |
LabelXDistance |
X offset (px). Horizontal offset in pixels from the chosen corner. | 20 |
LabelYDistance |
Y offset (px). Vertical offset in pixels; raise it when the label collides with the price scale. | 24 |
LabelColor |
text colour. Text colour, dodger blue out of the box; pick something that contrasts with your background. | dodger blue |
LabelFontSize |
font size (pt). Point size of the countdown text; larger sizes read better on a big monitor. | 14 |
LabelFontName |
monospaced for stable layout. Font family; keep a monospaced face so the digits hold their position. | Consolas |
LabelPrefix |
prefix text. Words in front of the countdown; shorten it for a compact corner. | Closes in |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
(see inputs panel) | on |
EnablePopup |
(see inputs panel) | on |
EnablePushNotify |
(see inputs panel) | off |
EnableEmail |
(see inputs panel) | off |
EnableSound |
(see inputs panel) | off |
SoundFile |
(see inputs panel) | alert.wav |

Settings that fit your chart
A bar clock suits any symbol, since it measures the chart rather than the market. The screenshot uses EURUSD H1, where the timer runs from one hour down to zero. On M1 the text changes every second and turns into a blur. Daily charts make it a slow reference you check once a day.
When the Candle Closing Time Remaining CCTR Indicator fails
The timer trusts your terminal clock. A clock offset or a dead link leaves the figure drifting. The label keeps counting even when no ticks arrive.
Weekends and holidays break the maths. The code adds one bar length to the last open time. A Friday close then leaves a timer that runs out long before the next bar starts.
The label lives on one chart only. Opening a second window means loading the build there as well, since the two windows keep separate copies.
Quiet markets freeze the digits. Updates ride on ticks, so a thin session leaves the text stale for several seconds.
Copy candle-closing-time-remaining-cctr-indicator-mt5-indicator-forexmt4systems.ex4 into MQL4/Indicators and candle-closing-time-remaining-cctr-indicator-mt5-indicator-forexmt4systems.ex5 into MQL5/Indicators, then restart the terminal and drag the Candle Closing Time Remaining CCTR Indicator onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.
Download the Candle Closing Time Remaining CCTR Indicator for MT4 and MT5
The zip candle-closing-time-remaining-cctr-indicator-mt5-indicator-forexmt4systems.zip holds candle-closing-time-remaining-cctr-indicator-mt5-indicator-forexmt4systems.ex4, candle-closing-time-remaining-cctr-indicator-mt5-indicator-forexmt4systems.ex5 and a short README, compiled files only. Enter your email below and the download link arrives in your inbox.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
FAQ
What does LabelPrefix change on the countdown?
It sets the words in front of the timer. The shipped wording reads Closes in. After that comes the time left and the chart period in brackets. Shorten it to a couple of letters when you run several charts on one screen.
Can I move the timer with LabelCorner and LabelXDistance?
Yes. LabelCorner accepts four values, and the build starts in the top right. Top left, bottom left and bottom right cover the other three. LabelXDistance and LabelYDistance then nudge the text in pixels. That helps when the price scale sits under it.
Does the CCTR label update between ticks on a quiet EURUSD H1 chart?
No. The text refreshes inside the routine the terminal calls on each tick. During a thin stretch the digits sit still for several seconds and then jump. Moving the mouse forces no update. Treat the reading as rough near the close.
Why does the alert fire when no trade signal exists?
The message marks the start of a new bar. Traders use it as a nudge that the last candle closed. It makes no call on direction. Switch EnableAlerts off when you only want the timer, since the label keeps working without it.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Candle Closing Time Remaining CCTR Indicator as one input. Always backtest before trading live.
Category: this is part of our Trend collection. Also, browse more Trend for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- Learn more about the underlying method in Real-time economy on Wikipedia.
- For wider market background, see Fibonacci Time Zones at StockCharts ChartSchool.
