could someone PLEASE tell me what is wrong with this code?

 

in a costum indicator I want the program to copy D1 and M1 rates but it wont copy the M1 rates. Could someone please help me with this? it's driving me crazy


   int                              RatesDCopyCheck=CopyRates(_Symbol,PERIOD_D1,TerminalFirstDay,LastDay,RatesD);
   int                              RatesM1CopyCheck=CopyRates(_Symbol,PERIOD_M1,TerminalFirstDay,LastDay,RatesM1);

Reason: