PureBytes Links
Trading Reference Links
|
Pretty slick, Roy.
Thanks!
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx] On Behalf Of Roy Larsen
Sent: Tuesday, March 19, 2002 11:56 AM
To: metastock@xxxxxxxxxxxxx
Subject: Re: Forward Shift Indicator Five Days??
Nicholas
Here is another tool that you might find helpful for use with Joe's
suggested use of the Ref() function. Suppose the indicator you want to
shift is Mov(C,10,S) the following indicator can be set up to display a
short line at the right side of the chart so that you know what the last
value of the shifted signal would be if you could see it (last value of
signal).
{Last Bar View}
Signal:=Mov(C,10,S);
Periods:=5; {periods to display}
LastBar:=LastValue(Cum(1)-(Periods-1))=Cum(1);
Line:=ValueWhen(1,LastBar,LastValue(Signal));
Ref(Signal,-5); {shifted signal}
Line; {last value of shifted signal}
Roy
> You will want to use the ref function
>
> For example, to shift a moving average forward 5 days:
>
> Ref(Mov(C,10,S),-5)
>
> ---
> Joe
>
>
>
> On Mon, 18 Mar 2002 23:54:23
> Nicholas Kormanik wrote:
> >
> >
> >
> >Can someone tell me how to shift an indicator on the chart forward by
> >five days??
> >
> >A little graphic may help to explain what I mean:
> >
> >----before shift) aaaaaaaallllaaaaaaaaaaa
> >
> >-------after shift) xxxxxaaaaaaaallllaaaaaaaaaaa
> >
> >Thanks a bunch!
> >
> >Nicholas
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> 2,000,000,000 Web Pages--you only need 1. Save time with My Lycos.
> http://my.lycos.com
>
>
>
|