EasyLanguage Object Reference
The OrdersProvider allows access to updated order information based on user specified filters from a list of specified TradeStation accounts. This information is similar to that found on the Orders tab of the TradeManager. The Order class describes the properties available for a specific order.
Typically, you will use the Toolbox to add a component to your EasyLanguage document. Click and drag the name OrdersProvider into your document from the Toolbox. The name of the provider appears in the component tray at the bottom of your document. By default, the name is followed by a number to identify multiple instances of the component.
Open the Properties editor and locate the From, To, Accounts, Symbols, States, and Orders properties under "Filters". By default, these fields are blank; all order objects will be in the collection. Entries in any or all of these fields filter the order objects included in the collection. A comma delimited list of dates, account numbers, symbols, states or order numbers (eg. "SIM12345, SIM67890") specifies that only those listed are to be a part of the Orders collection queried by the OrdersProvider.
To reference property values for a specific order object in EasyLanguage code, use OrdersProvider1 followed by a 'dot operator' and the orders provider property name. Available order properties included inherited properties will appear in the autocomplete list as soon as you type the 'dot' after ordersprovider1. properties are also listed under Order class in the dictionary and help. To get data for one of the field names entered in the Properties editor, use the “Order” property, followed by the field name within square brackets and double quotes[“field name”] or a numeric index (zero-based) that represents an Orders object within the provider orders collection.
Value1=OrdersProvider1.Order[0].Commission; // gets the commission of first order [0] in the collection.
or
Value1=OrdersProvider1.Order["2-3105-2140"].LimitPrice; // gets the Limit Price of a specific order id number.
The provider can only access orders that are associated with
the current TradeStation logon.
For general information about providers, refer to Provider Classes.
Namespace: tsdata.trading