Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 15:23:32 +0000



Post From: Alert Condition that is only valid within X minutes of one of the conditions being TRUE

[2021-07-26 11:29:28]
Sawtooth - Posts: 3993
You would need to create a persistent variable when Condition 1 goes true, then compare its bar's timestamp with either a later bar's timestamp, or J41.
Here is an example, but you'll need to modify it:
Spreadsheet Example Formulas and Usage: Cancel Unfilled Working Order n Minutes After Entry

You'll need another IF statement in the formula to cancel the persistent variable so that it's ready for the next signal.
There are some examples here, but you'll need to modify them:
Spreadsheet Example Formulas and Usage: Persistent and Incrementing Variables