I admit that I do not really understand the problem. It's a programming language, you can calculate anything you want. If you can't use the statistics in the objective function, then why don't you do your own statistics? Zorro has lots of statistics functions.