Howdy,
Quick question in regards to fast forwarding through a downloaded tic file. I run the following bit of script on a 10 minute chart.
function main() {
var nClose = close(inv("5s"));
debugPrintln("bar " + getCurrentBarIndex() + " close: " + nClose + "\n");
return;
}
If i play back the tic file normally i get numerous values for close() from the 5 second chart as expected. However, if I fast forward or jump to the end of the tic file .... I get one value only per bar whereas I would expect to see a value for every tic in the file. Any ideas on how to get all values for close from a 5 sec chart while fastforwarding through on a 10 min chart or is it impossible?
Thanks,
Chris
Quick question in regards to fast forwarding through a downloaded tic file. I run the following bit of script on a 10 minute chart.
function main() {
var nClose = close(inv("5s"));
debugPrintln("bar " + getCurrentBarIndex() + " close: " + nClose + "\n");
return;
}
If i play back the tic file normally i get numerous values for close() from the 5 second chart as expected. However, if I fast forward or jump to the end of the tic file .... I get one value only per bar whereas I would expect to see a value for every tic in the file. Any ideas on how to get all values for close from a 5 sec chart while fastforwarding through on a 10 min chart or is it impossible?
Thanks,
Chris
Comment