Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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);
}
//+------------------------------------------------------------------+