.initPosPL | R Documentation |
Constructs the data container used to store calculated P&L values from transactions and close prices.
.initPosPL(
initDate = "1950-01-01",
...,
initPosQty = 0,
initConMult = 1,
initCcyMult = 1
)
initDate |
date prior to the first close price given, used to contain initial account equity and initial position |
... |
any other passthrough parameters |
initPosQty |
initial position, default is zero |
initConMult |
initial contract multiplier, default is one(1) |
initCcyMult |
initial currency multiplier, default is one(1) |
Constructs multi-column xts object used to store derived position information
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.