|
|
|
|
|||||||
| Technical Analysis The technical discussion forum for traders. Moderated by mister ed. |
![]() |
| Bookmarks | |||||||
del.icio.us
|
StumbleUpon
|
Google
|
Digg
|
Facebook
|
Furl
|
Reddit
|
Netscape
|
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes | Language |
|
|||
|
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! |
|
|||
|
Re: Can function in TS8 return array?
In TS, click on file=>open Easylanguage Doc, then open SortArray function. It will show you how TS return a function.
Basically it is treated as procedure to return array as a variable. weiwei |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|