OPEN-SOURCE SCRIPT
已更新 Earnings Drift Radar

Earnings Drift Radar
Does a stock keep its lead after earnings?
Earnings Drift Radar follows a stock's performance relative to a market benchmark and a selected sector benchmark from an earnings reaction day. It separates the initial relative reaction from the subsequent change in that lead.
READING THE RADAR
• Green line: stock return minus sector return, in percentage points.
• Blue line: stock return minus market return, in percentage points.
• Zero line: equal performance since the same starting point.
• Blue shading and a green dot: the selected reaction day.
• Orange downward marker: a previously positive sector lead crosses to zero or below.
The dashboard describes the sector lead as growing, holding, fading, lost, or underperforming. These states describe relative price behavior; they are not buy or sell instructions.
A SIMPLE EXAMPLE
Stock A rises 6% while its sector rises 5%: its sector lead is +1 percentage point.
Stock B rises 2% while its sector falls 4%: its sector lead is +6 percentage points.
The smaller absolute gain can represent stronger relative performance.
If the initial sector lead is +4 pp and later falls to +2 pp, the radar shows 50% of the initial lead retained. This ratio is available only for sufficiently positive initial reactions. It may exceed 100% or turn negative.
HISTORICAL CONTEXT
The table summarizes sector excess returns at D+5, D+10 and D+20, where D0 is the reaction day. Each horizon includes only completed valid observations from the selected recent event window. It displays sample count, mean, median and percentage of positive excess returns. The positive percentage is not a trading win rate.
SETUP
Use a standard 1D chart of a USD stock and matching US-session USD benchmarks. SPY is the default market benchmark. XLK is a technology-sector example: choose the appropriate sector ETF yourself.
Choose Feed event bar, Next trading bar, or Manual date. TradingView earnings data does not reliably resolve every release time. Verify D0 against the actual announcement; shifting to the next bar applies to all reports. Manual mode studies one chosen event.
METHOD AND LIMITS
The reference prices are the split-adjusted regular-session closes immediately before D0. Calculations use simple price-return differences, without beta modeling, dividend returns or currency conversion. Missing or misaligned benchmark data invalidates the remainder of that event. New earnings events replace unfinished observation windows.
Updates and alert conditions use confirmed daily closes. Historical feed corrections and setting changes can change results. Relative performance does not prove that earnings caused a move. Small samples should be interpreted cautiously. This is an analytical indicator, not a validated trading strategy or a profitability claim.
ALERTS
New earnings reaction; sector lead lost; sector lead recovered; sector lead starts fading. Configure alerts separately in TradingView.
Does a stock keep its lead after earnings?
Earnings Drift Radar follows a stock's performance relative to a market benchmark and a selected sector benchmark from an earnings reaction day. It separates the initial relative reaction from the subsequent change in that lead.
READING THE RADAR
• Green line: stock return minus sector return, in percentage points.
• Blue line: stock return minus market return, in percentage points.
• Zero line: equal performance since the same starting point.
• Blue shading and a green dot: the selected reaction day.
• Orange downward marker: a previously positive sector lead crosses to zero or below.
The dashboard describes the sector lead as growing, holding, fading, lost, or underperforming. These states describe relative price behavior; they are not buy or sell instructions.
A SIMPLE EXAMPLE
Stock A rises 6% while its sector rises 5%: its sector lead is +1 percentage point.
Stock B rises 2% while its sector falls 4%: its sector lead is +6 percentage points.
The smaller absolute gain can represent stronger relative performance.
If the initial sector lead is +4 pp and later falls to +2 pp, the radar shows 50% of the initial lead retained. This ratio is available only for sufficiently positive initial reactions. It may exceed 100% or turn negative.
HISTORICAL CONTEXT
The table summarizes sector excess returns at D+5, D+10 and D+20, where D0 is the reaction day. Each horizon includes only completed valid observations from the selected recent event window. It displays sample count, mean, median and percentage of positive excess returns. The positive percentage is not a trading win rate.
SETUP
Use a standard 1D chart of a USD stock and matching US-session USD benchmarks. SPY is the default market benchmark. XLK is a technology-sector example: choose the appropriate sector ETF yourself.
Choose Feed event bar, Next trading bar, or Manual date. TradingView earnings data does not reliably resolve every release time. Verify D0 against the actual announcement; shifting to the next bar applies to all reports. Manual mode studies one chosen event.
METHOD AND LIMITS
The reference prices are the split-adjusted regular-session closes immediately before D0. Calculations use simple price-return differences, without beta modeling, dividend returns or currency conversion. Missing or misaligned benchmark data invalidates the remainder of that event. New earnings events replace unfinished observation windows.
Updates and alert conditions use confirmed daily closes. Historical feed corrections and setting changes can change results. Relative performance does not prove that earnings caused a move. Small samples should be interpreted cautiously. This is an analytical indicator, not a validated trading strategy or a profitability claim.
ALERTS
New earnings reaction; sector lead lost; sector lead recovered; sector lead starts fading. Configure alerts separately in TradingView.
發行說明
Clearer chart layout — v1.1• Compact six-row dashboard showing sector lead, market lead, status, reaction date and retained initial lead.
• Four selectable dashboard corners; this chart uses bottom left to keep recent lines visible.
• Full historical statistics remain available through “Expanded dashboard with historical statistics” in the same indicator.
• Input values are hidden from the status line.
Calculation rules and alert conditions are unchanged. This update changes presentation only.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。