Cumulative profit in trading