images/contents.gifimages/index.gifimages/prev1.gifimages/next1.gif

Date Alarm Examples

Date alarms require the use of the DATE parameter, an operator, and a date stated MM/DD/YY format. Optionally, you can specify a date and a time by using the AND Boolean operator.

Example
Description
DATE==12/1/93
Alarm if the date is December 12, 1993.
DATE>12/1/93
Alarm if the date is after December 12, 1993.
DATE<12/1/93
Alarm if the date is before December 12, 1993.
DATE>=12/1/93
Alarm if the date is December 12, 1993, or if the date is date December 12, 1993.
DATE<=12/1/93
Alarm if the date is December 12, 1993, or if the date is before December 12, 1993.
DATE!=12/1/93
Alarm if the date is not December 12, 1993.

The programs date math capabilities make it possible to create alarms that tell you when it is a certain number of days before an instruments expiration. To do this, you need to set the DATE parameter equal to an instruments expiration less the number of days before expiration. The syntax for the tigger condition of this type of alarm is:

images/aspen00000285.gif

where <instrument_symbol> can be any instrument symbol or wildcard symbol delimited with the .EXPIRE code, and <days> is the number of days before expiration. It is important to delimit the instrument symbol or wildcard symbol with the .EXPIRE code. This code provides an expiration date. By subtracting a number of days from this date, the trigger condition can identify a date before the expiration date. As a result, you can use alarms to give you some lead time before futures and options expire.