OPEN-SOURCE SCRIPT

High-Impact News Events with ALERT

High-Impact News Events with ALERT
This indicator is builds upon the original by adding alert capabilities, allowing traders to receive notifications before and after economic events to manage risk effectively.
This indicator is updated version of the Live Economic Calendar by toodegrees (https://www.tradingview.com/script/JjgkjuMY-Live-Economic-Calendar-by-toodegrees/) which allows user to set alert for the news events.

Key Features
Customizable Alert Selection: Users can choose which impact levels to restrict (High, Medium, Low).
User-Defined Restriction Timing: Set alerts to X minutes before or after the event.
Real-Time Economic Event Detection: Fetches live news data from Forex Factory.
Multi-Event Support: Detects and processes multiple news events dynamically.
Automatic Trading Restriction: user can use this script to stop trades in news events.

Visual Markers:
Vertical dashed lines indicate the start and end of restriction periods.
Background color changes during restricted trading times.
Alerts notify traders during the news events.

How It Works
The user selects which news impact levels should restrict trading.
The script retrieves real-time economic event data from Forex Factory.
Trading can be restricted for X minutes before and after each event.
The script highlights restricted periods with a background color.
Alerts notify traders all time during the news events is active as per the defined time to prevent unexpected volatility exposure.

Customization Options
Choose which news impact levels (High, Medium, Low) should trigger trading restrictions.
Define time limits before and after each news event for restriction.
Enable or disable alerts for restricted trading periods.

How to Use
Apply the indicator to any TradingView chart.
Configure the news event impact levels you want to restrict.
Set the pre- and post-event restriction durations as needed.
The indicator will automatically apply restrictions, plot visual markers, and trigger alerts accordingly.

Limitations
This script relies on Forex Factory data and may have occasional update delays.
TradingView does not support external API connections, so data is updated through internal methods.
The indicator does not execute trades automatically; it only provides visual alerts and restriction signals.

Reference & Credit
This script is based on the Live Economic Calendar by toodegrees (https://www.tradingview.com/script/JjgkjuMY-Live-Economic-Calendar-by-toodegrees/), adding enhanced pre- and post-event alerting capabilities to help traders prepare for market-moving news.

Disclaimer

This script is for informational purposes only and does not constitute financial advice. Users should verify economic data independently and exercise caution when trading around news events. Past performance is not indicative of future results.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.