equal
deleted
inserted
replaced
1 // Main Part about a really dumb investment strategy |
1 // Core Part about a really dumb investment strategy |
2 //=================================================== |
2 //=================================================== |
3 |
3 |
|
4 object CW6b { |
4 |
5 |
5 //two test portfolios |
6 //two test portfolios |
6 |
7 |
7 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU") |
8 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU") |
8 val rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CCI", |
9 val rstate_portfolio = List("PLD", "PSA", "AMT", "AIV", "AVB", "BXP", "CCI", |
79 |
80 |
80 //println("Real data: " + investment(rstate_portfolio, 1978 to 2019, 100)) |
81 //println("Real data: " + investment(rstate_portfolio, 1978 to 2019, 100)) |
81 //println("Blue data: " + investment(blchip_portfolio, 1978 to 2019, 100)) |
82 //println("Blue data: " + investment(blchip_portfolio, 1978 to 2019, 100)) |
82 |
83 |
83 |
84 |
|
85 } |