in this 2 code below...it give me result different..i don't understand
Code: Select all
//CODE 1
var:gg(0,data3);
gg=(low of data3 + high of data3)/2;
value9=Average(gg ,13)[8] of data3;
value10=Average(gg ,8)[5] of data3;
value11=Average(gg,5)[3] of data3;
Print(date ,time ," 60 MIN UP , DOWN ", " MEDIANA " , value8:2 of data3 , "MEdie" , " " , value9:2 of data3, " ", value10:2 of data3, " ", value11 :2 of data3);
Code: Select all
//CODE 2
var:gg(0,data3);
gg=(low of data3 + high of data3)/2;
value9=Average((low of data3 + high of data3)/2,13)[8] of data3;
value10=Average((low of data3 + high of data3)/2,8)[5] of data3;
value11=Average((low of data3 + high of data3)/2,5)[3] of data3;
Print(date ,time ," 60 MIN UP , DOWN ", " MEDIANA " , value8:2 of data3 , "MEdie" , " " , value9:2 of data3, " ", value10:2 of data3, " ", value11 :2 of data3);
In CODE2 i've replaced the contents of the variable "gg" in the assignment
This two code are applicated to "image GRAPH"(see pics)
The code correct is CODE2.....i thinks the problem is [8] [5] [3] after Average
how can I set up the code correctly using the variable "gg"?