Add grace period support for persistent alarms #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Change
PERSISTENTalarms so they can keep triggering while the alarm condition is still true.Current behavior requires the price to cross back and then cross the target again before the alarm can trigger again. This should remain unchanged for
ONETIME, butPERSISTENTalarms should be able to re-trigger while the condition remains true.Add optional grace period syntax to the trigger column:
Examples:
Rules:
ONETIMEbehavior should not change.PERSISTENTshould behave likePERSISTENT:0.PERSISTENT:0should trigger on every loop while the condition is true.PERSISTENT:600should trigger immediately when the condition becomes true, then at most once every 600 seconds while the condition remains true.ONETIME:<seconds>should be invalid.