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:
Note A single Value Injector block can over-write multiple fields of the incoming message.
You can use the Field Formula Editor to define formulas for one or more values to inject into the output discrete event message.
To customize the block, update the Block Properties.
|Name||Name to display beneath the block on the ADL canvas|
Equations used to calculate the values of different fields in the block
The edit link opens the Fields Formula Editor.