I am calling a file (attached below) and attempting to pass the contents of the array to another EFS.
I have amended Jurik's JMADWMAMACD file to get the MACD for the previous two bars as you will see in the attached file.
I am calling the values as follows:
if (getBarState() == BARSTATE_NEWBAR) {
var myMACD = call("CalledCleanMACD.efs");
vMACD = myMACD[3];
vMACDminus = myMACD[4];
vMACDminustwo = myMACD[5];
}
In the calling EFS I am getting an error when I try to load it which is saying "TypeError: myMACD has no properties".
Anyone got any idea where I am going wrong?
Thanks.
Deax.
I have amended Jurik's JMADWMAMACD file to get the MACD for the previous two bars as you will see in the attached file.
I am calling the values as follows:
if (getBarState() == BARSTATE_NEWBAR) {
var myMACD = call("CalledCleanMACD.efs");
vMACD = myMACD[3];
vMACDminus = myMACD[4];
vMACDminustwo = myMACD[5];
}
In the calling EFS I am getting an error when I try to load it which is saying "TypeError: myMACD has no properties".
Anyone got any idea where I am going wrong?
Thanks.
Deax.
Comment