CQG Algorithmic Orders
AlgoOrder Order-Place-Order (OPO)
See Also  Send Feedback

Glossary Item Box

 

ShowHow Does OPO Work?

To place an OPO algorithmic order in CQG IC, a trader defines the original order as usual and defines OPO leg through the following fields:

  • Symbol: The commodity or full instrument name for the secondary order
  • Quantity: Secondary order side
  • Side: Buy or sell
  • Type: Market, Limit, Stop, Stop Limit
  • Limit Price: Only used if Type is Limit or Stop Limit. This field cannot be left empty, even in those cases when it will be ignored.
  • Stop Price: Only used if Type is Stop or Stop Limit. This field cannot be left empty, even in those cases when it will be ignored.

When confirmed, the algorithmic order is handed over to the AlgoOrder OPO application, which runs locally in the background and places the leg orders as specified in the AO.

The trader may check the AO application's Monitor for updates about algorithmic orders that still have some pending legs to be placed.

The algorithmic order (i.e., in this case its pending legs) can be cancelled from the Monitor.

On the other hand, the legs that the application has already placed can be viewed and managed through CQG IC.

Order IDs for leg orders have the general format of COOPOxxxxyyyy-Z, which can be deciphered as following:

  • xxxx - the serial number of the algorithmic order placed through the application's current session. This value is reset after restarting the application.
  • yyyy - the serial number of the leg for the xxxx AO. This value is reset for each AO.
  • Z - multi-digit serial number of orders placed through the given instance of the application.

ShowConfiguration Manager

To customize the AlgoOrder OPO, right-click on the AlgoOrder OPO icon in the system tray and from the popup menu select the Configuration Manger.

Customize the application's properties as following:

  • Long Name:

    This field contains the algorithmic order type name that will be displayed in the Special Orders dropdown list in CQGIC.
    It is advisable to use a descriptive name for this field.

  • Short Name:
    This short form of the order type name is used in order ID or the UEName (e.g., COOPOxxxxyyyy-Z) in CQG IC. Although you may insert longer strings, CQG IC will use the first four characters of your entry to create the order UENames. This short form will also be used in the Special Orders dropdown button in CQG IC.
    It is advisable to use easily recognizable short names, no longer than four characters.

  • Balloon Tip Level:
    Determines the lower level of importance that should be used to filter out events to be displayed as tool tips in the system tray area.

    • None: Nothing will be displayed.

    • Info: All events will be displayed.

    • Warning: Warning or Error events will be displayed.

    • Error: Only Error events will be displayed.

  • Log Level:
    Messages received by the logger that are at or above the specified log level are delivered to the log file.

    • None: Nothing will be logged.

    • Info: All events will be logged.

    • Warning: Warning or Error events will be logged.

    • Error: Only Error events will be logged.

  • Log File Max Size:
    Determines the size of the log file that when reached, the program will start writing into a new log file.
    The maximum allowed file size is 32768 KB or 32 MB.

  • Log Files Max Count:
    Determines the number of log files that when reached, the program will delete the oldest file before starting a new log file.
    The maximum allowed number of log files is 100.

ShowLogs

The AlgoOrder OPO creates log files as specified in the Configuration Manager.

Logs can be accessed by right-clicking on the program icon in the system tray and selecting Show Logs. Search for the file names with the "CQGAlgoOrder" prefix.

ShowMonitor

The AlgoOrder OPO Monitor displays the current state of the working algorithmic orders (i.e., those that still have pending legs to be placed).

To open the Monitor, right-click on the AlgoOrder OPO icon in the system tray and select Monitor from the popup menu.

The following algorithmic order properties are listed in the table:

  1. Algo Order ID
  2. Status
  3. Account ID
  4. Instrument
  5. Total Quantity
  6. Filled Quantity
  7. OPO Symbol
  8. OPO Quantity
  9. OPO Side
  10. OPO Type
  11. OPO Limit Price
  12. OPO Stop Price

To cancel an order from the working orders listed in the Monitor, mark off its check box and click the [Cancel Selected Orders] button. Alternatively, you may right-click on the order and from the popup menu select Cancel Order.

To cancel all orders, click the [Cancel All Orders] button. You may also right-click in the orders list area and from the popup menu select Cancel All Orders, or by closing the AlgoOrder OPO application.

Namespaces

NamespaceDescription
AlgorithmicOrders 
Copyright © 2012 CQG Inc. All Rights Reserved.