ADL®

Bool Block

The Bool Block outputs a TRUE or FALSE value. You can use the Bool Block as an "on/off" switch to enable or disable other blocks.

The value of the block can be set as follows:

  • Static value that does not change for the duration of the algorithm's execution
  • User-defined value that can be set by the user when starting the algorithm
  • Order side value that gets its values from the price level a user clicks in the MD Trader widget when launching a OTA (order ticket algorithm)

The following illustrates different ways you can use Bool blocks with user-defined values to control an algorithm's behavior.

Block settings

To change default block settings, double-click the block to open the Block Editor.

Setting Description
Name Name to display beneath the block on the ADL canvas
BodyColor Background color of the block
Value Numeric value to output
Type

Method to set the value:

  • Static
  • UserDefined
  • OrderSide
Description Optional text to explain how the block is used