If you're trading on MetaTrader 4, you know how crucial it is to keep an eye on your candles. Enter the Candle Closing Time Remaining (CCTR) indicator—your new best friend that shows you how much time is left before your current candle closes.
Features You'll Love
- Customizable colors and sizes to suit your style.
- Flexible positioning—choose where it appears on your chart.
- Option to display server time—toggle it on or off with ease.
- Get alerted with sound when your candle is about to close.
- Designed with clean, efficient code for a smooth experience.
Take a Look
Here's how the indicator appears in the weekly timeframe:

And here’s how it looks when placed in the top-left corner:

Usability Tips
Want to tweak the display location? Just adjust the location input field:
- Top-Left: Shows time in the top-left corner of your chart.
- Top-Right: Displays in the top-right corner.
- Bottom-Left: Appears in the bottom-left corner.
- Bottom-Right: Sits in the bottom-right corner.
You can also manage server time visibility by toggling the displayServerTime option:
- On: Displays server time.
- Off: Hides server time.
For alert sounds, use the playAlert setting:
- On: Plays a sound when the candle closes in under 5 seconds.
- Off: No sound will play.
Feel free to set your favorite sound for alerts by entering its name in the customAlertSound field:
- Make sure the sound file is in the <terminal_directory>/Sounds folder or its sub-directory. Only WAV files work!
- If you leave it blank, the default sound will play.
Version History
- Version 1: Displayed candle closing time remaining.
- Version 2: Added an option to show server time.
- Version 3: Introduced alert sounds for candle closures.
- Version 3: Improved input types for better readability.
- Version 3: Shortened the indicator name in the comments area.
Check out the MetaTrader 5 version here: https://www.mql5.com/en/code/20185.

Comments 0