roulette_pl_calculator_labouchere: Roulette P&L betting based on the Labouchere Betting System

View source: R/roulette_pl_calculator_Labouchere.R

roulette_pl_calculator_labouchereR Documentation

Roulette P&L betting based on the Labouchere Betting System

Description

Calculates the potential profit or loss when someone is betting in the roulette based on the Labouchere Betting System.

Usage

roulette_pl_calculator_labouchere(
  bet_minimum,
  bet_maximum,
  initial_capital,
  profit_target,
  profit_sequence,
  simulations_num,
  trials_per_sim
)

Arguments

bet_minimum

The minimum betting amount that the casino allows

bet_maximum

The maximum betting amount that the casino allows

initial_capital

The initial capital to be used

profit_target

The profit amount to be earned

profit_sequence

(Optional) the amounts of the bets to reach this profit amount. If omitted, the minimum betting amount will be used

simulations_num

The number of simulations to be run

trials_per_sim

The number of trials in each simulation

Value

A list containing the minimum, the maximum and the final balance for each simulation. Also the P&L graph for the last simulation will be plotted.

Author(s)

Tasos Grivas <tasos@openriskcalculator.com>

References

https://en.wikipedia.org/wiki/Roulette#Betting_strategies_and_tactics

Examples


# This software is covered by GPL license and provided strictly for educational
# reasons (no actual investment/betting decisions should be taken based on this)
# On top of these, the below example contains a tiny number of simulations and
# trials just to pass CRAN tests - the user would have to highly increase both
# variables when running these.
pl_results = roulette_pl_calculator_labouchere(bet_minimum = 0.1 , bet_maximum = 3276.8,
initial_capital = 20000, profit_target = 100, profit_sequence = rep(10,10),
 simulations_num = 100, trials_per_sim = 100)
summary(pl_results$min_capital)
summary(pl_results$max_capital)
summary(pl_results$final_capital)


Trading documentation built on Feb. 13, 2024, 3 a.m.