OPEN-SOURCE SCRIPT
Updated 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).
Release Notes
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.