Alert block
Alert block
STILL IN DEVELOPMENT
The Alert block allows you to add a message to the Audit Trail and play a sound when certain conditions occur. An alert can be triggered in one of two ways:
- When it receives a TRUE value through its Boolean input port
- When it receives a message through is discrete event message port
Example The Alert block is configured to play a sound and send a message to the Audit Trail when the Formula block sends a TRUE value to the Alert block's Boolean input port, indicating that the trader's P&L is withing ten percent of the maximum allowed.
When an algorithm is executed from the ADL Designer canvas in client-side simulation, an Alert block will not generate an actual audit trail message. Instead, the Alert block will generate the specified text in the Alert Tab of the Information Panel. However, if Sound is selected as the method of alert, the Alert block will generate the specified sound.
Block properties
To customize the block, update the Block Properties.
Property | Description |
---|---|
Name | Name to display beneath the block on the ADL canvas |
Formula |
Equation used to generate the alert message
You can output text by enclosing the text in quotation marks. You can also use the + operator to combine text strings and algo values, as follows. If not yet defined, the field displays a Click to edit formula link that opens the Formula Builder. Note The Alert block does not currently support the IF operator in the Formula Builder. |
Actions |
Actions to take when the alert is triggered. You can select any number of the following actions:
|
Frequency | (For Boolean alerts only) Number of seconds to wait before firing the same alert again, as long as the Alert block input is TRUE. |
Color | Background color for the text in the Audit Trail message. |
Sound | Sound to play then the Alert is triggered. |