Question for Average of Opend
Posted: Aug 21 2006
I want to plot on an intraday chart the average of the last 3 daily open.
But the average value doesn't correspond with value3 and converge to value1 after the third bar.
What i need for an advanced code is an average of the last 30 daily (H-L) and (O+H+l+C)/4 and the StdDev of these 2 values on intraday charts, not wanting to use a longer version like in value3.
Do i have to put the Opend values in an Array or is there a problem with the function?
But the average value doesn't correspond with value3 and converge to value1 after the third bar.
What i need for an advanced code is an average of the last 30 daily (H-L) and (O+H+l+C)/4 and the StdDev of these 2 values on intraday charts, not wanting to use a longer version like in value3.
Do i have to put the Opend values in an Array or is there a problem with the function?
Code: Select all
value1= opend(1);
value2=Average(value1,3);
value3= (opend(1)+opend(2)+opend(3))/3;
plot1(value1);
plot2(value2);
plot3(value3);