Adjust for timezone difference

 

I have written an EA to perform some backtesting on EURUSD M5 chart. My EA only consists of 2 EMA and a Stochastic condition. 


I tried running it using Histdata.com past data from 2010 to April 2017. It produced pretty good results. However, when I tried using past data from Meta Quotes (downloaded from history center), the results were horrible. 


I realised that the data from Histdata.com is based on EST timezone, which is different Meta Quotes. How do I adjust for this difference to get my EA to achieve the same results? 

Reason: