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:
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.
Note Only the user who launched the algo will be able to hear the sound alert configured from the Alert Block. Any users with an account share will not have the ability to hear this sound alert, but only the Audit Trail message will be visible.
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. |