← Back to X_TRADER® Help Library

ADL® Documentation

Existing Order Block

Existing Order Block can be used to design algorithms capable of taking control of an existing order.

  1. When an Existing Order Block takes control of an order, it generates a discrete event message containing the respective Order Key.
  2. The discrete event message enters the connected Single Order Container.
  3. The container retrieves the Order Key from the and takes control of the identified order.

Applying the Existing Order Block functionality to an existing order is referred to as creating an Order Management Algorithm (OMA - See "Applying Order Management Algorithms" below for more information). The following rules govern the behavior of OMAs:

  • During the application process, the OMA will not disrupt the priority of the working order, but the OMA will have the authority to modify or delete the order after the application.
  • A single algorithm can contain at most one Existing Order Block.
  • An OMA can be applied to the child order of another OMA.

View: Applying Order Management Algorithms

Applying Order Management Algorithms

After saving and deploying an Order Management Algorithm to an algo server, it may be applied to an existing order through the Order Fills Window or MD Trader® via the Floating Order Book:

  1. To apply an Order Management Algorithm, do one of the following:
    • Right-click on an existing order in the Order Fills Window and select "Apply Algo..."


    • From MD Trader® hover over or click a cell with a working order. Click within the Floating Order Book.

  2. Upon selection, a floating window labeled "Algo Variables [OMA]" will be generated. The user can select the OMA to be applied through the Algo selection drop-down menu located at the top portion of this window.

  3. Upon selection of an OMA, variables pertaining to the selected OMA will be populated.

  4. The user may set the variables and click "Start" to apply the OMA to the existing order. The OMA will be displayed as a parent order in the Order Fills Window. Note that the user may not modify the "TTOrderKey" variable.
  5. To de-apply an OMA, right-click on the OMA displayed in the Order Fills Window and click "Cancel" in the control panel. The OMA will be canceled without interrupting the priority of the existing order.