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);
 

Similar threads

Top