Alarm Expressions

See Also

Related Topics

 

 

Alarm expressions are written using

 

 

Instrument Symbols

Alarms may be set on any instrument defined in your system.

 

Example

Triggers When...

IBM > 80

IBM trades over 80.

 

For information on entering fractional prices, click here.

 

Times

The time keyword is a system constant. It represents the current system time.

 

Examples

Triggers When...

time>=9:00

Time is 9:01

time==15:45

Time is 15:45

 

Dates

The date keyword is a system constant. It represents the current system time.

 

Examples

Triggers When...

date==4/15/03

The date is April 15, 2003

date==4/15/03 AND time==14:00

The date is April 15, 2003 and the time is 2:00 pm

 

Formula Evaluations

Suppose you have a formula that calculates a percentage:

 

percentage(numerator,denominator)=abs((numerator/denominator)*100)

 

In an alarm, you can call this formula.

 

Example

Triggers When...

if percentage(IBM.open,IBM.last)>2

IBM has moved more than 2%, up or down

 

System Functions

System functions are built-in functions, and you can use them in alarm expressions.

 

Example

Triggers When...

BusDays(date, USH3.expire) <= 5

There are 5 or fewer days until the expiration of USH3

 

©2008 Aspen Research Group, Ltd. All rights reserved. Terms of Use.