Hi,
I've a question
Example:
function main() {
var my1= new Array();
var my2= new Array();
var my3= new Array();
var AAclose = close(0);
var AAopen = open(0);
my1 = AAclose*0.2;
my2 = AAOpen *0.2;
my3 = my1 - my2;
How to calcolate the moving average of "my3" variable???
The code not work:
var myav = new MAStudy(12, 0, my3.getValue(0), MAStudy.EXPONENTIAL);
return myav;
}
I've a question
Example:
function main() {
var my1= new Array();
var my2= new Array();
var my3= new Array();
var AAclose = close(0);
var AAopen = open(0);
my1 = AAclose*0.2;
my2 = AAOpen *0.2;
my3 = my1 - my2;
How to calcolate the moving average of "my3" variable???
The code not work:
var myav = new MAStudy(12, 0, my3.getValue(0), MAStudy.EXPONENTIAL);
return myav;
}
Comment