Dividend Data from Yahoo and/or Fidelity
Author: kfisher
Creation Date: 5/31/2016 6:03 PM
profile picture

kfisher

#1
I am new and searched Forum, Help, User Guide, but I cannot find the Editor Code to get the Dividend Data from Yahoo and/or Fidelity to work. I tried running "DogsOfDow" (which uses dividends) pre-defined Strategy, and the data from the FundementalDataSeries is, "WealthLab.DataSeries". I have tried the following:

CODE:
Please log in to see this code.

And Get this output:
KF Dividend1:
KF Dividend: WealthLab.DataSeries

I tried:
CODE:
Please log in to see this code.

and Compile fails with:
error CS0266 @(27,32): Cannot iimplicitly convert type 'System.Collections.Generic.IList<WealthLab.FundamentalItem>' to "WealthLab.FundementalItem."

I have searched support, User Guide and FAQ. There was comment about using YCharts, but no details on how to use that.

Can you give me code to get the dividend from Yahoo and/or Fidelity and any special steps in the Data Manager?

I saw something about: WealthLab.DataProviders.Common.FundamentalItemDividend, but no details either.

Thanks
profile picture

Eugene

#2
Welcome to the forums Ken.

QUOTE:
DataSeries dividend1 = FundamentalDataSeries("[yc] dividend");


It takes updating the fundamental data first (as described in the User Guide) before you get fundamental items to work in Strategies i.e. display on a chart and become accessible to FundamentalDataSeries. You can't do it for "[yc] dividend" right away because this requires access to the YCharts extension. Before you're able to install it and then update YCharts data we need to authorize your download. Please respond to your open ticket and we'll get it sorted out quickly.

QUOTE:
and Compile fails with:


That's right. What would work is something like this - but again, see above re: YCharts:
CODE:
Please log in to see this code.


QUOTE:
Can you give me code to get the dividend from Yahoo and/or Fidelity and any special steps in the Data Manager?

Sure, here's a quick example for both Fidelity and Yahoo data that are accessible to you out of the box:

Yahoo: Dividend fundamental data

Before using it, in the Data Manager please check Fidelity/Yahoo in the list of Fundamental Providers and then run either "Update all data..." or "Update DataSet" (not "Pricing" - this ignores fundamental items).
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).