I am getting a syntax error when attempting to use the efsExternal function. (I have Version 7.9 (build 719) )
Got a little frustrated with a study I was enhancing, so I copied the exact code from one of the simple examples in the EFS2 Development forum, and got the same error. The error is:
\Wizard\test2.efs, line 17: ReferenceError: efsExternal is not defined
Both pieces of code are saved in the \Wizard folder. The code I used is as follows:
function preMain() {
setPriceStudy(false);
setStudyTitle("MACD");
setCursorLabelName("MACD",0);
setCursorLabelName("MACDSig",1);
setCursorLabelName("MACDHist",2);
setDefaultBarFgColor(Color.blue,0);
setDefaultBarFgColor(Color.red,1);
setDefaultBarFgColor(Color.magenta,2);
setPlotType(PLOTTYPE_LINE,0);
setPlotType(PLOTTYPE_LINE,1);
setPlotType(PLOTTYPE_HISTOGRAM,2);
}
function main(){
var vExtEfs = efsExternal("test1.efs");
var vMACD = getSeries(vExtEfs,0);
var vSig = getSeries(vExtEfs,1);
var vHist = getSeries(vExtEfs,2);
return new Array (vMACD,vSig,vHist.getValue(0));
}
Got a little frustrated with a study I was enhancing, so I copied the exact code from one of the simple examples in the EFS2 Development forum, and got the same error. The error is:
\Wizard\test2.efs, line 17: ReferenceError: efsExternal is not defined
Both pieces of code are saved in the \Wizard folder. The code I used is as follows:
function preMain() {
setPriceStudy(false);
setStudyTitle("MACD");
setCursorLabelName("MACD",0);
setCursorLabelName("MACDSig",1);
setCursorLabelName("MACDHist",2);
setDefaultBarFgColor(Color.blue,0);
setDefaultBarFgColor(Color.red,1);
setDefaultBarFgColor(Color.magenta,2);
setPlotType(PLOTTYPE_LINE,0);
setPlotType(PLOTTYPE_LINE,1);
setPlotType(PLOTTYPE_HISTOGRAM,2);
}
function main(){
var vExtEfs = efsExternal("test1.efs");
var vMACD = getSeries(vExtEfs,0);
var vSig = getSeries(vExtEfs,1);
var vHist = getSeries(vExtEfs,2);
return new Array (vMACD,vSig,vHist.getValue(0));
}
Comment