OPEN-SOURCE SCRIPT
已更新 Event on charts

**Event on Charts Indicator**
This indicator visually marks significant events on your chart. It is highly customizable, allowing you to activate or deactivate different groups of events and choose whether to display the event text directly on the chart or only when hovered over. Each group of events can be configured with distinct settings such as height mode, color, and label style.
### Key Features:
- **Group Activation:** Enable or disable different groups of events based on your analysis needs.
- **Text Display Options:** Choose to display event texts directly on the chart or only on hover.
- **Customizable Appearance:** Adjust the height mode, offset multiplier, bubble color, text color, and label shape for each group.
- **Predefined Events:** Includes predefined events for major crashes, FED rate changes, SPX tops and bottoms, geopolitical conflicts, economic events, disasters, and significant Bitcoin events.
### Groups Included:
1. **Crash Events:** Marks major market crashes.
2. **FED Rate Events:** Indicates changes in the Federal Reserve rates.
3. **SPX Top Events:** Highlights market tops for the S&P 500.
4. **Geopolitical Conflicts:** Marks significant geopolitical events.
5. **Economic Events:** Highlights important economic events such as bankruptcies and crises.
6. **Disaster and Cyber Events:** Indicates major disasters and cyber attacks.
7. **Bitcoin Events:** Marks significant events in the Bitcoin market.
8. **SPX Bottom Events:** Highlights market bottoms for the S&P 500.
### Usage:
This indicator is useful for traders and analysts who want to keep track of historical events that could impact market behavior. By visualizing these events on the chart, you can better understand market reactions and make informed decisions.
This indicator visually marks significant events on your chart. It is highly customizable, allowing you to activate or deactivate different groups of events and choose whether to display the event text directly on the chart or only when hovered over. Each group of events can be configured with distinct settings such as height mode, color, and label style.
### Key Features:
- **Group Activation:** Enable or disable different groups of events based on your analysis needs.
- **Text Display Options:** Choose to display event texts directly on the chart or only on hover.
- **Customizable Appearance:** Adjust the height mode, offset multiplier, bubble color, text color, and label shape for each group.
- **Predefined Events:** Includes predefined events for major crashes, FED rate changes, SPX tops and bottoms, geopolitical conflicts, economic events, disasters, and significant Bitcoin events.
### Groups Included:
1. **Crash Events:** Marks major market crashes.
2. **FED Rate Events:** Indicates changes in the Federal Reserve rates.
3. **SPX Top Events:** Highlights market tops for the S&P 500.
4. **Geopolitical Conflicts:** Marks significant geopolitical events.
5. **Economic Events:** Highlights important economic events such as bankruptcies and crises.
6. **Disaster and Cyber Events:** Indicates major disasters and cyber attacks.
7. **Bitcoin Events:** Marks significant events in the Bitcoin market.
8. **SPX Bottom Events:** Highlights market bottoms for the S&P 500.
### Usage:
This indicator is useful for traders and analysts who want to keep track of historical events that could impact market behavior. By visualizing these events on the chart, you can better understand market reactions and make informed decisions.
發行說明
Image update.發行說明
Update Notes:Added SPX top/bottom dates
Integrated Jackson Hole event dates
Added dates/number of FED HIKES
Added dates/number of FED CUTS
Important information:
There is a known bug when displaying too many dates at once, which can cause certain dates to be hidden. I haven't found a solution yet, so please avoid displaying too many groups simultaneously (e.g., HIKES and CUTS cannot be shown together).
發行說明
Events on Charts Indicator V4 Release Notes 📈This update significantly enhances the functionality and scope of the Events on Charts indicator. We've introduced a new data structure, added a wide range of new event groups, and refined the customization options to give you more control than ever before.
Key Changes & New Features 🛠️
New Event Groups: Added multiple new categories to provide a more comprehensive view of historical market drivers:
🇪🇺 ECB Rates: Track key interest rate decisions from the European Central Bank.
🍁 BoC Rates: Follow interest rate changes from the Bank of Canada.
🔑 Key Events 24-25: A dedicated group for major, recent, and upcoming market events, including economic data releases and political milestones.
📜 Trump Tariffs #1 & #2: Separate groups for documenting the trade policy events of the first and second Trump administrations.
🗓️ Options Expiries: Mark options expiration dates and significant VIX events that can influence market volatility.
Central Bank Events Consolidation: The indicator now includes granular groups for FED Rate Hikes and Cuts, alongside the overarching FED Cycles and Jackson Hole events.
Enhanced Customization:
Global Overrides: A new "Global Settings" tab lets you override individual group settings for marker shape, color, size, text display, and date filters with a single click. This makes it easy to apply a consistent visual style across all event markers.
Date Filtering Presets: The date filtering now includes specific presets for major market crashes (COVID, GFC, Dot-com), allowing you to focus your analysis on periods of high volatility.
Improved Code Structure: The internal code has been refactored with a new GroupSettings type and dedicated processing functions (process_group_events). This makes the indicator more modular, scalable, and easier to maintain for future updates.
Bug Fixes & Improvements ⚙️
Timeframe Logic: Corrected the event placement logic for non-daily timeframes (Weekly, 2D, 3D) to ensure events are accurately positioned on the chart, regardless of the instrument or market schedule.
Label Count Display: The label counter is now more prominent and dynamically changes color to alert you when you are approaching the maximum label limit, helping to prevent display issues.
Minor UI/UX Tweaks: Several small changes have been made to the indicator's settings menu for better organization and clarity.
The V4 update makes the Events on Charts indicator a more powerful and flexible tool for any trader or analyst looking to add a layer of historical context to their charts. We believe these changes will significantly improve your ability to understand how global events influence market behavior.
發行說明
Screen update.發行說明
Screen update開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。