I would say that if you only calculate this indicator on a per bar basis then they should match but if you allow it to run as per tick as it is currently coded then I think history will match but you might see drift as you stated running it live
All the Best to you and your family this holiday season

EK