| 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: , |
|