may want to consider when 2nd trade's TP then closing of 1st trade, that period of time induce slippages which could be better coded. No doubts at times the slippages can be +ve slippages but there would be times when price movement went abnormally high, very large -ve slippages may be observed.