Fixed a bug in the trades analyzer. Proportional commissions when switching from long to short or viceversa were not properly calculated.