Average holding time of positions

 

Hi to all! Perhaps someone has faced such a problem: need to determine the average time of holding positions. In MQL4 it's not difficult, but in MQL5 I don't understand how to do it... I'm just starting to learn MQL5, so don't be strict with me :)