Estimated Earnings Beat Scanner for ThinkorSwim

markos

Well-known member
VIP
This will help you scan for estimated earning beat within the last 10 days.

Plug this into your scanner for potential Stock & Option plays.

Code:
# Earnings beat Estimated Earnings within the last 10 days
# Mobius
# Chat Room request 07.17.2019

def EE = if isNaN(getEstimatedEarnings())

         then EE[1]

         else getEstimatedEarnings();

def AE = if IsNaN(GetActualEarnings())

         then AE[1]

         else GetActualEarnings();

def AE_Bar = if AE != AE[1]

             then barNumber()

             else double.nan;

plot H = AE > EE and

         barNumber() - HighestAll(AE_Bar) <= 10;
 
Last edited by a moderator:

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

Markos, what does this indicator do? Does it find stocks that beat earnings in the last 10 days? And if so, how do we trade it? Thanks
 
@Tradervic I am not being a wise guy, take no offense. This is not an indicator, but, a scan. It does just what it says. "Earnings beat Estimated Earnings within the last 10 days".
When you run the scan during earnings season or any other time, find the ones with the best set ups for your style of trading.
There are many ways to use it. This isn't investment advice, however, if we're in an upward market, a person could watch those "Estimate Beaters" and trade options according to their plan.
If you are a long term investor, an earnings beat may help put a floor under the stock price or reassure a dividend.
Sometimes an earnings beat causes a stock to go down. Why? You would have to ask the "algos", but, my hunch is that they're not talking! 🤫
 
Got it Markos, no offense taken. I think if a stock moves up due to earnings and breaks resistance, I would look to go long...I prefer to sell bull put spreads.
 
Unfortunately, we are limited to whatever data ThinkScript has access to. Pertaining to earnings the only metrics available are GetActualEarnings() and GetEstimatedEarnings(). Both of these functions were used in the code that @markos posted in post #1 above
 
Unfortunately, we are limited to whatever data ThinkScript has access to. Pertaining to earnings the only metrics available are GetActualEarnings() and GetEstimatedEarnings(). Both of these functions were used in the code that @markos posted in post #1 above

Too bad about the limited earnings data. Wish TOS had a "Get ex Dividend date. Would be very useful.
 
Unfortunately, we are limited to whatever data ThinkScript has access to. Pertaining to earnings the only metrics available are GetActualEarnings() and GetEstimatedEarnings(). Both of these functions were used in the code that @markos posted in post #1 above
Thanks tomsk
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
518 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