OPEN-SOURCE SCRIPT
Cập nhật News

Live Economic Calendar with High/Low Levels
This indicator is based on the news framework by toodegrees. My thanks go to toodegrees for providing the open-source code that serves as the foundation for this extension.
Features:
News High/Low Levels: The indicator marks the high and low points of the candles where news events occur. These levels remains active on the chart until they are breached by price or exceed the defined maximum duration (in days).
Optimized User Interface: The UI is designed to be space-saving (with many settings placed inline) to improve clarity within the indicator settings menu.
Timezone Adjustment: Support for various timezones (e.g., Europe/Berlin) to synchronize event times with your local time.
Design Options: Colors, line styles (Solid, Dashed, Dotted), and text sizes for the news levels can be customized individually.
Filters: News can be filtered by impact (High, Medium, Low) as well as by currency. An automatic mode for the current chart symbol is integrated.
Credits:
The core logic for retrieving economic data is based on the work of toodegrees. This version extends the original by adding visual price levels and a more compact menu navigation.
This indicator is based on the news framework by toodegrees. My thanks go to toodegrees for providing the open-source code that serves as the foundation for this extension.
Features:
News High/Low Levels: The indicator marks the high and low points of the candles where news events occur. These levels remains active on the chart until they are breached by price or exceed the defined maximum duration (in days).
Optimized User Interface: The UI is designed to be space-saving (with many settings placed inline) to improve clarity within the indicator settings menu.
Timezone Adjustment: Support for various timezones (e.g., Europe/Berlin) to synchronize event times with your local time.
Design Options: Colors, line styles (Solid, Dashed, Dotted), and text sizes for the news levels can be customized individually.
Filters: News can be filtered by impact (High, Medium, Low) as well as by currency. An automatic mode for the current chart symbol is integrated.
Credits:
The core logic for retrieving economic data is based on the work of toodegrees. This version extends the original by adding visual price levels and a more compact menu navigation.
Phát hành các Ghi chú
//Fix: 19.05.2026 Line correction// -----------------------------------------------------------------------------------------------
// Credits & Open Source Collaboration:
// The News section of this indicator is based on the framework by toodegrees.
// My sincere thanks go to toodegrees for providing the excellent open-source code that serves
// as the foundation for this extension. This custom extension expands the original functionality,
// which highlights the news candle using lines and points, by adding horizontal lines that mark
// and track the extreme points (highs and lows) of the news candle directly within the chart area.
//
// Der Indikators basiert auf dem Framework von toodegrees.
// Mein herzlicher Dank geht an toodegrees für die Bereitstellung des hervorragenden Open-Source-Codes,
// der als Grundlage dient. Die ursprüngliche Version markiert die Newskerze
// bereits mit Linien und Punkten. Ich habe diesen Code um zusätzliche horizontale Linien erweitert,
// um die Extrempunkte (Hochs und Tiefs) der Newskerze direkt im aktuellen Chartbereich
// sichtbar zu machen, um sie präzise verfolgen zu können.
// -----------------------------------------------------------------------------------------------
Phát hành các Ghi chú
Log: Bug Fix (26.05.2026)* Issue: Incorrect barLen calculation via previous bar time difference caused erroneous news line creation on gap candles.
* Fix: Changed barLen to a static calculation based on the current timeframe (timeframe.in_seconds() * 1000).
* Result: Precise line generation strictly limited to the correct news candle.
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.