If I run the following EFS I do not get the same amount of 'old' data for $indu as I do for the 'chart' symbol (in this case i'm using ES H3). Is there a way of loading more $INDU data in a EFS? (I assume this is the problem!!)
Note: It depends on the interval how much 'old' $indu data is available. On daily it seems to go way back, but on 3min it only goes back as far as 2 days.
function preMain() {
firsttime = "Y";
}
function main() {
if(firsttime == "Y") {
debugPrintln("oldest $INDU", getOldestBarIndex("$INDU"));
debugPrintln("oldest this sym", getOldestBarIndex());
firsttime = "N";
}
var sInterval = getInterval();
var nSymbol = "$INDU" + "," + sInterval;
var vRet1 = getValue("close", 0, nSymbol);
return(vRet1);
}
Note: It depends on the interval how much 'old' $indu data is available. On daily it seems to go way back, but on 3min it only goes back as far as 2 days.
function preMain() {
firsttime = "Y";
}
function main() {
if(firsttime == "Y") {
debugPrintln("oldest $INDU", getOldestBarIndex("$INDU"));
debugPrintln("oldest this sym", getOldestBarIndex());
firsttime = "N";
}
var sInterval = getInterval();
var nSymbol = "$INDU" + "," + sInterval;
var vRet1 = getValue("close", 0, nSymbol);
return(vRet1);
}
Comment