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
Log Block
The Log Block retrieves information specified by the user.
Operations
- A
discrete event message
triggers
the Log Block. - Upon trigger, the Log
Block retrieves the information specified by the user (defined by
double-clicking on the block). The user may extract information
contained within the
or retrieve information unrelated to
. -
The retrieved information is displayed in the Log tab of the Information Panel as shown below.
Example. Information display in the Log Tab

- Afterwards, the Log
Block passes on the original message
,unchanged,
through its right-side port.
Note: Because the Log Block displays information only in the Designer canvas, this block is useful only as a testing tool. Its presence on the canvas will not affect the actual speed or the performance of an actual algorithm in live execution.
Double-Click Edit Window
Double-click on the block to bring up an edit window:

- Clicking on the formula
link will display a green canvas where the user can define an equation
which will determine the specific value to be retrieved and displayed
in the Information Panel at the moment the block is triggered by
. - By dragging the
icon onto the canvas, the user can write
free-form text that will also be displayed in the Information Panel.
However, a “+” icon needs to be placed in order to string together
the
icon and an operator icon, a Message Info
icon, or a Block Value icon.
Internalized Logic Canvas
Internalized Logic Canvas: Several blocks in ADL contain an internalized logic canvas which can be accessed by double-clicking on the block.
Example. Internal Logic Canvas
The canvas is used to define user-made equations which will play an important role in the overall operation of the respective block. The following icons can be dragged onto the green canvas to define an equation:
: These
icons can be linked to define an arithmetic equation or a True/False
statement.
: By dragging the
icon onto the canvas, the user can write
free-form text that will also be displayed in the Information Panel.
However, a “+” icon needs to be dragged onto the canvas in order to string together
the
icon and an operator icon, a Message Info
icon, or a Block Value icon.
: The
Block Value Icon allows the user to reference the output of any
other block in the algorithm. When dragged onto the canvas, the
Block Value Icon will display a menu from which the user will be
able to choose a block within the algorithm (except for the blocks
contained in a virtualized block).-
: The
Message Info Icon allows the user to extract certain information
embedded within a discrete event message, such as a Fill Confirmation
Message. When dragged onto the canvas, the Message Info Icon will
display the following selectable fields:Field Description Limit The price of the respective order or the order about to be submitted OrderQty The total order quantity of the respective order or the order about to be submitted WorkingQty The working quantity of the respective order or the order about to be submitted FillPrice Fill price FillQty Fill quantity Instrument Instrument of the submitted order ExeQty Total filled quantity of the respective order DisclosedQty The disclosed quantity or percentage (%) of total goal quantity viewable to the market DeletedQty The canceled quantity of the deleted order or the order about to be deleted IsBuy When this field is selected, the respective block will evaluate the user's fill confirmations messages (not trade data message disseminated by the exchange) and will output a Boolean value of TRUE if the user's fill was a buy side execution StopTrigger The price at which the respective stop-limit or stop-market order is activated TradeQty Quantity of the last trade for a specific instrument TradePrice Price of the last trade for a specific instrument IsQuotingOrder Applies to discrete event messages generated by an ASE Order Block. The field will output a Boolean value of TRUE if the message was generated from an order submission for the quote leg of the respective spread IsHedgeOrder Applies to discrete event messages generated by an ASE Order Block. The field will output a Boolean value of TRUE if the message was generated from an order submission for the hedge leg of the respective spread User Field 1 - 4 An empty field that can be populated with a value using a Value Injector Block. The value may then be extracted using a Value Extractor Block
