Skip to content

benthamite/kelly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

kelly

Introduction

kelly is an Emacs Lisp implementation of the Kelly criterion, a formula used to determine the optimal size of a series of bets.

Installation

Manual installation

Clone this repository and add this to your init.el file:

(add-to-list 'load-path "path/to/kelly")

Where "path/to/kelly" is the path to the local repository you just cloned.

Package managers

If you use a package manager, or Emacs +30, you just need to add this your init.el file:

;; with vc (Emacs 30 or later)
(use-package kelly
:vc (:url "https://github.com/benthamite/kelly"))

;; with elpaca
(use-package kelly
:ensure (:host github :repo "benthamite/kelly"))

;; with straight
(use-package kelly
:straight (:host github :repo "benthamite/kelly"))

;; with quelpa
(use-package kelly
:quelpa (kelly :fetcher github :repo "benthamite/kelly"))

Configuration

kelly-b-parameter-format

Specifies the format of the b parameter. Supported formats:
  • fractional-odds (default): Prompts for fractional (British) odds (e.g. 3).
  • decimal-odds: Prompts for decimal (European) odds (e.g. 4).
  • moneyline-odds: Promps for Moneyline (American) odds (e.g. 300).
  • implied-probability: Prompts for the implied betting odds probability (e.g. 0.25).
  • implied-percent: Prompts for the implied betting odds percentage (e.g. 25%). (The percent symbol is optional.)

kelly-fraction

A multiplier applied to the computed Kelly fraction. The default value of 1 uses the full Kelly recommendation, while a value less than 1 scales the wager down proportionally.

kelly-bankroll

Sets your total available funds for wagering. If left as nil, you’ll be prompted to enter a value when running kelly for the first time.

kelly-bankroll-currency

Specifies your currency symbol (default is "$").

Usage

M-x kelly RET.

Troubleshooting

The package has not been extensively tested. If you encounter any problems, feel free to open an issue.

About

Emacs Lisp implementation of the Kelly criterion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published