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

Re: Greetings list, need ELA help



PureBytes Links

Trading Reference Links

At 2:30 PM -0500 12/13/97, GABRIAL775 wrote:
>I thought this would be easy to code, but I am stuck on it for some reason:
>
>I am trying to write a paint bar with the following condition:  5 out of the
>Last 10 closes were > then the open of that same bar.
>
>
>Thankyou sincerly for any response,
>
>
>Dale W Burreson

The following should work.

Bob Fulks

------------------

Vars: Index(0), Count(0);

Condition1 = Close > Open;

Count = 0;

for Index = 0 to 9 begin
   if Condition1[Index] then Count = Count + 1;
end;

if Count >= 5 then begin
   Plot1(H, "High");
   Plot2(L, "Low");
end;



--
Bob Fulks
bfulks@xxxxxxxxxxx