Earnings historical return over multiple quarters


Category:
0
0

There is a scan showing stocks that returned 6% last earnings quarter. Is it possible to have a scan showing more than one quarter and allow the user to input the number of quarters and the desired percentage?

Thank you

Marked as spam
Posted by (Questions: 8, Answers: 18)
Asked on May 4, 2019 12:04 pm
86 views
0
Where is this scan? Is it a built-in scan or something posted in this Q&A forum? Either way I doubt we can accomplish this for no charge in the Q&A forum. But if you can show me where the last quarter earnings code is located I will take a look at it.
( at May 5, 2019 11:00 am)
0
Here's the scan you wrote on 7/11/18 in the Q&A forum under TOS Earnings scan with prior earnings percentage move. rec preEarningsClose = if HasEarnings(EarningTime.BEFORE_MARKET) then close[1] else if HasEarnings(EarningTime.AFTER_MARKET) then close else preEarningsClose[1]; rec postEarningsOpen = if HasEarnings(EarningTime.BEFORE_MARKET)[1] then open[1] else if HasEarnings(EarningTime.AFTER_MARKET)[1] then open else postEarningsOpen[1]; rec percentEarningsMove = if HasEarnings(EarningTime.AFTER_MARKET)[1] then 100 * ( postEarningsOpen / preEarningsClose[1] - 1) else if HasEarnings(EarningTime.BEFORE_MARKET)[1] then 100 * (postEarningsOpen / preEarningsClose - 1) else percentEarningsMove[1]; plot scan = Highest(HasEarnings(), 3) < 1 and AbsValue(percentEarningsMove) > 6.0;
( at May 6, 2019 2:35 pm)
0
Private answer

Providing a link to the original post would have been better. That way the rest of our visitors would be able to go back and read that post and understand the context in which that code was provided.

Now to provide an answer to your original question:

Is it possible to have a scan showing more than one quarter and allow the user to input the number of quarters and the desired percentage?

To allow the user to input the number of quarters.... not very likely. At the moment I cannot think of a solution for that. But the time required to write that would be far more than I am willing to spend for a solution in the Q&A forum.

Marked as spam
Posted by (Questions: 37, Answers: 4086)
Answered on May 7, 2019 8:55 am