Tony,
Great job finding this puppy! Here's
the code that will put it in a scan:
// Queries Yahoo
for earnings date, parses html and reports the date.
rmaObj =
CreateObject("rmaAFLObjects.EstEarnDate");
Earnings =
rmaObj.EarningsDate(Name());
AddTextColumn(Earnings
, "Earnings ");
However, this runs slowly. Tomorrow,
I'm going to work on a better solution. In essence it would
be to:
1)
Run a scan that downloaded and saved the Earnings Date for a lot of
symbols to a text file.
2)
Retrieve the Earnings Date from the file and use it in a scan or on
a chart.
Because the data is cached locally, I
think it would run a lot faster. Alternatively, you could redesign the scan
to retrieve the earnings date only if it the scan met other criteria.
Regards,
Dan.
I found the dll file at
http://www.purebytes.com/archives/amibroker/2002/msg00574.html
For those interested,
Install the dll file in the specified directory and paste the following code
into Analysis/Commentary/Formula
// Queries Yahoo for earnings date, parses html and reports the date.
rmaObj = CreateObject("rmaAFLObjects.EstEarnDate");
Name() + " Estimated Earnings Date: " + rmaObj.EarningsDate(Name());
It looks really nice but how do I implement this dll so I can see once I run my
exploration. E.g. I filtered these 3 stocks X VLO and SUN
Then how would I add a column to show their earnings date?
thanks
tony
SPONSORED LINKS
YAHOO! GROUPS LINKS