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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.