I'm wanting to get the date of the last bar and compare it with current
date - the code below returns {EMPTY} for vLastDate and 1.08042e+006
for vCurrDate.
vLastBar = LastValue(BarIndex());
vDate = DateNum();
vLastDate = vDate[vLastBar];
vCurrDate = Now(3);
_TRACE("| LastBar " + vLastBar + " | LastDate " + vLastDate + " |
CurrDate " + vCurrDate);
Any suggestions, please.
Graham
