Copytime Doesn´t Work as Spected At The End of The Week

 
Hi! When there is no new servidor data my code doesn´t seem to work:

datetime   timeCandles[];
datetime   time = D'2020.07.10 15:30';
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   ZeroMemory(timeCandles);
   
   CopyTime(_Symbol,_Period,StringToTime("21:05"),5,timeCandles);
   
   ArrayPrint(timeCandles, Digits(), NULL, 0, WHOLE_ARRAY, ARRAYPRINT_HEADER | ARRAYPRINT_INDEX | ARRAYPRINT_LIMIT | ARRAYPRINT_ALIGN);
  
   Print(time);
  }

On normal week days it should print the Array starting on 21:05, but on the weekends I receive the last data of the week (like if I was working with iTime instead of CopyTime):

2020.07.10 23:50:00 2020.07.10 23:51:00 2020.07.10 23:52:00 2020.07.10 23:53:00 2020.07.10 23:54:00


Why? And is there a way to solve this? (even if I put all datetime information asking for other day it gives the same result)

 
israeltandrade: but on the weekends I receive the last data of the week (

Do you expect it to read future, nonexistence bars? There is nothing to read, there is nothing to solve.

 
William Roeder:

Do you expect it to read future, nonexistence bars? There is nothing to read, there is nothing to solve.

No, I just want to reference last previous day with that time. As I said, I've tried to put a complete datetime info ('D 2020.07.09 15:30' for example) and the result is the same.

I've also tried to subtract PERIOD_D1. No sucess.
Reason: