Indicators: OnChart Candle Countdown Clock

 

OnChart Candle Countdown Clock:

On-Chart Candle Countdown Clock is a simple indicator created to display the countdown timing of the last candle on any time frame.

OnChart Candle Countdown Clock

Author: Opengates Success International

 
   datetime candleClose = iTime(_Symbol, _Period, 0) + PeriodSeconds(_Period);
   int timeLeft = (int)(candleClose - TimeCurrent());

Just like numerous countdown timers in the code base, if there are no incoming ticks, the clock does not update.

See my countdown timer
          Indicators: Zero Lag Timer - Indices - Articles, Library comments - MQL5 programming forum #8 (2017)