Pagina 1 van 1

CountIF functie

BerichtGeplaatst: wo 14 apr 2004, 22:03
door Dirk
Heeft iemand voor mij de EL code van de functie: CountIF?

Bij voorbaat dank.

CountIF functie

BerichtGeplaatst: do 15 apr 2004, 8:25
door douwe
bij deze,

{*******************************************************************
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;

CountIF functie

BerichtGeplaatst: do 15 apr 2004, 8:31
door Dirk
Beste Douwe,

Mijn dank.

CountIF functie

BerichtGeplaatst: za 17 apr 2004, 0:46
door geert udema
douwe / Dirk,

Wat doet CountIf en waar gebruik je het voor?

Groetend, Geert.

CountIF functie

BerichtGeplaatst: za 17 apr 2004, 8:29
door Jo
Geert,

Dit betekend de functie;

Counts the number of occurrences of the criteria over the last N bars.

Function : CountIF(Test, Length)

Parameters: Test ?True/false expression representing condition to be matched.

Length : ? Number of bars back to search.

Returns : A numeric value containing the number of occurrences of Test prior to the current bar.


Jo