How to find profit from history by Order ticket ?

 
i save order ticket to database and  after backtest  finish  i want to update profit  to my  database but i can't find   profit from history deal by use order ticket .