The Instrument Block identifies an exchange-traded or synthetic instrument to use in an algorithm. The output from the Instrument Block can be connected to other blocks, such as Order Blocks and Field Blocks, that need access to an instrument's ID or market data. The following example shows how an Instrument Block can connect to an Order Block to submit an order, a Field Block to retrieve the bid price, and a Market State Block to determine whether the market is open.
Example Connect Instrument Block to other blocks.
To provide flexibility and reuse for algorithms, ADL allows you to specify instruments in three different ways:
To change default block settings, double-click the block to open the Block Editor.
|Name||Name to display beneath the block on the ADL canvas|
|BodyColor||Background color of the block|
Default instrument to attach to the block
You can begin typing to search for an instrument, or you can use the instrument explorer to identify the instrument.
Method to use to specify the instrument
You can also use the right-click context menu to set or change the method.
Account to use for accessing the market data and for routing orders
|Description||Optional text to explain how the block is used|