KellyRatio function

calculate Kelly criterion ratio (leverage or bet size) for a strategy