Learn R Programming

Trading (version 3.2)

UKLotteryBacktesting: UKLottery Backtesting

Description

Backtests the numbers the user has selected against the full (or the specified) history of UKLottery results

Usage

UKLotteryBacktesting(uklottery_results, date_since, user_input)

Value

The backtested results

Arguments

uklottery_results

The full list of UKLottery results

date_since

The date after which the analysis is to be performed, i.e. 2022-12-22

user_input

The seven numbers the user has selected

Author

Tasos Grivas <tasos@openriskcalculator.com>

Examples

Run this code

uklottery_results = UKLotteryResults()
user_input = c(5,10,20,30,40,50)
backtested_results = UKLotteryBacktesting(uklottery_results, '2005-01-01', user_input)

Run the code above in your browser using DataLab