[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: out of line



PureBytes Links

Trading Reference Links

jose, 
Thanks for your reply. when I plot this indicator on the same graph as
metastocks centered ma, my lowerband is within 2mil of the ma,
centered correctly, but my centered ma is way above, I think I will
have to start drom begining again to see if rest of formula is
affecting the position. 
Regards Robert



--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" <josesilva22@xxxx>
wrote:
> MetaStock's standard Simple MA, 201 periods, -100 horizontal shift 
> (half of the SMA's periodicity), matches your center plot exactly.  I 
> see nothing wrong with your code.
> 
> 
> jose '-)
> http://www.metastocktools.com
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "robcpettit" <robcpettit@xxxx> 
> wrote:
> > Could somebody look at this formula for indicator and advis me why
> > its out of lie vertically.
> >  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 can move it back in time ok, in other words centre it, I cant seem
> > to get it to match a centered ma built in to metastock. What Ive
> > been doing to check is plot a 201 day centred ma in metastock and
> > then try to mine to it, without success.
> > 
> > Regards Robert




------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/