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

Re: Minlist, Maxlist



PureBytes Links

Trading Reference Links

: Vars: max1(0), max2(0), max3(0), i(0);
: Arrays: Num[25](0)
: 
: {initialize everything}
: If currentbar = 1 then begin
:     Max1=1;
:     Max2=Max1/2;
:     Max3=Max2/2;
:     end;
: 
: For i = 0 to 24 begin
:     If Num[i] > Max1 then begin
:         Max3=Max2;
:         Max2=Max1;


:         Max1=Num[1];

*** See below

:         end;


Oops!!!  it should have been type as:

max1=Num[i];  {not 1}



---