I'm sure many know of calculating the kelly sizing for an optimum bet. This algo does things a bit differently. It attempts to pick stocks based on some other formulas surrounding the kelly criterion. This algo will ask for your desired bet size and you pick stocks based on a criterion such as minimum variance or maximum growth with that bet size. It doesn't do any fancy entry, exit, or risk control. It's also long only. It might be useful for real trading in your personal account if you managed to figure out a strategy around it. The algo comes with different options and parameters that you can fiddle with. Let me know if you figure out the parameters that'll make money :). By the way, you can read all about these formulas in "THE KELLY CRITERION IN BLACKJACK SPORTS BETTING, AND THE STOCK MARKET" by Thorp.
I'm going to post 3 different results based on variance, growth, and time. The first will be stock picking based on minimal variance.