What it is
This fundamental provider downloads news items from Google Finance RSS feed. The news items for up to 2 years back (Nov 2009?) are available for any U.S. stock supported by the feed.
Part of MS123 Extra Fundamental/News Providers.
 Sample news records |
Since the feed doesn't mark its news as "bearish", "bullish", "neutral" or whatever, each and any fundamental item simply has a neutral value of
1.0.
Each news record is timestamped with actual publication date and comes with only one detail: news title. News are accessible in two forms:
- In a popup when mousing over a Google news popup on a stock chart (open up Wealth-Lab's Preferences dialog, Chart Annotations, drag "Google news" to the right and click OK)
- In WealthScript Strategies via the GetDetail method. Google news is the fundamental item name, title contains the news title:
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;
namespace WealthLab.Strategies
{
public class MyStrategy : WealthScript
{
protected override void Execute()
{
// List Google news for the symbol
const char tab = '\u0009';
string item = "Google news";
IList<FundamentalItem> fList = FundamentalDataItems(item);
ClearDebug();
PrintDebug(Bars.Symbol + tab + "Item Count: " + fList.Count);
PrintDebug("Bar" + tab + "Date " + tab + "News");
foreach (FundamentalItem fi in fList)
{
PrintDebug(fi.Bar.ToString() + tab
+ fi.Date.ToShortDateString() + tab
+ fi.GetDetail("title"));
}
}
}
}
Notes