How could I know the number of bars that has passed since my last openness of a position?

 

int barsSinceOpen = (Time[0] - timePositionWasOpened)/(Period()*60);

 
Thanks! That's a good idea :-)
Reason: