View source: R/CalcUKLotteryPnL.R
CalcUKLotteryPnL | R Documentation |
Calculates the PnL for a pay out structure created during backtesting
CalcUKLotteryPnL(backtested_results, plot_results = FALSE)
backtested_results |
The UKLottery 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>
uklottery_results = UKLotteryResults()
user_input = c(5,10,20,30,40,50)
backtested_results = UKLotteryBacktesting(uklottery_results,, user_input)
pnl_result = CalcUKLotteryPnL(backtested_results, plot_results = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.