ADL®

Price Block

The Price Block allows a user to specify a valid price for an instrument. During algo execution, when the user specifies a price in this block, the Price Block ensures that the price is a tradable price for that instrument. The block provides an alternative to using the Number Block for specifying an order price.

Example Using the Price Block to ensure a valid price for the CL Sep16 contract

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
Type

Method to use to specify the price

  • Static. The price is set during development and does not change during execution.
  • UserDefined. The price can be set or changed before starting an algorithm. This option allows you to design an algorithm template that can be used with different prices.
  • OrderPrice. Any algorithm containing an Order Instrument will be recognized as an Order Ticket Algorithm (OTA), which is executable directly from an MD Trader widget. The instrument automatically matches the price shown on the ladder.
Value

Default value for the price block

You can use the integrated price ladder to select a price or enter the price directly.

Description Optional text to explain how the block is used