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

Re: Can MS do loops?



PureBytes Links

Trading Reference Links

Thanks Ug
I gotcha on the Ref, makes sense. Richard Estes gave me that one too. Thanks
to both of ya. 
Prev is still foreign to me, but I'll play with it some more, as soon as I get
a sec err... minute err... some time.

Thanks for the reply

Chris

In a message dated 9/14/98 10:17:47 AM Eastern Daylight Time, ug@xxxxxxxxxxxx
writes:

> Mullin285@xxxxxxx writes:
>  
>  > Thanks for popping in. Basically I am trying to learn how to use MS but 
> the
>  > thing that triggered this particular question was ... I wanted to close
my
>  > long trades if there were 3 consecutive down days. I tried : C<prev and
>  > C<prev-1 and C<prev-2 but that didn't work out right Seemed to be acting
>  > more like I said or instead of and.
>  
>  In this *particular* case, you probably want:
>  
>  C < Ref(C, -1) and Ref(C, -1) < Ref(C, -2)
>  
>  As I understand it, "PREV" refers to the value of the *entire* formula; not
>  just the 'last thing it saw', so to speak.