trade-analysis function

Analysing Trades: Compute Profit/Loss, Resize and more