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

Re: EL counter...



PureBytes Links

Trading Reference Links

Without doing your work for you, I would suggest that you increment a
counter instead.

NHigh = NHigh + 1

for example


Jim Bronke
Phoenix, AZ



----- Original Message -----
From: <kjh129@xxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Saturday, April 14, 2001 6:52 PM
Subject: EL counter...


> here is what i came up with and i would appreciate it if anyone could help
me just a little more... when this is put on the chart it works for the
first couple of bars but then doesn't "reset" to continue to count the new
highs.
>
> What i'm looking for is an indicator that will count the number of higher
highs (a high higher than the prior bar but not necessarily consecutive to
the last higher high) in a set number of bars.
>
> Input: N(5);
>
> Variables: HHigh(0),  NHigh(0), HCount(0);
>
> if High > HHigh then begin
>      HHigh = High;
>       NHigh = 1;
> end else NHigh = 0;
>
> HCount = Summation(NHigh, N);
>
> plot1(HCount,"HCount");
>
>
>
>