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

Re: [RT] determine a trend



PureBytes Links

Trading Reference Links

>I'm running TS4 and when verfiying the code below I get the message:
>"Word not recognized by Easylanguage" with CountIF being highlighted.
>Can you give me a workaround for this?

It seems to be a TS2000i function.

Here is the code.

Bob Fulks


{*******************************************************************
Description   : This Function returns CountIF
Provided By   : Omega Research, Inc. (c) Copyright 1999
********************************************************************}

Inputs: Criteria(TrueFalse), Length(Numeric);
Variables: Accum(0), Counter(0);

For Counter = 0 To Length - 1 Begin  
   If Criteria[Counter] Then
      Accum = Accum + 1;
End;

CountIF = Accum;
Accum = 0;