Add Block adds the first input number and the second input number and outputs the sum, .
Double-Click Edit Window
Double-click on the Add Block to bring up an edit window:
- Flip for Sell
Orders: Many automated strategies in ADL will have nearly identical
buy and sell side routines, with certain blocks acting as "pivot"
points. To enable a single algorithm to act either as buy or sell
side routine as needed, several blocks in ADL will have the option
"Flip For Sell Orders." This option enables them to perform an alternate
function depending on the user's selection of the Order Side Variable
(either BUY or SELL). The Order Side Variable will appear automatically
for any algorithm containing a block with the "Flip For Sell Orders"
functionality enabled, and the user must set this variable prior
to launching an algorithm.When this functionality is enabled, the
Add Block will either perform an addition or a subtraction depending
on the value of the Order Side Variable (see: Flip For Sell Orders
Functionality for more information). The user may alter the Order
Side Variable through one of the following three methods:
- Using the drop-down menu located at the top portion of the Designer canvas
- Using the Variables Tab on the Algo Dashboard
- Using the MD Trader window: clicking on the bid side column (blue column) will set the Order Side Variable to "BUY," and clicking on the offer side column (red column) will set the Order Side Variable to "SELL." This method applies to Order Ticket Algorithms only (see: Creating and Launching Order Ticket Algorithms for more information).
Example. Adder Block with Flip For Sell Orders enabled