Sample chart annotations
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() { const char tab = '\u0009'; string item = "[z] Zacks Adjusted Earnings"; IList<FundamentalItem> fList = FundamentalDataItems(item); ClearDebug(); PrintDebug(Bars.Symbol + tab + "Item Count: " + fList.Count); PrintDebug("FY" + tab + "FQ" + tab + "Bar" + tab + "Date " + tab + "Value" + tab + "FormatValue"); foreach (FundamentalItem fi in fList) { PrintDebug(fi.GetDetail("fiscal year") + tab + fi.GetDetail("current quarter") + tab + fi.Bar.ToString() + tab + fi.Date.ToShortDateString() + tab + fi.Value.ToString("$#,0.00") + tab + fi.FormatValue().Replace("\n", " ") ); } ChartPane p = CreatePane(30,true,true); PlotFundamentalItems(p,item,Color.FromArgb(255,255,0,0),LineStyle.Solid,1); } } }
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() { const char tab = '\u0009'; string item = "[z] Zacks Adjusted Earnings"; IList<FundamentalItem> fList = FundamentalDataItems(item); ClearDebug(); PrintDebug(Bars.Symbol + tab + "Item Count: " + fList.Count); PrintDebug("Date " + tab + "Value" + tab + "Release Time"); foreach (FundamentalItem fi in fList) { PrintDebug(fi.Date.ToShortDateString() + tab + fi.Value.ToString("$#,0.00") + tab + fi.GetDetail("time")); } ChartPane p = CreatePane(30, true, true); PlotFundamentalItems(p, item, Color.FromArgb(255, 255, 0, 0), LineStyle.Solid, 1); } } }