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

Re: Can MS do loops?



PureBytes Links

Trading Reference Links

Hey Brooke

Thanks I will try that. Nifty piece of code. Thanks

Chris

In a message dated 9/15/98 1:24:36 AM Eastern Daylight Time,
Brookemail@xxxxxxx writes:

> > What I need is :
>  >  
>  >  (C<Ref(C,-1) AND Ref(C,-1)<Ref(C,-2) AND Ref(C,-2)<Ref(C,-3)) that gives
> me
>  > 3
>  >  consecutive down days as an exit. 
>  
>  There's another way to find three consecutive down days, with the use of
the
>  summation function:
>  
>  Sum(C<Ref(C,-1),3)=3
>  
>  This means that over the past three days, the sum of days when price 
> declined
>  from the previous day is equal to 3 (or every day). The formula is:
>  
>  sum(data array, periods)
>  
>  Try plotting it in a new window over the price graph, and you'll see that
it
>  gives a value of 1 when it's true and 0 when it's false. 
>  
>  Brooke