Previous value of T-1 candle do not match with current value of T-2 candle?

 
Hi I am testing a EA, I am using a fast ema handle to get the value of previous fast ema and current fast ema. Please note that for a candle T, I am fetching current value of fast ema for T-1, and previous value of fast ema for T-2. I am doing this because the current candle is still forming, so getting current value of current candle T can be wrong. 

Now as per the logic, previous value of candle T-1 should match with current value of candle T-2, but in the logs which I have attached its not matching.

Can anyone please verify my code and the logs and suggest what I can change in the code or what is the issue ? 

Many Thanks
Files:
log.txt  1 kb
test_ema.mq5  2 kb
 
   double currentFastEMA   = fastEMAValues[0];
   double previousFastEMA  = fastEMAValues[1];
You didn't set the source to as-series before populating values.