Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Mathematica Portfolio' topicStudent Support Forum > General > Archives > "Mathematica Portfolio"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
06/01/12 08:54am

Something like this?

portfolio = {
{"GE", 100},
{"IBM", 20}
};
Sum[FinancialData[portfolio[[i, 1]]]*portfolio[[i, 2]], {i,
Length[portfolio]}]

This updates every second:

Dynamic[Refresh[
Sum[FinancialData[portfolio[[i, 1]]]*portfolio[[i, 2]], {i,
Length[portfolio]}], UpdateInterval -> 1]]

You can any sort of complicated things, including plotting the value over time, but I'll let you figure out what you want to do.

URL: ,

Subject (listing for 'Mathematica Portfolio')
Author Date Posted
Mathematica Portfolio Harold 05/27/12 1:40pm
Re: Mathematica Portfolio Michael 06/01/12 08:54am
< Previous CommentHelp | Reply To Comment | Reply To Topic