Example #1
0
        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]));
            }
        }
Example #2
0
 public AlgorithmPlusGlue()
 {
     _plotter = new Plotter(this);
     Alloc    = new AllocationTracker();
 }
Example #3
0
 public static void AddTargetAllocationRow(this Plotter plotter, AllocationTracker alloc)
 {
     // TODO: write historical allocations here
 }