Пример #1
0
        public PlayScreen()
        {
            start = new DateTime(2014, 5, 5);
            DateTime dateToStart = new DateTime(2015, 5, 5);
            end = new DateTime(2016, 5, 2);

            gl = new GameLogic(dateToStart, 100000M);

            gl.getData("C", start.ToString("yyyyMMdd"), end.ToString("yyyyMMdd"));
            gl.getData("JPM", start.ToString("yyyyMMdd"), end.ToString("yyyyMMdd"));
        }
Пример #2
0
        private void startCampaign1()
        {
            DateTime start = new DateTime(2014, 5, 5);
            DateTime dateToStart = new DateTime(2015, 5, 5);
            DateTime end = new DateTime(2016, 5, 2);

            GameLogic gl = new GameLogic(dateToStart, 100000M);

            string[] symbols = { "JPM", "C", "AXP", "USB", "BAC", "WFC", "BK", "PNC" };
            foreach(string s in symbols)
            {
                gl.getData(s, start.ToString("yyyyMMdd"), end.ToString("yyyyMMdd"));
            }

            ScreenManager.AddScreen(new PlayScreen(gl));
        }
Пример #3
0
        private void startSandbox()
        {
            DateTime start = new DateTime(2014, 5, 5);
            DateTime dateToStart = new DateTime(2015, 5, 5);
            DateTime end = new DateTime(2016, 5, 2);

            GameLogic gl = new GameLogic(dateToStart, 100000M);

            string[] symbols = { "AAPL", "GOOG", "TSLA", "NFLX", "AMD", "NVDA" };
            foreach (string s in symbols)
            {
                gl.getData(s, start.ToString("yyyyMMdd"), end.ToString("yyyyMMdd"));
            }

            ScreenManager.AddScreen(new PlayScreen(gl));
        }