I am trying to refer in my code to the MA of diferent symbol, but I get syntax error.
Can anybody tell me what I am doing wrong, or if this is possible?
Here is code generated by the Wizard (I changed manually the name of the variable):
//{{EFSWizard_Declarations
var vEMA10_of_SMH = new MAStudy(10, 0, "Close(0,1,"SMH")", MAStudy.EXPONENTIAL);
var vEMA10 = new MAStudy(10, 0, "Close", MAStudy.EXPONENTIAL);
var vLastAlert = -1;
//}}EFSWizard_Declarations 20816
And this is the message I get when I check the code:
... missing ) after argument list ....
Thanks.
Can anybody tell me what I am doing wrong, or if this is possible?
Here is code generated by the Wizard (I changed manually the name of the variable):
//{{EFSWizard_Declarations
var vEMA10_of_SMH = new MAStudy(10, 0, "Close(0,1,"SMH")", MAStudy.EXPONENTIAL);
var vEMA10 = new MAStudy(10, 0, "Close", MAStudy.EXPONENTIAL);
var vLastAlert = -1;
//}}EFSWizard_Declarations 20816
And this is the message I get when I check the code:
... missing ) after argument list ....
Thanks.
Comment