Traders Laboratory - View Single Post - Can function in TS8 return array?
View Single Post
  #4 (permalink)  
Old 04-10-2007, 04:08 PM
ImXotep ImXotep is offline
ImXotep has no status.

 
Join Date: Jan 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can function in TS8 return array?

Sorry, i'm don't see this example in this guide:
Sorts the values of a one-dimensional array in either ascending or descending order based on the specified inputs.

Note All array-based function calculations begin with array element 1.

Function
SortArray(PriceArray, Size, HiLo)

Parameters
PriceArray
The name of a declared numeric array to sort.

Size
The number of data elements (size) of the array, starting with element 1, to include in the sort.

HiLo
1 = sort descending, -1 = sort ascending


Returns
SortArray always returns 1. It will sort the values of the specified array elements in order based on the HiLo input.

and all!

Reply With Quote