int ArrayCopyRates( double&dest_array[], string symbol=NULL, int timeframe=0) in Strategy tester

 

When using ArrayCopyRates, using Different timeframes, Comment shown below returns current date time rather than Time in Testing

Want to use it in B-clock to show remaining minutes in different timeframes.

//+------------------------------------------------------------------+
//| CopyArray.mq4 |
//+------------------------------------------------------------------+

#property indicator_chart_window
//---- buffers
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
}
return(0);
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
double array1[][6];
ArrayCopyRates(array1,NULL,PERIOD_M1);

Comment("Current bar ",TimeToStr(array1[0][0])," OpenPrice ", array1[0][1]);

return(0);
}
//+------------------------------------------------------------------+