Value Injector Block

To use the Value Injector Block, it is important to recognize that discrete event messages carry information about their respective discrete events. For instance, a discrete event message generated and output from the Fills Output port of an Order Block will necessarily carry the Fill Price and Quantity related to the respective fill.

To be specific, every discrete event message is composed of multiple "fields," with numeric or true/false values assigned to each. For instance, a discrete event message generated from a fill will contain a numeric value in the "Fill Price" field and the "Fill Quantity" field. But it will contain zero's for other irrelevant fields, like "Deleted Quantity."

The Value Injector Block operates in the following manner:

  1. A discrete event message enters the Value Injector Block.
  2. The Value Injector Block over-writes the specified fields of the incoming with user-specified values. The fields and the values must be specified in advance in the Formula Builder.
  3. After the over-write process, the Value Injector Block passes on the modified message through its right-side output port.

Note A single Value Injector Block can over-write multiple fields of the incoming message.

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
Field Formulas

Equation used to calculate the values of different fields in the block

If not yet defined, the field displays a Click to edit formula link that opens the Formula Builder.

Description Optional text to explain how the block is used