Run In To Earnings Data

bp805

Member
Hi all-
I have an earnings data setup that I have found on this website that plots some very useful data. However, I'd like to add a few things to it. I'd like to add a vertical line 7, 14, and 21 days prior to earnings, as well as 7 days after earnings. I think I have that figured out by using the following:

AddVerticalLine(HasEarnings()[-21], "", Color.GREEN);
AddVerticalLine(HasEarnings()[-14], "", Color.GREEN);
AddVerticalLine(HasEarnings()[-7], "", Color.GREEN);
AddVerticalLine(HasEarnings()[7], "", Color.RED);

I'd also like to add historical data from the past two years of the average % move from 21 days prior to earnings, 14 days prior to earnings, and 7 days prior to earnings, as well as 7 days after earnings and put this into a label at the top of the chart similar to the below image:

zoxSbIX.png


Also, is there a way to add a cloud between each vertical line (either red, yellow, or green) depending on the % move? For example over 5% is a green cloud, between 0-4.9% is a yellow cloud, and any negative % is a red cloud? Similar to the image below.

ifDlv62.png


I know this may be complex, but any help would be greatly appreciated.

Thanks in advance for any help!
 
Morning @bp805 Can you please post the full code of your study?
Hi @_Merch_Man_ , if you're referring to the whole earnings indicator suite that I use, the whole suite of studies came from this thread:

https://usethinkscript.com/threads/...or-basic-fundamental-analysis.866/#post-43612

The first post contains the code to everything that I have on my charts. I mainly use the "earnings reaction", "data labels", and "earnings statistic" codes on my charts. There is a TOS link at the end of the first post that contains all of the studies.

My first post here starting this thread is looking to add an additional couple study sets to it to achieve what I'm looking for in my first post in this thread. Hope that clarifies....thanks!
 
Hi @_Merch_Man_ , if you're referring to the whole earnings indicator suite that I use, the whole suite of studies came from this thread:

https://usethinkscript.com/threads/...or-basic-fundamental-analysis.866/#post-43612

The first post contains the code to everything that I have on my charts. I mainly use the "earnings reaction", "data labels", and "earnings statistic" codes on my charts. There is a TOS link at the end of the first post that contains all of the studies.

My first post here starting this thread is looking to add an additional couple study sets to it to achieve what I'm looking for in my first post in this thread. Hope that clarifies....thanks!
Hi @bp805, I've been searching for the Pre-ER and Post-ER labels from the link you provided, but I'm unable to find it. Would you be able to provide the link where you got those labels? Thanks for your help.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
376 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top