Has anyone successfully applied the kelly position sizing criterion to a backtest?

If so how did you do it? Are you willing to share your code or is there a QC api that can assist?

Author