I have a script that works fine in eSignal 10 but does not work in eSignal 11. I have spent time tracking down the issue and have found that we can't get a valid data series off some built-ins when feeding it an inv("M"). Been testing with ES #F. In eSignal 10 the output window prints real values. In eSignal 11 it only prints "null" for the values. Here's the demo EFS:
var closes = null;
var regs = null;
function preMain()
{
setPriceStudy(true);
}
function main()
{
if (getBarState() == BARSTATE_ALLBARS) return null;
if (!closes)
{
closes = close(inv("M"));
debugPrintln("closes " + closes.getValue(0));
}
if (!regs)
{
regs = middleLinearReg(100, 25, inv("M"));
debugPrintln("regs " + regs.getValue(0));
}
return null;
}
var closes = null;
var regs = null;
function preMain()
{
setPriceStudy(true);
}
function main()
{
if (getBarState() == BARSTATE_ALLBARS) return null;
if (!closes)
{
closes = close(inv("M"));
debugPrintln("closes " + closes.getValue(0));
}
if (!regs)
{
regs = middleLinearReg(100, 25, inv("M"));
debugPrintln("regs " + regs.getValue(0));
}
return null;
}