You can get the values from the PERFORMANCE struct of which a pointer is passed as sole parameter to the objective function. The struct is defined in trading.h.

What do you mean with ascending order?