Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Finance[DynamicPortfolio] - create new dynamic portfolio
Calling Sequence
DynamicPortfolio(update, weights, components, updates)
Parameters
update
-
procedure; procedure for determining how the weights should be updated
weights
list or Vector; initial weights
components
stochastic process, list or Vector of stochastic processes; components of the portfolio
updates
(optional) continuous or positive integer; indicates how often the portfolio should be updated
Description
The DynamicPortfolio command creates new dynamically updated portfolio.
The parameter update is a procedure used for calculating the updated weights of the portfolio. This procedure will be called every time the portfolio is rebalanced. The following five arguments will be passed to the procedure: , , , and , where is the vector of new weights, is the vector of new values, is the vector of old weights, is the vector old values and is the current time.
The parameter weights is the vector of initial weights.
The parameter components is either a multi-dimensional stochastic process or a vector of one-dimensional stochastic processes.
Finally, the (optional) parameter updates controls how often the portfolio should be updated. Possible values are continuous or any positive integer. This integer value will specify the number of updates per year. If the value of this parameter is continuous, then the portfolio will be updated at every point in the discretization time grid.
Compatibility
The Finance[DynamicPortfolio] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
Consider two processes. The first process is a geometric Brownian motion. The second process is a deterministic process with constant value 1.0.
U := proc(w, w0, x, x0, t) if x[1] < 1.05 then w[1] := 0; w[2] := 1; else w[1] := 1; w[2] := 0; end if; end proc;
Q := DynamicPortfolio(proc() end, W, X):
R := DynamicPortfolio(proc() end, <0.0, 1.0>, X):
See Also
Finance[BlackScholesProcess], Finance[CEVProcess], Finance[Diffusion], Finance[Drift], Finance[ExpectedValue], Finance[GeometricBrownianMotion], Finance[ItoProcess], Finance[PathPlot], Finance[SamplePath], Finance[SampleValues], Finance[StochasticProcesses], Finance[WienerProcess]
Download Help Document