← Back to X_TRADER® Help Library
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
Number Block
The output will be a constant numeric value set by
the user (set by double-clicking on the block).
Operations
This block can be declared as a User Defined Variable.
Example. Right-click on the Constant Number Block and select one of the three available variable types: User Defined, Order Price, or Order Quantity
For Order Ticket Algorithms (OTA) executable from the MD Trader window, the Constant Number block can also be declared as an Order Price Variable or an Order Quantity Variable:
- Order Price Variable:
When the user clicks on the ladder to launch an OTA,
will be set as the price level specified by the click.
- Order Quantity Variable:
When the user clicks on the ladder to launch an OTA,
will be set as the quantity specified on the ladder.
- Order Price Variable:
When the user clicks on the ladder to launch an OTA,
- When declared as a User Defined Variable, the user may link the variable to an Excel sheet using the Algo Dashboard (see: DDE Functionality for more information). A linked variable can be updated dynamically through the Excel sheet.

Double-Click Edit Window
Double-click on the block to bring up an edit window:
- Value: Enter the value
of
.