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