OPEN-SOURCE SCRIPT

Candlist FX - Candle Time & Countdown

393
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.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.