Has anyone successfully implemented the kelly criterion? I've been stuck on trying to implement this as a function that returns the risk/kelly% but I haven't had any luck. I've seen a few posts on this and the only functional example was one that takes in a universe and sorts them by the kelly %. I haven't seen a function call for one strategy and/or weigh it against your portfolio. Please help.