【NumericRank】
[code]inputs:PriceValueToRank( numericsimple ),
PriceValue( numericseries ),
Len( numericsimple ),
SortOrder( numericsimple ) ;
arrays:
arr0[1000]( 0 ) ;
NumericRank = -1 ;
for Value1 = 1 to Len
begin
arr0[Value1] = PriceValue[ Value1 - 1 ] ;
end ;
Value1 = SortArray( arr0, Len, SortOrder ) ;
for Value2 = 1 to Len
begin
condition1 = PriceValueToRank = arr0[Value2] ;
if condition1 then
begin
NumericRank = Value2 ;
Value2 = Len ;
end ;
end ;
[/code]
页:
[1]