ADL® Documentation
- Fundamental Concepts
- ADL Learning Guide
- Basic Blocks
- Trading Blocks
- Discrete Blocks
-
Miscellaneous Blocks
- Round Block
- Display To Decimal Block
- Formula Block
- Average Block
- Stopwatch Block
- Clock Block
- Note Block
- Random Number Block
- Pause Block
- Log Block
- IsNumber Block
- Once True Always True Block
- Not Block
- Loop Block
- Exit Block
- Risk Block
- Workup State Block
- Alert Block
- Math Block
- Actor Blocks
- TT Analytics Block
-
Advanced Concepts
- Sniper Algo
- Order of Discrete Event Message Propagation
- Grouped Blocks and Library Functionality
- Rules Of Virtualization
- Jump Blocks
- Safety And Preventive Design With Visual Feedback
- Flip For Sell Orders Functionality
- Dynamic Data ExchangeLink
- Leave Orders On Pause Or Cancel
- Creating and Launching Order Ticket Algorithms (OTAs)
- Breakpoint Functionality
- Algorithm Behavior At Market Close and Disconnect
- Exporting Block Output Values
Existing Order Block
Existing Order Block can be used to design algorithms capable of taking control of an existing order.
Operations
- When
an Existing Order Block takes control of an order, it generates
a discrete event message
containing the respective Order Key.
- The discrete event
message
enters the connected Single Order Container.
- 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:
- To apply an Order Management Algorithm, do one of the following:
-
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.
-
Upon selection of an OMA, variables pertaining to the selected OMA will be populated.
- 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.
-
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.