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.
リリースノート
I updated the calculation for earnings day percent change. Precious one was incorrect. I also slightly modified how the labels are positioned since they would easily be out of bounds, especially if viewed on mobile. Instead of using a 200 day high/low to create the labels, I now use a 5 day high/lowリリースノート
Updated chart to show indicator name in order to abide by house rules.オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。