public static void AddTargetAllocation(this Plotter plotter, AllocationTracker alloc) { plotter.SelectChart(string.Format("Target Allocation as of {0:MM/dd/yyyy}", alloc.LastUpdate), "Name"); foreach (Instrument i in alloc.Allocation.Keys.OrderByDescending(k => alloc.Allocation[k])) { plotter.SetX(i.Name); plotter.Plot("Symbol", i.Symbol); plotter.Plot("Allocation", string.Format("{0:P2}", alloc.Allocation[i])); } }
public AlgorithmPlusGlue() { _plotter = new Plotter(this); Alloc = new AllocationTracker(); }
public static void AddTargetAllocationRow(this Plotter plotter, AllocationTracker alloc) { // TODO: write historical allocations here }