Question for Average of Opend

Questions about MultiCharts and user contributed studies.
SP
Posts: 465
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 286 times

Question for Average of Opend

Postby SP » 21 Aug 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?

Code: Select all

value1= opend(1);
value2=Average(value1,3);
value3= (opend(1)+opend(2)+opend(3))/3;
plot1(value1);
plot2(value2);
plot3(value3);
Attachments
picture2.png
(61.25 KiB) Downloaded 486 times

User avatar
Alex Kramer
Posts: 834
Joined: 23 Feb 2006

Postby Alex Kramer » 21 Aug 2006

Could you please send the entire script? We'll check this out
Last edited by Alex Kramer on 21 Aug 2006, edited 1 time in total.


Return to “MultiCharts”