View source: R/CalcSetForLifePnL.R
CalcSetForLifePnL | R Documentation |
Calculates the PnL for a pay out structure created during backtesting
CalcSetForLifePnL(backtested_results, plot_results = FALSE)
backtested_results |
The Set For Life results backtested against the user input |
plot_results |
(Optional) If TRUE, the P&L historical graphs are plotted, default FALSE |
PnL figures
Tasos Grivas <tasos@openriskcalculator.com>
setforlife_results = SetForLifeResults()
user_input = c(10,20,30,40,50,5)
backtested_results = SetForLifeBacktesting(setforlife_results, date_since='2005-01-01', user_input)
pnl_result = CalcSetForLifePnL(backtested_results, plot_results = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.