The following code was used to check the relationship between present time delivered by "new Date()",
tickTime from "getValue("time",Symbol+",1T")*1" and
rawTime obtained through "getValue("rawtime",Symbol+",1T")*1"
I would have expected that tickTime equals rawTime*1000
(additionally a time zone dependent correction could be required; in my case 3600 seconds);
However, an additional correction of 60 or 61 seconds seems to be neccessary to bring rawtime in sync with time (tested with ES M4 for various intervalls).
I noticed this first when a log file routine showed that the time stamp of the ticks obtained through getValue("rawtime",Symbol+",1T")*1 was 60secs ahead of the eSignal synchronized system time.
Is this a new feature to look (one minute ahead) beyond present time, is it a bug or am I doing something wrong?
________________________________________
var Symbol = getSymbol();
function preMain()
{
}
function main()
{
if(getCurrentBarIndex() ==0)
{
var tickTime = getValue("time",Symbol+",1T")*1;
var tickRawTime = getValue("rawtime",Symbol+",1T")*1;
var now = new Date();
debugPrintln("tick time: "+eval((tickTime)));
debugPrintln("tick rawtime: "+eval((tickRawTime-3660)*1000));
debugPrintln("real time: "+eval(now.getTime()));
debugPrintln("price: "+close()+" volume: "+volume());
debugPrintln("");
}
}
tickTime from "getValue("time",Symbol+",1T")*1" and
rawTime obtained through "getValue("rawtime",Symbol+",1T")*1"
I would have expected that tickTime equals rawTime*1000
(additionally a time zone dependent correction could be required; in my case 3600 seconds);
However, an additional correction of 60 or 61 seconds seems to be neccessary to bring rawtime in sync with time (tested with ES M4 for various intervalls).
I noticed this first when a log file routine showed that the time stamp of the ticks obtained through getValue("rawtime",Symbol+",1T")*1 was 60secs ahead of the eSignal synchronized system time.
Is this a new feature to look (one minute ahead) beyond present time, is it a bug or am I doing something wrong?
________________________________________
var Symbol = getSymbol();
function preMain()
{
}
function main()
{
if(getCurrentBarIndex() ==0)
{
var tickTime = getValue("time",Symbol+",1T")*1;
var tickRawTime = getValue("rawtime",Symbol+",1T")*1;
var now = new Date();
debugPrintln("tick time: "+eval((tickTime)));
debugPrintln("tick rawtime: "+eval((tickRawTime-3660)*1000));
debugPrintln("real time: "+eval(now.getTime()));
debugPrintln("price: "+close()+" volume: "+volume());
debugPrintln("");
}
}
Comment