OPEN-SOURCE SCRIPT
Aktualisiert

News

612
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.
Versionshinweise
//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.
// -----------------------------------------------------------------------------------------------
Versionshinweise
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.

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.