OPEN-SOURCE SCRIPT
clock_sync

🕐 Clock Sync
A lightweight utility indicator that detects time synchronization issues between your local PC clock and the exchange server.
How it works:
On a 1-minute chart, the indicator compares the timestamp of the latest candle against your local system time. If the two don't match, a red clock emoji appears above the bar, alerting you to a potential desync. If your clock is in sync, nothing is displayed.
Why it matters:
Time mismatches can cause problems for traders who rely on precise execution timing, scheduled entries, or automation scripts. Even a one-minute drift can lead to unexpected behavior in time-sensitive strategies. This indicator gives you a quick visual confirmation that your clock is in sync with the exchange.
Settings:
- 24/7 Mode: Check this box to run the sync check continuously, ignoring the time window.
- Timezone: Select your local timezone from a list of major zones worldwide. Defaults to America/Los_Angeles.
- Start Hour / Start Minute: The time the sync check becomes active. Defaults to 00:00 (midnight).
- End Hour / End Minute: The time the sync check stops. Defaults to 06:28 AM.
- The time window supports overnight ranges (e.g., start at 22:00, end at 06:00).
Usage:
- Apply to any 1-minute chart.
- Configure your timezone and the hours you want monitoring active.
- If no emoji appears, your clock is synced or you are outside the active window.
- If a red clock label appears on the latest bar, your local time is out of sync with the exchange.
- Enable 24/7 Mode if you want continuous monitoring regardless of time of day.
Notes:
- Only active on 1-minute timeframes.
- Only evaluates the most recent (last) bar.
- Outside the configured time window, the indicator does nothing.
- Useful as a diagnostic tool alongside automated or time-based trading systems.
A lightweight utility indicator that detects time synchronization issues between your local PC clock and the exchange server.
How it works:
On a 1-minute chart, the indicator compares the timestamp of the latest candle against your local system time. If the two don't match, a red clock emoji appears above the bar, alerting you to a potential desync. If your clock is in sync, nothing is displayed.
Why it matters:
Time mismatches can cause problems for traders who rely on precise execution timing, scheduled entries, or automation scripts. Even a one-minute drift can lead to unexpected behavior in time-sensitive strategies. This indicator gives you a quick visual confirmation that your clock is in sync with the exchange.
Settings:
- 24/7 Mode: Check this box to run the sync check continuously, ignoring the time window.
- Timezone: Select your local timezone from a list of major zones worldwide. Defaults to America/Los_Angeles.
- Start Hour / Start Minute: The time the sync check becomes active. Defaults to 00:00 (midnight).
- End Hour / End Minute: The time the sync check stops. Defaults to 06:28 AM.
- The time window supports overnight ranges (e.g., start at 22:00, end at 06:00).
Usage:
- Apply to any 1-minute chart.
- Configure your timezone and the hours you want monitoring active.
- If no emoji appears, your clock is synced or you are outside the active window.
- If a red clock label appears on the latest bar, your local time is out of sync with the exchange.
- Enable 24/7 Mode if you want continuous monitoring regardless of time of day.
Notes:
- Only active on 1-minute timeframes.
- Only evaluates the most recent (last) bar.
- Outside the configured time window, the indicator does nothing.
- Useful as a diagnostic tool alongside automated or time-based trading systems.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.