Quarterly EPS shown as a Line Graph

danpadcas

New member
Hi all.

I've been looking for a nice way of plotting %EPS increasing/decreasing qtr over qtr on ToS but I did not find anything appealing. I've come across this website and I reckon this is the most accurate indicator I found.

https://playthetrade.com/tradingview/technical-indicators/quarterly-eps-shown-as-a-line-graph/

52FI4Z7.png


What's on the screenshot is a line of graph that follows the EPS results qtr over qtr. The red and green dots represent whether the results were up or down from the previous report. What I'd like to know is if there is a way to calculate the % difference between EPS so we can see at a glance how much has increase or decrease in %.

I follow CANSLIM criteria so that's why I'm requesting it

For those interested in this indicator here is the link;

https://tos.mx/gzJMkvw

And here the Thinkscript Code;

Code:
# EPS line graph
#
# Written by:  @JohnMuchow http://twitter.com/JohnMuchow
# Website:     PlayTheTrade.com
#
# v1.0

declare lower;

input showEPSBubble = yes;

def e = GetActualEarnings();
def earnings = CompoundValue(1, if IsNaN(e) then earnings[1] else e, e);

# Plot the earnings as a line
plot earningsLine = GetActualEarnings();

# Given earnings are not relevant for each bar, approximate line from bar to bar
earningsLine.EnableApproximation();

# Change as you like
earningsLine.SetPaintingStrategy(PaintingStrategy.POINTS);
earningsLine.SetDefaultColor(CreateColor(90, 122, 176));
earningsLine.hideTitle();

# Plot green/red dot indicating earnings up/down
plot earningsUpDownIndicator = GetActualEarnings();
earningsUpDownIndicator.SetPaintingStrategy(PaintingStrategy.SQUARES);
earningsUpDownIndicator.AssignValueColor(if earnings > earnings[1] then (CreateColor(120, 184, 86)) else CreateColor(164, 36, 22));
earningsUpDownIndicator.SetLineWeight(4);
earningsUpDownIndicator.hideTitle();

# Optional EPS bubble
AddChartBubble(showEPSBubble, earningsUpDownIndicator, earnings, Color.GRAY);
 
Hi folks!
As a start, this is a good earnings line. I pushed it up to the main chart and it could use your help.
Can this be programed to show % change on the left side and keep it equal between charts so that a 20% increase in earnings will look the same from chart to chart, even though the price scale varies widely?
Thank you. I hope all is well with the team!
 

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
493 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