For Fidelity WLP customers, the first thing to do is to open the DataSource Manager > Update Data tab, and check all the Fidelity Providers that you want to use.
1) Select "Fidelity Analyst Ratings Data for Securities". For information about this, see p. 16 of the WLP Fundamental Data Guide (launch from Help menu). To use these data in a script, the best way is to let the Strategy Builder show you .. Conditions > Analyst Ratings
2, 3) Select "Fidelity Estimated Earnings Data for Securities". First, here's
an example to calculate earnings growth to the present. That said, I wouldn't advocate using estimated earnings in a backtest, and here's why. If you use the example for
FundamentalDatItems and replace the fundametal item with "estimated earnings", run it on IBM (all data), you'll get something like this in the debug window.
CODE:
Please log in to see this code.
Notice that the dates of these data occur at the end of each calendar quarter. Looking back, you can compare how the estimate coincided with the following earnings report. The problem is that the estimates for future quarters
change almost continuously. So the values you see in the future today, may not be the values you see in the future tomorrow. Further, you have only a one-time snapshot of those in the past. So for me, these data are not useful for backtest.
Since it's not supported, you could create your own database of earnings estimates in order to tell which way the estimates are being adjusted. To me, that would provide perhaps a better indicate than looking at future snapshots that are changing. There must be some data provider out there that offers such a product.