Nasdaq fundamental items
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() { // Illustrates how to handle Nasdaq.com's extended dividend information with GetDetail const char tab = '\u0009'; string item = "naz Dividend"; IList fList = FundamentalDataItems(item); ClearDebug(); PrintDebug(item); PrintDebug(Bars.Symbol + tab + "Item Count: " + fList.Count); foreach (FundamentalItem fi in fList) { PrintDebug( fi.Date.ToShortDateString() + tab + fi.Value.ToString() + tab + fi.GetDetail("ExDate") + tab + fi.GetDetail("Type") + tab + fi.GetDetail("CashAmount") + tab + fi.GetDetail("DeclarationDate") + tab + fi.GetDetail("RecordDate") + tab + fi.GetDetail("PaymentDate") + tab); } PrintDebug("\r\n"); item = "naz Short Interest"; fList = FundamentalDataItems(item); PrintDebug(item); PrintDebug(Bars.Symbol + tab + "Item Count: " + fList.Count); foreach (FundamentalItem fi in fList) { PrintDebug( fi.GetDetail("SettlementDate") + tab + fi.GetDetail("Interest") + tab + fi.GetDetail("DaysToCover") + tab); } } } }