Alarm Class
Defines an object that triggers an event when a specified time is reached. In addition, an optional snooze mode can be turned on when the alarm triggers that will repeat the alarm a specified number of minutes later (10 minutes by default).
Example:
The following example prints a message when the specified time has been reached. The example assumes that you have subscribed to the Initialized event for the analysis technique.
using elsystem; var: Alarm MyAlarm(Null);Method void AnalysisTechnique_Initialized( elsystem.Object sender, elsystem.InitializedEventArgs args )
begin
MyAlarm = Alarm.Create(DateTime.Create(0,0,0,15,55,0));
MyAlarm.AlarmEvent += OnAlarm;
MyAlarm.Set();
end;Method void OnAlarm(Object sender, AlarmEventArgs args)
begin
Print("5 minutes before market close");
end;
Namespace: elsystem