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)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.
Author: Opengates Success International