Ejemplo n.º 1
0
 void PlotHistoryInternal(LineGraph graph, List <float> history)
 {
     graph.Data.Clear();
     graph.Target.Clear();
     for (int i = 0; i < history.Count; ++i)
     {
         graph.Data.Add(history[i]);
     }
     graph.SetColor(0, 0, 0);
     graph.SetBackgroundColor(216, 255, 216);
     graph.SetBaseline(0);
     graph.SetLabel("Evolution");
     graph.Refresh();
 }
Ejemplo n.º 2
0
 public void Plot(LineGraph graph, Stock.Type type, int min, int max)
 {
     graph.Data.Clear();
     for (int i = min; i <= max; ++i)
     {
         float value = GetValue(type, i);
         graph.Data.Add(value);
     }
     graph.SetColor(0, 0, 0);
     graph.SetBaseline(1);
     graph.SetBaselineColor(128, 0, 0);
     graph.SetBackgroundColor(232, 255, 240);
     graph.ShowBaseline(false);
     graph.HideLegendMinMax();
     graph.SetLabel("24m");
     graph.Refresh();
 }
Ejemplo n.º 3
0
        public void PlotHistory(LineGraph graph)
        {
            float target = AssetsHistory[0];

            graph.Data.Clear();
            graph.Target.Clear();
            for (int i = 0; i < AssetsHistory.Count; ++i)
            {
                graph.Data.Add(AssetsHistory[i]);
                graph.Target.Add(target);
                target *= TARGET_PROFIT;
            }
            graph.SetColor(0, 0, 0);
            graph.SetBackgroundColor(255, 255, 232);
            graph.SetBaseline(InitialCash, InitialCash - 100000, InitialCash + 100000);
            graph.SetLabel("Evolution");
            graph.Refresh();
        }
Ejemplo n.º 4
0
 public void Plot(LineGraph graph, Stock.Type type, int min, int max)
 {
     graph.Data.Clear();
     for (int i = min; i <= max; ++i)
     {
         float value = GetValue(type, i);
         graph.Data.Add(value);
     }
     graph.SetColor(0, 0, 0);
     graph.SetBaseline(1);
     graph.SetBaselineColor(128, 0, 0);
     graph.SetBackgroundColor(232, 255, 240);
     graph.ShowBaseline(false);
     graph.HideLegendMinMax();
     graph.SetLabel("24m");
     graph.Refresh();
 }
Ejemplo n.º 5
0
 void PlotHistoryInternal(LineGraph graph, List<float> history)
 {
     graph.Data.Clear();
     graph.Target.Clear();
     for (int i = 0; i < history.Count; ++i)
     {
         graph.Data.Add(history[i]);
     }
     graph.SetColor(0, 0, 0);
     graph.SetBackgroundColor(216, 255, 216);
     graph.SetBaseline(0);
     graph.SetLabel("Evolution");
     graph.Refresh();
 }
Ejemplo n.º 6
0
        public void PlotHistory(LineGraph graph)
        {
            float target = AssetsHistory[0];

            graph.Data.Clear();
            graph.Target.Clear();
            for (int i = 0; i < AssetsHistory.Count; ++i)
            {
                graph.Data.Add(AssetsHistory[i]);
                graph.Target.Add(target);
                target *= TARGET_PROFIT;
            }
            graph.SetColor(0, 0, 0);
            graph.SetBackgroundColor(255, 255, 232);
            graph.SetBaseline(InitialCash, InitialCash - 100000, InitialCash + 100000);
            graph.SetLabel("Evolution");
            graph.Refresh();
        }