View source: R/CalcEuroLotteryPnL.R
CalcEuroLotteryPnL | R Documentation |
Calculates the PnL for a pay out structure created during backtesting
CalcEuroLotteryPnL(backtested_results, plot_results = FALSE)
backtested_results |
The EuroMillions/EuroJackpot 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>
euromillions_results = EuroMillionsResults()
user_input = c(10,20,30,40,50,5,10)
backtested_results = EuroLotteryBacktesting(euromillions_results, '2005-01-01', user_input)
pnl_result = CalcEuroLotteryPnL(backtested_results, plot_results = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.