Implemented trailing stoploss