Package |
backtestGraphics |
Type: |
Package |
Version: |
0.1-1 |
Date: |
2015-07-14 |
License: |
GPL-3 |
The package contains a main function backtestGraphics
that takes in a
data frame of backtest results, and returns summary statistics about the data
frame and plots the historical traces of market values and profits. The package
also contains many helper functions that perform the calculations and
plotting for the backtestGraphics
function. These helper functions can
only be called within the backtestGraphics
function.
The package contains three data frames, commodity
, equity
and
credit
. The commodity
data frame contains the backtest results
for 28 commodities in the futures market. The equity
data frame
contains the backtest results for random 50 stocks. The credit
data
frame is the backtest result for credit default swap. The user can simply
call backtestGraphics
with these data frames. An example will be
backtestGraphics(x = commodity)
.
In order to use the user's own data frame, sometimes the user might need to
specify the column names of her data frame and pass them into the function.
Type ?backtestGraphics
for more details.