OPEN-SOURCE SCRIPT
已更新 Earnings [theUltimator5]

This indicator highlights daily price changes on earnings announcement days using dynamic colors, labels, and optional earnings markers.
🔍 Key Features:
Earnings Detection:
Price Change Calculation:
Color-coded Labels:
Color intensity reflects the size and direction of the move:
Optional "Earnings" Marker:
Background Highlight:
⚙️ User Input:
✅ Show 'E' Marker: Toggles the visibility of the "Earnings" label below the main price change label.
✅ Ideal Use Case:
Use this indicator to visually analyze how a stock reacts on earnings days, helping traders spot consistent behavior patterns (e.g., post-earnings rallies or selloffs).
🔍 Key Features:
Earnings Detection:
- Highlights only the days when an earnings event occurs.
Price Change Calculation:
- Computes the percentage change from open to close on earnings day.
Color-coded Labels:
- Displays the % change as a floating label above the chart on earnings days.
Color intensity reflects the size and direction of the move:
- Bright green for large gains (≥ +10%)
- Bright red for large losses (≤ -10%)
- White for negligible change
- Gradient fades between those extremes
Optional "Earnings" Marker:
- A small label marked “Earnings” appears beneath the % change label, controlled by a user toggle.
Background Highlight:
- The chart background is shaded on earnings days with a semi-transparent color based on the % change.
⚙️ User Input:
✅ Show 'E' Marker: Toggles the visibility of the "Earnings" label below the main price change label.
✅ Ideal Use Case:
Use this indicator to visually analyze how a stock reacts on earnings days, helping traders spot consistent behavior patterns (e.g., post-earnings rallies or selloffs).
發行說明
Added number of days since last earnings at bottom of chart.Removed option for showing "E" for earnings, and change it to simply be below the price change.
Added user select to show days since last earnings.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。