PureBytes Links
Trading Reference Links
|
Angel
I just completed all of my testing and the PREV function worked just fine.
I posted another message a few minutes before I got your post as to the fact
that I was now up and running.
Thanks
Guy
-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx [mailto:owner-metastock@xxxxxxxxxxxxx]
On Behalf Of Angel Ibarra
Sent: Tuesday, June 29, 1999 11:40 PM
To: metastock@xxxxxxxxxxxxx
Subject: Re: Variables
I do not understand why you can not use the PREV function. VYDIA and other
adaptative moving average makes these types of recursive calculations using
the
PREV function.
Regards
Angel
Guy Tann wrote:
> U1 is an equation that is dependent upon what happened yesterday and
> includes the value of ref(U1,-1). I'll give it a try to see if it
remembers
> yesterday's U1 and see what happens. When I tried it in the past, I got a
> circular error, but that was back in the MS for DOS days. I'll code in
the
> 4 functions tonight. I've got the output from TAS and in Excel, so I can
> verify the values calculated by MS.
>
> Anyway, it used to be that since U1,-1 was dependent upon yesterday's
> calculations, you could only use the previous U1 if MS stored an array of
> previously calculated values. If it doesn't and has to recalculate it,
then
> it will have to recalculate the day prior to that one ad nauseum. Let's
> give it a try.
>
> Guy
>
> -----Original Message-----
> From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]
> On Behalf Of Nicholas Kormanik
> Sent: Tuesday, June 29, 1999 1:22 PM
> To: metastock@xxxxxxxxxxxxx
> Subject: RE: Variables
>
> So what's wrong with using
>
> ref(U1,-1)
>
> and U1 + ref(U1,-1)
>
> What am I missing?
>
> Nicholas
|