Here, we introduce placing Batch Orders using the CQG XL Toolkit. At the bottom of the post is a downloadable Excel sample. For more details there are two links to the CQG IC/QTrader Help files and the CQG One Help file.
The CQG XL Toolkit has been upgraded to include functionality to place batch orders. A batch order is a list of orders that will include the accounts, symbols, action (buy or sell), qualifiers such as market, limit or stop orders and other important details. The XL Toolkit permits the user to place the orders as parked or sent directly to the CQG Gateway. In addition, Algo Orders and the parameters (as a CSV file) can be included in the batch orders.
First, in order to use the XL Toolkit the user must contact their FCM and request the XL Toolkit enablement. You can download the XL Toolkit here. Once the XL Toolkit is installed you Logon using your trading credentials.
Notice in the image above there is a greyed out button “Place Orders.” This button is used to send the orders once the spreadsheet has this function with all (up to 17) of the Obligatory Parameters entered:
This table details the full list of the function arguments and the column in the Excel sample:
|Disambiguates identical order placement data (enter 1, 2, 3, etc.)
|Account ID from XL Toolkit Account Data
|Buy or Sell
|Total positive size of the order
|For STP or STL
|For LMT or STL
|Good till date
|GTD Date (Local to the Exchange)
|Exact Name of the Algorithmic Strategy
|Used with contracts that require speculation type to be provided: Speculation/Arbitrage/Hedge
|Used to determine open or closing a position: Open/Close/Close Yesterday
|Time when the order should be sent to the exchange
|Default is Park, False to not Park
The second argument (Account ID) is found using the XL Toolkit. Select Account data from the ribbon and then Account ID and Account Name, From the output select the appropriate Account ID and you can reference the cell’s location in the Functions Arguments dialog.
The downloadable Excel sample is displayed. Next, the sample is broken down into sections.
The columns are the same detailed in the parameters table above.
Column A indexes each order. Using Algo strategies in the Batch Order is detailed in the product Help posts
The time for activating the parked batch orders is the local time. If the order is not to be parked but sent to the CQG Gateway then enter False. This would be cells in column Q below.
Column R, row 11 is the Order Summary using the function:
You could also use:
When the Excel batch order sheet is complete then click on the XL Toolkit ribbon and select “Place Order.”
Successfully placed orders are assigned an Order ID. If there is an issue then the error will be displayed.
- Using Algo strategies in the Batch Order using CQG IC
- Using Algo strategies in the Batch Order using QTrader
- Using Algo strategies in the Batch Order using Desktop or CQG One