ExecuteBasket (Command)

Executes the named basket from the Basket Order window based on user provided parameters.   

Syntax

.ExecuteBasket <list name>, <account>, <side>, <percent>, <route>, <duration>

Parameter Options

Required Parameter Description
<list name>, Name of the trade list to be executed. These are text files that contain one or more equities symbols and the execution information for the symbol. The files are created and saved by the Basket Order application and are stored in a sub directory named "Trade Lists" under the "TradeStation" directory. These files can also be created using a standard text editor.  
<account>, String representation of the account to execute in.
<side>, Buy, Sell, Cover, Short for equities only.
<percent>, Percent of shares to execute for each individual symbol. Can be any integer between 1 and 500.
<route> Route to send orders to.  Intelligent, ARCX, BTRD, NSDQ for equities.
<duration> Duration of order.  Day, Day+, GTC, GTC+, IOC, FOK, OPG, 1, 3, 5 min for equities.

Example

Calling from a Command Line Macro:

.ExecuteBasket MyTradeList.txt, 337071 Margin2, Buy, 100, Intelligent, Day

Calling from EasyLanguage:

Value1 = RunCommandOnLastBar(".ExecuteBasket MyTradeList.txt, 337071 Margin2, Buy, 100, Intelligent, Day") ;