OPEN-SOURCE SCRIPT
Earnings Date and Countdown

Overview:
The Earnings Date & Countdown (EDC) Indicator displays the next earnings date for a stock and a countdown of days remaining until the earnings announcement. This helps traders stay informed about upcoming earnings events and adjust their strategies accordingly.
Features:
- Displays the next earnings date in a customizable format.
- Accurate countdown of days remaining until the earnings event (optional).
- Automatically adjusts for time zones and ensures the correct number of full calendar days.
- Customizable display position for easy visibility on the chart.
Settings:
- Show day of the week: option to toggle the day of the week.
- Date Format: choose between dd mmm, mmm dd, dd/mm or mm/dd.
- Show year: option to toggle the year display.
- Show (countdown): option to toggle the countdown display.
- Indicator position: adjusts the location of the display on the chart.
Why use this indicator?
Earnings reports often cause significant price movements.
This indicator helps traders plan ahead by keeping earnings dates visible and tracking the countdown with precision directly on the chart.
The Earnings Date & Countdown (EDC) Indicator displays the next earnings date for a stock and a countdown of days remaining until the earnings announcement. This helps traders stay informed about upcoming earnings events and adjust their strategies accordingly.
Features:
- Displays the next earnings date in a customizable format.
- Accurate countdown of days remaining until the earnings event (optional).
- Automatically adjusts for time zones and ensures the correct number of full calendar days.
- Customizable display position for easy visibility on the chart.
Settings:
- Show day of the week: option to toggle the day of the week.
- Date Format: choose between dd mmm, mmm dd, dd/mm or mm/dd.
- Show year: option to toggle the year display.
- Show (countdown): option to toggle the countdown display.
- Indicator position: adjusts the location of the display on the chart.
Why use this indicator?
Earnings reports often cause significant price movements.
This indicator helps traders plan ahead by keeping earnings dates visible and tracking the countdown with precision directly on the chart.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.