Candle Closing Time Remaining LCCTRP Indicator: A Clock

Written by Dominic Walsh · Published · Last updated

The candle closing time remaining lcctrp indicator makes the clock hard to miss. One large label sits in the middle of the chart at `FontSize` `36`. It counts down to the bar close. The colour changes as time runs out.

This build ships as a compiled .ex4 for MT4 and .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 19

On screen

One large centred label carries the countdown in `FontName` `”Arial Black”`.

`ShowBackground` puts a shaded box behind it.

`ShowSymbolHeader` adds the symbol and timeframe above.

No plot buffers exist, so the data window stays empty.

Candle closing time remaining lcctrp indicator centred countdown on EURUSD H1.
Candle closing time remaining lcctrp indicator centred countdown on EURUSD H1.

From price to plot

Close time minus now

The code takes the close time of the current bar. Then it subtracts the server clock. What remains becomes the digits. Price plays no part.

Colour follows the fraction left

Divide the seconds left by the length of the bar. That gives a fraction. `ColorFresh` holds above a half. `ColorMid` covers the middle band. `ColorUrgent` takes the last quarter.

Centring is automatic

`CenterOnChart` `true` measures the chart in pixels. It then puts the label at the middle. `XOffset` `0` and `YOffset` `0` nudge it from there.

How to read the signals

The clock counts the current bar only.

Colour says the same thing as the digits, but faster.

A big centred label sits over price by design.

This is a utility, so it gives no signals.

Alert channels in this build: popup, push notification, email and sound, one message per closed bar.

Unusually, nothing here is armed out of the box. `EnableBarCloseAlert` arrives false, and so do `EnablePopup`, `EnablePushNotify`, `EnableEmail` and `EnableSound`. You therefore need two switches on before a message appears: the master and at least one route.

Every Candle Closing Time Remaining Lcctrp Indicator input

Core settings

Setting What it does Default
XOffset Horizontal offset (pixels). Horizontal nudge from centre in pixels, default `0`. 0
YOffset Vertical offset (pixels). Vertical nudge from centre in pixels, default `0`. 0
CenterOnChart Auto-center label on chart. Place the label at the chart centre, default `true`. on

Display settings

Setting What it does Default
FontSize Large font size (LCCTRP). Height of the countdown text, default `36`. 36
FontName Label font. Typeface for the label, default `”Arial Black”`. Arial Black
PanelCorner Anchor corner. Anchor corner when centring is off, default `CORNER_LEFT_UPPER`. CORNER_LEFT_UPPER
PanelAnchor Text anchor. ANCHOR_CENTER
ColorFresh > 50% bar remaining. Colour above half the bar remaining, default `clrLimeGreen`. lime green
ColorMid 25-50% remaining. gold
ColorUrgent < 25% remaining. Colour inside the final quarter, default `clrTomato`. tomato
ColorBackground Box background. black
ShowBackground Draw shaded background. Draw a shaded box behind the text, default `true`. on
ShowSymbolHeader Show symbol + timeframe header. Print the symbol and timeframe, default `true`. on

Alert settings

Setting What it does Default
EnableBarCloseAlert Alert at bar close. Message at the bar close, default `false`. off
EnablePopup (see inputs panel) off
EnablePushNotify (see inputs panel) off
EnableEmail (see inputs panel) off
EnableSound (see inputs panel) off
SoundFile (see inputs panel) alert.wav
Candle closing time remaining lcctrp indicator inputs panel with FontSize and CenterOnChart.
Candle closing time remaining lcctrp indicator inputs panel with FontSize and CenterOnChart.

Settings that fit your chart

A big clock earns its space on slower charts. EURUSD H1 is the reference chart. An hour of waiting is worth tracking. On M1 the label churns. H4 and daily make it a patience aid.

The catch

A centred label sits over price, which some chart layouts cannot spare.

Server time drives the count, so it need not match your local clock.

Every alert route ships off, so the tool stays silent until you configure it.

Copy the compiled Candle Closing Time Remaining Lcctrp Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Background reading on the method behind the Candle Closing Time Remaining Lcctrp Indicator: Time-weighted average price on Wikipedia, Meanreversion at Investopedia.

Download the Candle Closing Time Remaining Lcctrp Indicator for MT4 and MT5

The zip holds the compiled Candle Closing Time Remaining Lcctrp Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. 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.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

What does FontSize 36 give you?

A countdown you can read from across the room. That is the point of this build against a small corner readout. Shrink it if the label crowds price, or move it with `XOffset` and `YOffset`.

Does EnableBarCloseAlert work on its own?

No, and this catches people out. Every delivery route also ships false here, so switching the master on alone changes nothing. You need `EnablePopup`, `EnablePushNotify`, `EnableEmail` or `EnableSound` on as well.

What does CenterOnChart true override?

The corner anchoring. With it on, the code measures the chart and puts the label in the middle, so `PanelCorner` stops mattering. Switch it off to go back to a corner.

Why does ColorUrgent exist?

It marks the final quarter of the bar, which is when a close-based decision usually gets made. Reading a colour is faster than reading digits when you are watching more than one chart.

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 Lcctrp Indicator as one input. Always backtest before trading live.

Category: this is part of our Trend collection. Also, truly, browse more Trend for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment