scan for all stocks that had earnings within past 3 days


Category:
0
0

Hi Pete,

Could you please take a look at the attached?  I used your info from your answer to the “Find stocks with earnings release during the past week” question.  I’m trying to scan for stocks that had their earnings within the past 3 days (earnings yesterday, the day before yesterday and 2 days before yesterday).  The scan pulls up a list of stocks but it looks like it only pulls up stocks that had their earnings exactly 3 days ago instead of yesterday, they day before yesterday and 2 days before yesterday.  Thank you.

Attachments:
RESOLVED
Marked as spam
Posted by (Questions: 7, Answers: 9)
Asked on August 1, 2018 12:45 am
141 views
1
Private answer

This is not the code from the previous post that you referenced. This is the code from the standard built-in earnings scan. That is why your are not getting the results you expected.

Update:

I am providing the code required to achieve this after getting feedback from the author of this post.

The previous post: https://www.hahn-tech.com/ans/find-stocks-with-earnings-release-during-the-past-week/ did contain the solution to this request. However it may have been difficult to follow because in the previous post I was teaching rather than simply providing the solution.

plot scan = Highest(hasEarnings(), 3) > 0;

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on August 1, 2018 7:15 am
0

Hi Pete,
Yes, I read that Arun found a built in scan for future earnings and he modified it to look at past earnings so I tried looking for the same and tried to make adjustments.

( at August 1, 2018 11:23 am)
0

Unfortunately when he made that statement he did not realize it was not possible to do. Sorry that this has misdirected you. I have updated my answer to your post to provide the solution you seek.

( at August 1, 2018 11:54 am)
0

Thank you Pete! Have a nice day!

( at August 1, 2018 1:04 pm)