How do I turn off all the alarms I have setup? Can I put them "on hold" and reactivate them all later?

You have to do some setup work; thereafter it will be a one keystroke operation to suspend all alarms or turn alarm monitoring back on again. First create a schedule that runs a scan. The scan will scan the .All Symbols quotepage, examining every instrument. The scan will turn OFF the alarm monitoring options for each instrument, putting them on hold, the alarm levels will still be in place, just the monitoring state will be turned off.

The scan will use the token FLAG, the alarm flags for the instrument. There are constants in the RTL language for setting and unsetting various flags within the FLAG token. You can see a list of these constants by going to the RTL setup window and choosing "Numeric Constants and Flags" from the "Show Tokens" menu.

SET(FLAG, -ALARM_GE); /* turn off hi alarm monitoring */ This RTL statement turns OFF (note minus sign) the alarm flag for monitoring for price levels greater than or equal (thus the name ..._GE) to the HIALARM value. SET(FLAG, ALARM_GE) will turn the flag ON and resume monitoring.

Similarly, SET(FLAG, -ALARM_LE) turns off the LOALARM monitoring (LE stands for less than or equal). Thus the scan you need to turn off both alarm level monitoring is simply SET(FLAG, -ALARM_GE) AND SET(FLAG, -ALARM_LE); /* turn off hi and lo alarm monitoring */

In the RTL setup window enter this formula and click Save to save it and give it a name. Then click the Setup button and create a schedule for this Scan. The schedule setup window will appear, assign a keyboard shortcut to schedule, say F2. Thus whenever you press F2 this schedule will run the scan and put all alarms on hold. You may wish to add a Show Message action to your schedule after the Run Scan action. The Show Message action would display a message such as "All Alarm monitoring is OFF". The message will appear in the status message area of the main toolbar whenever you press F2 to run the scan.

You can do the same thing to create another shortcut, say F3, to turn alarm monitoring back on again. This second scan would have the same formula, without the minus signs, i.e. SET(FLAG, ALARM_GE) AND SET(FLAG, ALARM_LE); /* turn alarm monitoring ON */

If you have HIALARM and LOALARM values setup for every ticker, this is the scan to use. If you wish to be more selective about the symbols for which you turn alarm monitoring back on, then you could setup this scan to run only on a particular quotepage rather than .All Symbols, perhaps the .Intraday quotepage for example. Or, you could do something like this

IF (HIALARM > 0) THEN SET(FLAG, ALARM_GE) Running this scan will turn on HIALARM monitoring for all symbols that have a HIALARM value above zero.

IF (LOALARM > 0) THEN SET(FLAG, ALARM_LE) Running this scan will turn on low alarm monitoring selectively. Since we have two scans here you will have to create a schedule (with shortcut F3) that first runs one, then the other scan, two "run scan" actions. This article illustrates how you can tailor Investor/RT to do things using scans, schedules, and keyboard shortcuts to meet your requirements.