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

RE: Consec code question



PureBytes Links

Trading Reference Links

That line should return true if RSI is >70 for N consecutive days, for any 
positive value of N.  If you want it to be true only for N>4, you could just add 
"(N>4) and" to the start of the conditional.

If that's not what you're looking for, try describing it again.



On 15 May 2008 at 7:56, Chris Evans wrote:

> 
> Condition1= Countif(RSI(close,14)>70),N)=N
> For N>4
> 
> So I the condition is true if RSI is OB for 5 days, 6 days, 7 days  etc etc
> 
> (Countif is a function in EL for TS8.X)
> 
> -----Original Message-----
> From: unicorn@xxxxxxxxxxxxxxx [mailto:unicorn@xxxxxxxxxxxxxxx] On Behalf Of
> Alex Matulich
> Sent: Thursday, May 15, 2008 6:58 AM
> To: omega-list@xxxxxxxxxx
> Subject: Re: Consec code question
> 
> Chris Evans wrote:
> >I need to have a condition where 
> >
> >Countif(Var1>0,N)=N where N>= X .. How would I do this without writing any
> >"or" lines in the condition statement.
> 
> Countif() is an Excel function, not an EasyLanguage function (at
> least not TS2000i).  The syntax you used above wouldn't work in
> Excel either.  Can you explain more clearly what you are trying to
> do?
> 
> -Alex
>