Go Back   Traders Laboratory > Trading Laboratory > Technical Analysis

Technical Analysis The technical discussion forum for traders. Moderated by mister ed.

Reply
Bookmarks
del.icio.us StumbleUpon Google Digg Facebook Furl Reddit Netscape

 
LinkBack Thread Tools Search this Thread Display Modes Language
  #1 (permalink)  
Old 04-10-2007, 02:28 PM
ImXotep ImXotep is offline
Registered Trader

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

I need help in EasyLanguage. Can user function in TradeStation 8 return array. If can, then how?
Thx.

Reply With Quote
  #2 (permalink)  
Old 04-10-2007, 03:25 PM
weiwei weiwei is offline
Registered Trader

 
Join Date: Oct 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can function in TS8 return array?

ImXotep,
yes, it can return an array. Look at example from TS user guide, search for SortArray, open it and see how it work.

weiwei

Reply With Quote
  #3 (permalink)  
Old 04-10-2007, 03:57 PM
ImXotep ImXotep is offline
Registered Trader

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

ok. i will find it. THX!

Reply With Quote
  #4 (permalink)  
Old 04-10-2007, 04:08 PM
ImXotep ImXotep is offline
Registered Trader

 
Join Date: Jan 2007
Posts: 17
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
  #5 (permalink)  
Old 04-10-2007, 05:22 PM
weiwei weiwei is offline
Registered Trader

 
Join Date: Oct 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
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

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 01:21 PM.

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59