Indicators: Candle Closing Time Remaining (CCTR) Version 3

 

Candle Closing Time Remaining (CCTR) Version 3:

Candle Closing Time Remaining (CCTR) is an indicator which displays the remaining time for an open candle to be closed.


Features

  • Changeable color and size.
  • Changeable location (Corners).
  • Display server time (on OR off) [v2].
  • Play an alert sound when the candle is going to close [v3].
  • Clean code.


Screen Shots

The indicator will be shown as follows in the weekly time frame:

Weekly timeframe

The indicator will be shown as follows in the top-left location:

4H timeframe


Usability Tips

You can change the location of display time, by setting the location input field as follows:

  • Set location 'Top-Left': to be displayed in comment in the top-left part of the chart.
  • Set location 'Top-Right': to be displayed in the top-right part of the chart.
  • Set location 'Bottom-Left': to be displayed in the bottom-left part of the chart.
  • Set location 'Bottom-Right': to be displayed in the bottom-right part of the chart.

You can on or off server time displaying by setting displayServerTime as follows: [v2]

  • Set 'On': display server time.
  • Set 'Off': don't display server time.

You can on or off alert sound playing by setting playAlert as follows: [v3]

  • Set 'On': play a sound when candle is going to close in less than 5 seconds.- set 'Off': don't play sound.

Also you can set your favorite sound as alert by enter it's name on customAlertSound: [v3]

  • Note that, the file must be located in <terminal_directory<>>\Sounds or its sub-directory. Only WAV files are played.
  • If you leave the field empty, the default sound will be played.


Change log

  • Display candle closing time remaining. [v1]
  • Adding an input field to display server time. [v2]
  • Play an alert sound when the candle is going to close. [v3]
  • Change input types to readable strings. [v3]
  • Shorten the name of the indicator in comments area. [v3]

MetaTrader 5 version: https://www.mql5.com/en/code/20185.

Author: Foad Tahmasebi

 
It is an excellent work

the next version could have alerts

thanks for your contribution!
 

Is it possible to display only the countdown timer, and none of the text? 

I know what it is for, do not seen explanation.

However, when I tile vertically, on my laptop, these sorts of indicators do not have sufficient space to show the number changing because too wide.  

 

Version 3 of CCTR

The new version of CCTR indicator is ready with your requested features and fixes.

thank you @ekud87 and @timmbits

 

Hello,

I'm new to MT5. Can you tell me how to start CCTR indicator?

It is not showing in my indicators list 

Thanks

 

Thank you so very much "When you help others you better yourself!!!"

 

Can I ask if it is possible to have a configurable alert in that it would have a parameter called SoundAlertSecondsLeft which would accept a number in seconds that would trigger an alert wav file? Thus instead of an alert at 5 seconds to close, this timeframe would be configurable. This is so that I am reminded to review the charts with say 45 seconds to go and I can place trades just slightly before the candle close. This works well with CCI indicators since the direction of the indicator changes little in the last few seconds during quiet times

 
Foad Tahmasebi:

Version 3 of CCTR

The new version of CCTR indicator is ready with your requested features and fixes.

thank you @ekud87 and @timmbits


Hello Foad,

Can you share the CCTR (v3)


rgds

3rrickson

 
Could you write it for Meta Trader 5, please?
 
831745:

Hello,

I'm new to MT5. Can you tell me how to start CCTR indicator?

It is not showing in my indicators list 

Thanks

Hi,

You can download MT5 version from here: https://www.mql5.com/en/code/20185

Download the MetaTrader 5 trading platform for free
Download the MetaTrader 5 trading platform for free
  • www.metatrader5.com
Download MetaTrader 5 and start trading Forex, Stocks, Futures and CFDs! Rich trading functionality, technical and fundamental market analysis, copy trading and automated trading are all exciting features that you can access for free right now! MetaTrader 5 offers a wide variety of functions for the modern forex and exchange market trader: Full...
 
3rrickson:

Hello Foad,

Can you share the CCTR (v3)


rgds

3rrickson

Hi,

This code is already version 3 

Reason: