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

Re: Reason # 9,457,298,284.2 as to why I want to strangle the guy who came up with PREV



PureBytes Links

Trading Reference Links

Roy,
You read my mind.
Some interesting things...

A4:=LastValue(C+PREV-PREV);
A2:=Sum(A4,2);
A3:=Sum(LastValue(C+PREV-PREV),2);

A2; {Using LastValue(C+PREV-PREV) in a separate variable negates the locking
effect that LastValue(+PREV-PREV) gives}

A3  {Using LastValue(C+PREV-PREV) within the same equation maintains the
lock}

Evidently, the PREV is associated with the equation which contains it(A3)
and not always the variable(A4) that the PREV is stored in.

Thanks,
-Corey Saxe




----- Original Message -----
From: "Roy Larsen" <rlarsen@xxxxxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Monday, January 07, 2002 10:58 PM
Subject: Re: Reason # 9,457,298,284.2 as to why I want to strangle the guy
who came up with PREV


> Corey
>
> > I'm probably missing something here, but when I plot:
> > V1:=Input("Periods",2,250,5);
> > A1:=(C-Ref(C,-V1))/-V1;
> > A2:=Sum(LastValue(A1+PREV-PREV),V1);
> > A2
> >
> > I get a line just fine. But when I add CLOSE to it, it won't plot a
line:
> > V1:=Input("Periods",2,250,5);
> > A1:=(C-Ref(C,-V1))/-V1;
> > A2:=Sum(C + LastValue(A1+PREV-PREV),V1);
> > A2
> >
> > {Maybe PREV is supposed to stand for PREVERT}
>
> Since I've got no idea why "LastValue(A1+PREV-PREV)" does what it does I
> naturally have no idea why case 2 returns N/A either. Just for a lark I
> added "A3:=CLOSE" after A1, and substituted "A3" for "C". Try it - I'll
bet
> it's not what you were looking for but at least it isn't N/A.
>
> Roy
>
>