[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

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