Exemplo n.º 1
0
        public RightWayViewModel()
        {
            DisplayName = "02. Right Way";

            Model = new Ch02Model2
            {
                Ticker     = "IBM",
                Date       = Convert.ToDateTime("7/14/2015"),
                PriceOpen  = 169.43,
                PriceHigh  = 169.54,
                PriceLow   = 168.24,
                PriceClose = 168.61,
            };
        }
Exemplo n.º 2
0
        private void GetInitialData()
        {
            var model = new Ch02Model2
            {
                Ticker     = "IBM",
                Date       = Convert.ToDateTime("7/14/2015"),
                PriceOpen  = 169.43,
                PriceHigh  = 169.54,
                PriceLow   = 168.24,
                PriceClose = 168.61,
                Volume     = 2974900
            };

            DataCollection.Add(model);

            model = new Ch02Model2
            {
                Ticker     = "MSFT",
                Date       = Convert.ToDateTime("7/14/2015"),
                PriceOpen  = 45.45,
                PriceHigh  = 45.96,
                PriceLow   = 45.31,
                PriceClose = 45.62,
                Volume     = 22723700
            };
            DataCollection.Add(model);

            model = new Ch02Model2
            {
                Ticker     = "INTC",
                Date       = Convert.ToDateTime("7/14/2015"),
                PriceOpen  = 29.66,
                PriceHigh  = 30.11,
                PriceLow   = 29.44,
                PriceClose = 29.65,
                Volume     = 39276800
            };
            DataCollection.Add(model);

            model = new Ch02Model2
            {
                Ticker     = "IBM",
                Date       = Convert.ToDateTime("7/13/2015"),
                PriceOpen  = 167.93,
                PriceHigh  = 169.89,
                PriceLow   = 167.52,
                PriceClose = 169.38,
                Volume     = 4225500
            };
            DataCollection.Add(model);

            model = new Ch02Model2
            {
                Ticker     = "MSFT",
                Date       = Convert.ToDateTime("7/13/2015"),
                PriceOpen  = 44.98,
                PriceHigh  = 45.62,
                PriceLow   = 44.95,
                PriceClose = 45.54,
                Volume     = 24994700
            };
            DataCollection.Add(model);

            model = new Ch02Model2
            {
                Ticker     = "INTC",
                Date       = Convert.ToDateTime("7/13/2015"),
                PriceOpen  = 29.27,
                PriceHigh  = 29.82,
                PriceLow   = 29.19,
                PriceClose = 29.73,
                Volume     = 26335600
            };
            DataCollection.Add(model);
        }