- ago
Requesting a method similar to EarningsDate.GetNextUseCache in WL6 that gets the upcoming earning dates as discussed in the post below:

https://www.wealth-lab.com/Discussion/Getting-upcoming-earnings-date-7447

The existing dynamic "Upcoming Event" dataset in WL7 does not provide the dates of earnings that can be used in a C# strategy.
4
986
Solved
12 Replies

Reply

Bookmark

Sort
- ago
#1
Just a note. In the original topic you mentioned getting the upcoming earning date from "Zacks". The WL6 solution queried earningswhispers.com and money.cnn.com for fallback so these are the sources if we decide to port it: http://www2.wealth-lab.com/WL5WIKI/EarningsDate.ashx
0
- ago
#2
I did not mean it has to be necessarily from "Zacks". It can be exactly like how it was in WL6 (it was very accurate)
0
- ago
#3
I too would like this to port my code from WL6. I try to avoid entering a new position around earnings date.
0
- ago
#4
This is a feature request so it can be voted for. Aat the moment you can already put to use this solution from Post #12:
https://www.wealth-lab.com/Discussion/Getting-upcoming-earnings-date-7447
0
Glitch8
 ( 10.41% )
- ago
#5
Anyone wanting to see this implemented needs to vote for this request, which means clicking the Thumbs Up!
0
- ago
#6
As requested, EarningsDate.GetNextUseCache (as well as GetNext, GetNext2) is to be included in DataExtensions B27. Syntax will be the same, you'll just have to add a "using WealthLab.DataExtensions;" clause on top of your strategy. I think it's enough to satisfy the original request.

P.S. EarningsDate.InWindow would take a separate feature request to consider.
1
Best Answer
- ago
#7
It's added. @Shaaker, please consider subscribing to WL7 to use the feature.
0
- ago
#8
QUOTE:
EarningsDate.GetNextUseCache is to be included in DataExtensions B27.

Okay, I got DataExtensions Build 27 installed. The problem is the VS Object Browser can't find the EarningsDate class. Is it hidden away in some "secret" assembly that I haven't included in my VS project? Do I need to delete, then reestablish some assembly reference? If so, which assembly would that be?

And where is this documented?

UPDATE: I figured it out. One needs to add the line below to their project and add a reference to that assembly.
CODE:
using WealthLab.DataExtensions;
0
- ago
#9
QUOTE:
And where is this documented?

I missed documenting it in the built-in Help but will do so in DataExtensions B28.
1
Glitch8
 ( 10.41% )
- ago
#10
Seems like it should be documented in QuickRef. Extensions can inject their own QuickRef XML files.
1
- ago
#11
Good point, will do.
0
- ago
#12
Heads-up for a breaking change! The EarningsDate class and related Event provider are moving to the Fundamental extension in build 11:
https://www.wealth-lab.com/extension/detail/Fundamental
0

Reply

Bookmark

Sort