OPEN-SOURCE SCRIPT
Candlist FX - Candle Time & Countdown

Displays the current candle's open time and a live countdown to candle close, with the timeframe label formatted MT4-style (M1, M5, M15, H1, H4, D1, W1, M1).
This indicator displays a compact info table showing:
- Timeframe – formatted in a broker-style convention (M for minutes, H for hours, D for daily, W for weekly, M for monthly)
- Candle Open – the opening time of the current candle, in your selected timezone
- Closing In – a live countdown showing how much time remains until the current candle closes
HOW IT WORKS
The script first detects the chart's active timeframe (seconds, minutes, hours, daily, weekly, or monthly) and uses that to choose the most readable countdown format:
- Daily/Weekly/Monthly → shown as days/hours/minutes
- Hourly timeframes (60min multiples, e.g. H1–H4) → shown as H:MM:SS
- Minute/second timeframes → shown as M:SS
The countdown is calculated using TradingView's built-in `time_close` and `timenow` variables, so it stays accurate across any symbol or timeframe without manual calculation.
NOTE ON BACKTESTING
The countdown only reflects real elapsed time, so it's only meaningful on the live, currently forming candle. On historical bars (backtesting, Bar Replay, or scrolled-back charts) the countdown cell will show "—" instead of a number, since there's no real-time clock ticking on closed historical candles. The candle open time, however, is always accurate on every bar.
SETTINGS
- Table position (Top/Bottom, Left/Right)
- Text size
- Timezone for candle open time
- Custom colors for background, accent, and countdown text
This is a simple utility tool intended to help traders quickly see how much time is left before the current candle closes, useful for scalping, session timing, and price action entries near candle close.
This indicator displays a compact info table showing:
- Timeframe – formatted in a broker-style convention (M for minutes, H for hours, D for daily, W for weekly, M for monthly)
- Candle Open – the opening time of the current candle, in your selected timezone
- Closing In – a live countdown showing how much time remains until the current candle closes
HOW IT WORKS
The script first detects the chart's active timeframe (seconds, minutes, hours, daily, weekly, or monthly) and uses that to choose the most readable countdown format:
- Daily/Weekly/Monthly → shown as days/hours/minutes
- Hourly timeframes (60min multiples, e.g. H1–H4) → shown as H:MM:SS
- Minute/second timeframes → shown as M:SS
The countdown is calculated using TradingView's built-in `time_close` and `timenow` variables, so it stays accurate across any symbol or timeframe without manual calculation.
NOTE ON BACKTESTING
The countdown only reflects real elapsed time, so it's only meaningful on the live, currently forming candle. On historical bars (backtesting, Bar Replay, or scrolled-back charts) the countdown cell will show "—" instead of a number, since there's no real-time clock ticking on closed historical candles. The candle open time, however, is always accurate on every bar.
SETTINGS
- Table position (Top/Bottom, Left/Right)
- Text size
- Timezone for candle open time
- Custom colors for background, accent, and countdown text
This is a simple utility tool intended to help traders quickly see how much time is left before the current candle closes, useful for scalping, session timing, and price action entries near candle close.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。