Traders Laboratory - View Single Post - Arrays
Thread: Arrays
View Single Post
  #2 (permalink)  
Old 05-07-2007, 06:09 AM
swisstrader's Avatar
swisstrader swisstrader is offline
swisstrader has no status.

 
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Arrays

ImXotep,
1. yes, 'HighestArray', but this here is a faster running code:

Quote:
inputs:
PriceArray[MaxSize](NumericArrayRef),
Array_Size (NumericSimple);

vars:
ii(0), HH(-999999);

if MinList(MaxSize, Array_Size) > 1 and Array_Size <= MaxSize then begin
HH = -999999;
for ii = 1 to Array_Size begin
if PriceArray[ii] > HH then
HH = PriceArray[ii];
end;
end;

HighestArrayFC = HH;
2. that should be so, but with TS you never know what happens until you've tested it

3.
Quote:
inputs: PriceArray[MaxSize](NumericArrayRef);
vars: ii(0);

for ii = 0 to MaxSize begin
PriceArray[ii] = 0;
end;

ArrayNullSet = 0;
-swisstrader

Reply With Quote