PROTECTED SOURCE SCRIPT
DaysToEarnings

An useful tool for investors/traders who want to keep track of upcoming earnings event.
Here's a breakdown of the indicator and its features:
Functionality:
#1 Displays the next earnings date for a company and additionally shows the number of days remaining until the earnings event.
#2 Offers three display modes:
#3 Allows setting a custom baseline number of days. Based on this value the background color if the number of days in the indicator changes - red (if days remain is less than the number of days provided) else a gradient color in the shades of green.
As many stocks shows a drastic increase in volatility near the earnings date, this feature is very useful for visually being reminded of the days left.
***Lastly the footprint is very small making this important event reminder available on the chart without much fuss.***
Internals:
To calculate the days remaining until the earnings report, it uses the tv built-in variable "earnings.future_time" and uses a custom function for color grading.
How to use:
I hope this tiny script adds value to your trading! Cheers :)
Here's a breakdown of the indicator and its features:
Functionality:
#1 Displays the next earnings date for a company and additionally shows the number of days remaining until the earnings event.
#2 Offers three display modes:
- Default: In this view both the earnings date and the number of days left is displayed
- Head-less: A compact view without the headers
- Mini-Mode: Super compact view, showing only the number of days
#3 Allows setting a custom baseline number of days. Based on this value the background color if the number of days in the indicator changes - red (if days remain is less than the number of days provided) else a gradient color in the shades of green.
As many stocks shows a drastic increase in volatility near the earnings date, this feature is very useful for visually being reminded of the days left.
***Lastly the footprint is very small making this important event reminder available on the chart without much fuss.***
Internals:
To calculate the days remaining until the earnings report, it uses the tv built-in variable "earnings.future_time" and uses a custom function for color grading.
How to use:
- Once the indicator is applied on the chart you can input a custom number as reference day value. Based on this value the color coded background is generated for the days remaining to produce a visual impact - red (actual days remaining less than reference days) else its shades of green (gradient from lime to teal)
- Next, choose the display modes (for default both "Head-less" and "Mini-Mode" is unchecked)
- Finally choose the placement Top/Middle/Bottom + Center/Left/Right combination as per your convenience from the table options section.
I hope this tiny script adds value to your trading! Cheers :)
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.