| Technical Analysis The technical discussion forum for traders. |
![]() | | Tweet | |
| | #1 | ||
![]() | Thx. | ||
| |
|
| | #2 | ||
![]() | Re: Can function in TS8 return array? yes, it can return an array. Look at example from TS user guide, search for SortArray, open it and see how it work. weiwei | ||
| |
|
| | #3 | ||
![]() | Re: Can function in TS8 return array? | ||
| |
|
| | #4 | ||
![]() | Re: Can function in TS8 return array? 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! | ||
| |
|
| | #5 | ||
![]() | Re: Can function in TS8 return array? Basically it is treated as procedure to return array as a variable. weiwei | ||
| |
|
| | #6 | ||
![]() | Re: Can function in TS8 return array? //----------------------------------// inputs: inarray[M](numericarrayref); //EL code// //end EL code// exfun=1; //note: M is length of array, and inarray is returned as by reference. Also, exfun=1 is required or else you will get an error from TS saying that you haven't assign a value to the function. Hope this helps! | ||
| |
|
![]() |
| Tags |
| array, function |
| Thread Tools | Search this Thread |
| Display Modes | |
| |