Hi, I'm hoping to get some help on smoothing out this lower plot. It currently draws a vertical line from its period ending point to when it would intersect with the next period's ending point. I'd like it to draw the diagonal line between the ending points.
Thanks in advance
Sorry, I'm unable to attach a screenshot for some reason.
Upon further research, I found that I could smooth it out by applying a SimpleMA.
Thanks in advance
Sorry, I'm unable to attach a screenshot for some reason.
Upon further research, I found that I could smooth it out by applying a SimpleMA.
Code:
declare lower;
declare Hide_on_intraday;
def EPS = if !isNaN(GetActualEarnings()) then GetActualEarnings() else EPS[1];
plot EPS_line_chart = EarningsPerShareTTM(symbol = GetSymbol(),fiscalPeriod.YEAR);
EPS_line_chart.EnableApproximation();
EPS_line_chart.SetDefaultColor(color.yellow);
Last edited: