PureBytes Links
Trading Reference Links
|
Hi, I know Ive asked a similair question before, so please forgive me,
Im trying to understand what Im doing wrong. Ive wrote this indicator
to plot upper and lower bands at a constant width form a centred ma:
Average:=Input("TimePeriods",0,2000,201);
totalAveperiods:=LastValue(Cum(Mov(C,Average,S)>-1000));
shift:=Average/2;
mildev:=(
Sqrt(((Sum(Power(Ref(C,-shift)-Mov(C,Average,S),2),totalAveperiods))-(Power(Sum(Ref(C,-shift)-Mov(C,Average,S),
totalAveperiods),2)/ totalAveperiods))/(totalAveperiods-1)));
mildev;
Upper := (Mov(C,Average,S) + LastValue(2*LastValue(mildev)));
Ref(Upper,shift);
Ave:=Mov(C,Average,S);
Ref(Ave,shift);
Lower := (Mov(C,Average,S) - (2*LastValue(mildev)));
Ref(lower,shift);
I had a previos problem with it not lining up correctly. I seem to
have fixed this although have no idea how. I use this a my default
Template and this seems to be were Im having problems. My shares are
spread of 10 folders, when I originally built the indicator I used two
of these folders. Now, when I open any share in any folder other than
the two I used, the plot/template is perfect but when I open a share
in either of the two original folders all is not well. If I scroll
through the folder some might plot the indicator and some wont. Ive
checked theres enough data in the files. Can anybody throw some light
on this. Also is there a line I could add to the formula to avoid
error message when theres not enough data.
Regards Robert
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|