Hi
I have written this very simple efs but get the error myStudy1 has no properies!
I want to plot the 55 sma and the 55 sma + 0.0055
HELP!
Much appreciated
Paul
===================
var bInit = false;
var myStudy1 = null;
var myStudy2 = null;
function preMain() {
setPriceStudy(true);
}
function main () {
var myVar1;
var myVar2;
if (bInit == false) {
myStudy1 = sma(55,(high+low)/2);
myStudy2 = sma(55,(high+low)/2+0.0055);
bInit = true;
}
myVar1 = myStudy1.getValue(0);
myVar2 = myStudy2.getValue(0);
return new Array(myVar1,myVar2);
}
I have written this very simple efs but get the error myStudy1 has no properies!
I want to plot the 55 sma and the 55 sma + 0.0055
HELP!
Much appreciated
Paul
===================
var bInit = false;
var myStudy1 = null;
var myStudy2 = null;
function preMain() {
setPriceStudy(true);
}
function main () {
var myVar1;
var myVar2;
if (bInit == false) {
myStudy1 = sma(55,(high+low)/2);
myStudy2 = sma(55,(high+low)/2+0.0055);
bInit = true;
}
myVar1 = myStudy1.getValue(0);
myVar2 = myStudy2.getValue(0);
return new Array(myVar1,myVar2);
}
Comment