Generalized framework for applying the Kelly criterion to stock markets | Arena Library | Arena