Description Usage Arguments Value
Returns a plot and statistics for a relative momentum based on ROC ranking This function is customized to work with IPA's Shiny App
1 2 3 4 5 |
listData |
Data from Yahoo in form OHLCAV. The adjusted prices is used s these must be present |
period |
Period at which one want to obtain data. Can be "days", "weeks", "months", "quarters" or "years" |
lookback |
Lookback periods used to rank assets |
dateStart |
Date at which the strategy shall start. The lookback period is looking before this date so it is the start date of the strategy. |
dateEnd |
Date at which the strategy shall end |
weights |
weights when using a weighted momentum. Vector which should have lenth three and sum to one |
NumAssets |
Number of assets in optimal portfolio |
size |
Number of asset one buy (or sell) in each transaction. Default is one |
UseTC |
Logical if one want to use transaction cast |
TCmin |
Minimum transactionamount |
TCrate |
Rate in which the transaction cost is calculated. This is only used if it is over the minimal amount |
ChoosenAssets |
Assets one have choosen in strategy |
list
name plotCumReturn |
ggplot of cumreturns for different assets |
name StatTable |
Table of statistics |
name rank.first |
Table of rank for first lookback period |
name rank.second |
Table of rank for second lookback period |
name rank.third |
Table of rank for third lookback period |
name rank.ave |
Table of rank for average lookback period |
name rank.weight.ave |
Table of rank for weighted average lookback period |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.