Logic blocks

Logic blocks

Less Than blocks

The Less Than and Less Than Equal blocks compare two number inputs. When the first input is less than (or equal to) the second, the block outputs TRUE; otherwise it outputs FALSE.

Example Use the Greater Than block to determine whether to submit an order by enabling or disabling the Order block.

More about Flip for Sell

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 Less Than block will either do a "Less Than" or a "Greater Than" comparison depending on the value of the Order Side Variable (see: Flip For Sell Orders Functionality for more information).

Block properties

To customize the block, update the Block Properties.

Property Description
Name Name to display beneath the block on the ADL canvas
FlipForSell

Whether to enable a single algorithm to act either as buy or sell side routine as needed

See Flip For Sell Orders Functionality for more information.