There can be many reasons of differences, for instance a different start/end time of your bars, some local time or daylight saving time.

The data in the History folder consists of 1 minute ticks that are put together to the bar period. It is identical to the data that you get with real trading. So it can serve as reference data. Data from other sources must be similar or something is wrong with the source or the conversion.

For finding where your data is different, you can simply compare the raw data by using BarPeriod=1. Look especially at the time stamp.

The number of decimals depends on your print format, not on the broker's pip size. Use %.5f for 5 digits.