OPEN-SOURCE SCRIPT
Aktualisiert

Digital Clock with Market Status and Alerts

2 432
Digital Clock with Market Status and Alerts - 日本語解説は下記

Overview:
The Digital Clock with Market Status and Alerts indicator is designed to display the current time in various global time zones while also providing the status of major financial markets such as Tokyo, London, and New York. This indicator helps traders monitor the open and close times of different markets and alerts them when a market opens. Customizable options are provided for table positioning, background, text colors, and font size.

Key Features:
Real-Time Digital Clock: The indicator shows the current time in your selected time zone (Asia/Tokyo, America/New_York, Europe/London, Australia/Sydney). The time updates in real-time and includes hours, minutes, and seconds, providing a convenient and accurate way to monitor time across different trading sessions.

Global Market Status: Displays the open or closed status of major financial markets.
・Tokyo Market: Open from 9:00 AM to 3:00 PM (JST).
・London Market: Open from 16:00 to 24:00 during summer time and from 17:00 to 1:00 during winter time (JST).
・New York Market: Open from 21:00 to 5:00 during summer time and from 22:00 to 6:00 during winter time (JST).

Customizable Display:
・Background Color: The indicator allows you to set the background color for the clock display, while the leftmost empty cell can be independently customized with its own background color for table alignment.
・Clock and Market Status Colors: Separate color options are available for the clock text, market status during open, and market status during closed periods.
・Text Size: You can adjust the size of the text (small, normal, large) to fit your preferences.
・Table Position: You can position the digital clock and market status table in different locations on the chart: top left, top center, top right, bottom left, bottom center, and bottom right.

Alerts for Market Opening: The indicator will trigger alerts when a market (Tokyo, London, or New York) opens, notifying traders in real-time. This can help ensure that you don't miss any important market openings.

How to Use:
Setup:
Apply the Indicator: Add the Digital Clock with Market Status and Alerts indicator to your chart. Customize the time zone, text size, background colors, and table position based on your preferences.
Monitor Market Status: Watch the market status displayed for Tokyo, London, and New York to keep track of market openings and closings in real-time.
Receive Alerts: The indicator provides built-in alerts for market openings, helping you stay informed when a key market opens for trading.
Time Monitoring:
・Real-Time Clock: The current time is displayed with hours, minutes, and seconds for accurate tracking. The clock updates every second and reflects the selected time zone.
・Global Time Zones: Choose your desired time zone (Tokyo, New York, London, Sydney) to monitor the time most relevant to your trading strategy.

Market Status:
・Tokyo Market: The status will display "Tokyo OPEN" when the Tokyo market is active, and "Tokyo CLOSED" when it is outside of trading hours.
・London Market: Similarly, the indicator will show "London OPEN" or "London CLOSED" depending on whether the London market is currently active.
・New York Market: The New York market status follows the same structure, showing "NY OPEN" or "NY CLOSED."

Customization:
・Table Positioning: Easily move the table to the desired location on the chart to avoid overlap with other chart elements. The leftmost empty cell helps with alignment.
・Text and Background Color: Adjust the text and background colors to suit your personal preferences. You can also set independent colors for open and closed market statuses to easily distinguish between them.

Cautions and Disclaimer:
・Indicator Modifications: This indicator may be updated without prior notice, which could change or remove certain features.
・Trade Responsibility: This indicator is a tool to assist your trading, but responsibility for all trades remains with you. No guarantee of profit or success is implied, and losses can occur. Use it alongside your own analysis and strategy.


Digital Clock with Market Status and Alerts - 解説と使い方

概要:
Digital Clock with Market Status and Alerts インジケーターは、さまざまな世界のタイムゾーンで現在の時刻を表示し、東京、ロンドン、ニューヨークなどの主要な金融市場のステータスを提供します。このインジケーターにより、複数の市場のオープンおよびクローズ時間をリアルタイムで監視でき、市場がオープンする際にアラートを受け取ることができます。テーブルの位置、背景色、テキストカラー、フォントサイズなどのカスタマイズが可能です。

主な機能:
リアルタイムデジタル時計: 選択したタイムゾーン(東京、ニューヨーク、ロンドン、シドニー)の現在時刻を表示します。リアルタイムで更新され、時間、分、秒を正確に表示します。

世界の市場ステータス: 主要な金融市場のオープン/クローズ状況を表示します。
・東京市場: 午前9時~午後3時(日本時間)。
・ロンドン市場: 夏時間では16時~24時、冬時間では17時~1時(日本時間)。
・ニューヨーク市場: 夏時間では21時~5時、冬時間では22時~6時(日本時間)。

カスタマイズ可能な表示設定:
・背景色: 時計表示の背景色を設定できます。また、テーブルの左側に空白のセルを配置し、独立した背景色を設定することでテーブルの配置調整が可能です。
・時計と市場ステータスの色: 時計テキスト、オープン市場、クローズ市場の色を個別に設定できます。
・テキストサイズ: 小、標準、大から選択し、テキストサイズをカスタマイズ可能です。
・テーブル位置: デジタル時計と市場ステータスのテーブルをチャートのさまざまな場所(左上、中央上、右上、左下、中央下、右下)に配置できます。

市場オープン時のアラート: 市場(東京、ロンドン、ニューヨーク)がオープンするときにアラートを発し、リアルタイムで通知されます。これにより、重要な市場のオープン時間を逃さないようサポートします。

使い方:
セットアップ:
インジケーターを適用: チャートに「Digital Clock with Market Status and Alerts」インジケーターを追加し、タイムゾーン、テキストサイズ、背景色、テーブル位置を好みに応じてカスタマイズします。
市場ステータスを確認: 東京、ロンドン、ニューヨークの市場ステータスをリアルタイムで表示し、オープン/クローズ時間を把握できます。
アラートを受け取る: 市場オープン時のアラート機能により、重要な市場のオープンを見逃さないように通知が届きます。
時間管理:
・リアルタイム時計: 現在の時刻が秒単位で表示され、選択したタイムゾーンに基づいて正確に追跡できます。
・グローバルタイムゾーン: 東京、ニューヨーク、ロンドン、シドニーなど、トレードに関連するタイムゾーンを選択して監視できます。

市場ステータス:
・東京市場: 東京市場が開いていると「Tokyo OPEN」と表示され、閉じている場合は「Tokyo CLOSED」と表示されます。
・ロンドン市場: 同様に、「London OPEN」または「London CLOSED」が表示され、ロンドン市場のステータスを確認できます。
・ニューヨーク市場: ニューヨーク市場も「NY OPEN」または「NY CLOSED」で現在の状況が表示されます。

カスタマイズ:
・テーブル位置の調整: テーブルの位置を簡単に調整し、チャート上の他の要素と重ならないように配置できます。左側の空白セルで位置調整が可能です。
・テキストと背景色のカスタマイズ: テキストと背景の色を自分の好みに合わせて調整できます。また、オープン時とクローズ時の市場ステータスを区別するため、独立した色設定が可能です。

注意事項と免責事項:
・インジケーターの変更: このインジケーターは、予告なく変更や機能の削除が行われる場合があります。
・トレード責任: このインジケーターはトレードをサポートするツールであり、トレードに関する全責任はご自身にあります。利益を保証するものではなく、損失が発生する可能性があります。自分の分析や戦略と組み合わせて使用してください。
Versionshinweise
We had a problem with the time being out of sync due to differences in PC time zone settings.
The time zone of the indicator has been fixed so that all PCs display the time based on the same time zone.

PCのタイムゾーン設定の違いによる時間のずれ問題が発生しましたので
インジケーターのタイムゾーンを固定し、全てのPCで同じタイムゾーンを基に時間を表示するように修正しました
Versionshinweise
Fixed misalignment of market open and close indications.
The market open and close information is now reflected correctly when switching from one time zone to another.
市場のオープンとクローズの表示のずれを修正しました
これで各地域時間を切り替えても正常な市場開閉情報が反映されます。
Versionshinweise
The adjustment of the time gap was incomplete, so further improvements were made to complete the process.
時間のずれの調整が不完全でしたので更なる改良を施して完成させました。
Versionshinweise
Clock calculations and market open and close calculations are now based on UTC, correcting time misalignment issues.
Default setting: UTC+9 (Japan time)

Added upper center and lower center to table positions displaying clock and market status

Market status display:.
The open status of each market is now displayed in the table as “Tokyo OPEN” or “London CLOSED” and the number of hours remaining open is also displayed.
When a market is open, it is displayed in the specified text color (default is white), and when it is closed, it is displayed in gray, which can be changed in the settings screen to your preference.

Market status on/off setting:.
Improved the ability to turn on or off the status display for the Tokyo, London, and New York markets from the settings screen.

Changed and added settings for alert notifications at market openings.

時計の計算と市場のオープンとクローズの計算をUTC基準で計算するようにし、時間のずれの問題を修正しました。
デフォルト設定: UTC+9(日本時間)

時計と市場の状態を表示するテーブルの位置に上センターと下センターを追加

市場のステータス表示:
各市場のオープン状態が「Tokyo OPEN」「London CLOSED」のようにテーブルに表示され、オープン時間が残り何時間かも表示されるように変更。
市場がオープンしている時は指定したテキスト色(デフォルトは白)、クローズしている時はグレーで表示され、設定画面で好みで変更ができるようにしました。

市場ステータスのオン/オフ設定:
設定画面から東京市場、ロンドン市場、ニューヨーク市場のステータス表示をオンまたはオフに切り替えることができるように改良しました。

市場オープン時のアラート通知の設定を変更追加しました。
Versionshinweise
✨ Because this version adds many more features than the previous one, the Settings panel can feel more complex. To make it easy for anyone to use, I added clear tooltips in both English and Japanese, so even first-time users can set everything up without confusion.
⏱️ Market sessions now switch automatically between summer/winter time (DST) where applicable, and I also added a new Session Box feature that visually highlights each market session on the main chart.
🎛️ All the familiar customization remains (text color, background color, font size, table position), but the controls have been expanded significantly for finer layout adjustments.
📝 Two extra memo rows were also added—handy for showing quick notes, reminders, or session plans right on your chart.
🚨 New alerts were added as well: you can now receive market open notifications not only at the exact open, but also X minutes before open, plus a manual economic-events alert system for key releases.

---

* Version update: migrated the script from Pine v5 to Pine v6 and expanded the indicator scope from “Clock + Market Status” to “Clock + Market Status + Session Boxes (IANA)”.
* Refreshed the Clock to full IANA timezone support (preset list + custom IANA input), with optional seconds/date display, selectable date formats, an optional clock label, and optional TZ name in the HUD.
* Upgraded the dashboard UI and layout controls: added a dedicated left padding cell and a right-side text block (both fully configurable for text/size/text color/background), making it easy to fine-tune table positioning without breaking the layout.
* Added customizable note rows: an optional 2nd row (memo bar) and an optional 3rd row (sub-memo, available when the 2nd row is enabled), each with configurable text, colors, and size. The table now dynamically recreates itself when position/row/column settings change for more stable rendering.
* Added intraday Session Boxes for Tokyo/London/New York with optional labels, configurable colors, and editable session hours.
* Improved session timing reliability: Tokyo/London/NY market status now uses IANA timezones (London/NY automatically follow DST, Tokyo has no DST shift) and a timestamp-based countdown for more consistent “Open/Close in” timing. Market text display is also more flexible (words/timer/parentheses/session hours toggles).
* Added **Market Open Alerts (with “minutes before” option)**: enable per market (Tokyo/London/New York), set lead minutes (0 = at open), and choose alert timing (bar close = stable / real-time intrabar = fastest). Includes a tooltip note that “X minutes before” timing can drift on higher timeframes (lower TFs recommended for accuracy).
* Added **Economic Events Alerts (Manual)**: 3 independent event slots with per-slot ON/OFF, lead minutes, title + message, and full date/time inputs. Event times use the Clock’s IANA timezone (clockTZ), so changing the Clock TZ also updates the event alert timezone. Fired-state resets automatically when you change the event time/lead, making reuse easy.

---

✨ 今回のバージョンは、以前のバージョンよりも機能が大幅に増えたため、設定画面が少し複雑に感じる場合があります。そこで、初めて使う方でも迷わず設定できるように、各項目に **日本語+英語のツールチップ** を用意し、機能や使い方がすぐ分かるようにしました。
⏱️ Marketセッションは、該当する市場(London / New York)で **夏時間・冬時間(DST)を自動で切り替え** ます。さらに、各Marketの開場〜終了までをメインチャート上で視覚的に把握できる **Session Box表示機能** を追加しました。
🎛️ 従来どおり、文字色・背景色・文字サイズ・ボードの表示位置などは自由に設定できますが、今回は **レイアウト調整の幅を大きく拡張** し、より細かく見た目を追い込めます。
📝 新たに **メモ表示を2段追加** したので、ちょっとしたメモや作戦、注意点などをチャート上に表示する用途にも便利です。
🚨 さらにアラート機能も拡張し、市場の開始通知を「開始ちょうど」だけでなく「開始◯分前」にも対応。加えて、重要指標を手動登録できる経済イベントアラートも追加しました。

---
* バージョンアップ:Pine v5 → Pine v6へ移行し、インジの範囲も「Clock + Market Status」から「Clock + Market Status + Session Boxes(IANA)」へ拡張しました。
* ClockをIANAタイムゾーン対応に刷新(プリセット一覧+カスタムIANA入力)。秒表示/日付表示、日付フォーマット選択、Clockラベル、ClockへのIANA名表示も任意で追加できます。
* ダッシュボードUIと配置調整を強化:左パディング専用セル+右端テキストブロックを追加(文字/サイズ/文字色/背景色を個別設定可)。レイアウトを崩さずに表示位置を細かく追い込めます。
* カスタムメモ行を追加:2段目(メモ)と3段目(サブメモ※2段目ON時のみ)を任意表示でき、文字・色・背景・サイズを個別に設定可能です。さらに、位置/行数/列数の変更時にテーブルを自動再生成することで表示の安定性も向上しました。
* Tokyo / London / New York のセッションBOX表示を追加(イントラデイ限定)。ラベル表示、BOX色、セッション時間を設定できます。
* セッション判定を安定化:IANAタイムゾーンによりLondon/NYはDSTを自動反映、TokyoはDSTなし。timestampベースのカウントダウンで “Open/Close in” の残り時間表示もより安定し、Market表示は文言/タイマー/括弧/セッション時間のON/OFFで柔軟に切り替え可能になりました。
* **Market Openアラート(◯分前対応)**を追加:Tokyo / London / New York を個別にON/OFFでき、開始の何分前に鳴らすかを設定可能(0=開始ちょうど)。「足確定で安定」or「リアルタイムで最速」も選べます。※毎バー判定のため、上位足ほど「◯分前」の精度がバー幅に依存してズレやすく、精度重視なら低い時間足(1m〜5m)推奨です。
* **Economic Eventsアラート(手動登録)**を追加:3スロットを用意し、各スロットでON/OFF、◯分前、タイトル、メッセージ、年月日・時刻を個別に入力できます。タイムゾーンはClockの **clockTZ(IANA)** を共通利用するため、Clock側のTZを変えるとイベント通知の基準TZも自動で切り替わります。さらに、日時や「◯分前」を変更すると自動で未発火状態に戻るので、手動リセット無しで繰り返し使えます。

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.