templates/drumb.scala
changeset 144 716042628398
parent 135 077e63e96287
equal deleted inserted replaced
143:11396c17cd8b 144:716042628398
     4 object CW6c {
     4 object CW6c {
     5 
     5 
     6 
     6 
     7 //two test portfolios
     7 //two test portfolios
     8 
     8 
     9 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "YHOO", "AMZN", "BIDU")
     9 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")
    10 val rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CBG", "CCI", 
    10 val rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CCI", 
    11                             "DLR", "EQIX", "EQR", "ESS", "EXR", "FRT", "GGP", "HCP") 
    11                             "DLR", "EQIX", "EQR", "ESS", "EXR", "FRT", "GGP", "HCP") 
    12 
    12 
    13 
    13 
    14 // (1.a) The function below takes a stock symbol and a year as arguments.
    14 // (1.a) The function below takes a stock symbol and a year as arguments.
    15 //       It should read the corresponding CSV-file and read the January 
    15 //       It should read the corresponding CSV-file and read the January