public Spinoffpublic string ParentName; public string ParentTicker; public string SpinoffName; public string SpinoffTicker; public string ExpectedDate;
public StockSpinoffDownloader public static void StockSpinoffDownloader.DeSerialize()public List Spinoffs() public Spinoff FindSymbol(string symbol)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { ClearDebug(); // Attempts to read spinoffs from cache. Will download and rebuild automatically on absence or obsoleteness. StockSpinoffDownloader c = StockSpinoffDownloader.DeSerialize(); DrawLabel(PricePane, "Upcoming spinoffs: " + c.Spinoffs.Count.ToString() + Environment.NewLine); ClearDebug(); PrintDebug( "Upcoming spinoffs: " + c.Spinoffs.Count + "\n" ); foreach( var s in c.Spinoffs ) { PrintDebug( s ); } } } }