CopyBuffer Getting Different Values Than Indicator

 

Data Window does not matchup to EA values I'm getting from CopyBuffer. Sometimes it works then sometimes it gets off values. Any ideas??

int OnInit()
  {  
    Trade = new CTrade(); 
         
       y=0;

   ArraySetAsSeries(EUR,true);
   ArraySetAsSeries(GBP,true);
   ArraySetAsSeries(AUD,true);
   ArraySetAsSeries(NZD,true);
   ArraySetAsSeries(USD,true);
   ArraySetAsSeries(CAD,true);
   ArraySetAsSeries(CHF,true);
   ArraySetAsSeries(JPY,true);

      CurrencyStrength = iCustom(Symbol(),PERIOD_CURRENT,"CURRENCY_STRENGTH_INDEX");

    if(CurrencyStrength==INVALID_HANDLE)
     {
      //--- tell about the failure and output the error code
      PrintFormat("Failed to create handle of the iCustom indicator for the symbol %s/%s, error code %d",
                  Symbol(),
                  EnumToString(Period()),
                  GetLastError());
      //--- the indicator is stopped early
      return(INIT_FAILED);
      }
  return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {

  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {

datetime date = TimeCurrent();
MqlDateTime now;
TimeToStruct(date,now);
//if(now.hour > 9 && now.hour <22)
 // {

  if (NewBar())
  {
  ArrayFree(EUR);
  ArrayFree(GBP);
  ArrayFree(AUD);
   ArrayFree(NZD);
    ArrayFree(USD);
     ArrayFree(CAD);
      ArrayFree(CHF);
      ArrayFree(JPY);

  CopyBuffer(CurrencyStrength, 0, 1, 2, EUR);
  CopyBuffer(CurrencyStrength, 1, 1, 2, GBP);
  CopyBuffer(CurrencyStrength, 2, 1, 2, AUD);
  CopyBuffer(CurrencyStrength, 3, 1, 2, NZD);
  CopyBuffer(CurrencyStrength, 4, 1, 2, USD);
  CopyBuffer(CurrencyStrength, 5, 1, 2, CAD); 
  CopyBuffer(CurrencyStrength, 6, 1, 2, CHF);
  CopyBuffer(CurrencyStrength, 7, 1, 2, JPY);  
  Current[0] = EUR[0];
  Current[1] = GBP[0];
  Current[2] = AUD[0];
  Current[3] = NZD[0];
  Current[4]  = USD[0];
 Current[5]   = CAD[0];
  Current[6]  = CHF[0];
  Current[7]  = JPY[0];
  Previous[0] = EUR[1];
  Previous[1] = GBP[1];
  Previous[2] = AUD[1];
  Previous[3] = NZD[1];
  Previous[4]= USD[1];
  Previous[5] = CAD[1];
  Previous[6]= CHF[1];
  Previous[7] = JPY[1];
Reason: