Recall result of last trade

 

is it possible to recall if the last trade hit TP or SL and make a trade according to that? thanks.