Exemplo n.º 1
0
        public void setSimulation(SimulationModel simulation)
        {
            this.GraphSimulation       = simulation;
            SeriesCollection[0].Values = new ChartValues <double> {
            };
            SeriesCollection[1].Values = new ChartValues <double> {
            };
            Labels = new List <string> {
            };

            foreach (var item in GraphSimulation.GetRebalancement())
            {
                SeriesCollection[0].Values.Add(item.prixOption());
                SeriesCollection[1].Values.Add(item.ValeurPortefeuille);
                Labels.Add(item.Date.ToShortDateString());
            }
            YFormatter = value => value.ToString("C");
        }
Exemplo n.º 2
0
        public void setSimulation(SimulationModel simulation)
        {
            this.GraphSimulation       = simulation;
            SeriesCollection[0].Values = new ChartValues <double> {
            };
            SeriesCollection[1].Values = new ChartValues <double> {
            };
            Labels = new List <string> {
            };

            for (int i = 0; i <= simulation.Balancement.Hedge.Count - 1; i++)
            {
                SeriesCollection[0].Values.Add(simulation.Balancement.PriceOption[i]);
                SeriesCollection[1].Values.Add(Convert.ToDouble(simulation.Balancement.Hedge[i]));
                Labels.Add(simulation.Balancement.Dates[i].ToShortDateString());
            }
            YFormatter = value => value.ToString("C");
        }
Exemplo n.º 3
0
        //private IDataType dataType;

        #endregion Private Fields

        #region Public Constructors

        public Universe(SimulationModel simulation, Graph graph)
        {
            this.simulation = simulation;
            this.graph      = graph;
            graph.setSimulation(simulation);
        }