Not quite sure why this is happening and it is driving me nuts!!
Attach this simple efs to a 2m chart of the S&P mini (ES #F,2) and a 2m chart of the $TICK ($TICK,2).
All it's supposed to do is plot the close of the current $TICK bar -- no big deal. But the close values I get back on the ES chart are wrong and do not match up with the Tick chart -- actually the data is old by two bars. Why??
function preMain() {
setStudyTitle("Tick");
setDefaultBarFgColor(Color.red, 0);
setDefaultBarThickness(2, 0);
}
function main(nLength) {
var Cl = close(0,"$TICK");
return Cl;
}
I tried to attach a image showing an example but couldn't figure out how... Should be easy enough to duplicate.
Thanks!!
Attach this simple efs to a 2m chart of the S&P mini (ES #F,2) and a 2m chart of the $TICK ($TICK,2).
All it's supposed to do is plot the close of the current $TICK bar -- no big deal. But the close values I get back on the ES chart are wrong and do not match up with the Tick chart -- actually the data is old by two bars. Why??
function preMain() {
setStudyTitle("Tick");
setDefaultBarFgColor(Color.red, 0);
setDefaultBarThickness(2, 0);
}
function main(nLength) {
var Cl = close(0,"$TICK");
return Cl;
}
I tried to attach a image showing an example but couldn't figure out how... Should be easy enough to duplicate.
Thanks!!
Comment