PureBytes Links
Trading Reference Links
|
This is looking in a different place altogether, but maybe it is where
the problem lies. Just check in the (default?) template that you use,
that you do not specify any horizontal shifts, which may cancel out
what you are doing here. Right click on any moving average and check
the 'Horizontal shift' value under the parameters tab and make sure it
is zero.
Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com
--- In equismetastock@xxxxxxxxxxxxxxx, "robcpettit" <robcpettit@xxxx>
wrote:
> 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 --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/
|