Login Page - Create Account

Support Board


Date/Time: Tue, 24 Mar 2026 16:40:28 +0000



Post From: Reversal Alert Condition Syntax

[2023-09-07 20:39:43]
Sawtooth - Posts: 4321
If the reversal is concurrent with the AND formula, then your AND formula will work.

If the reversal happens some bars later, you'll need to make the AND formula persistent, like this:
=IF(AND(ID26.SG1= 0, ID26.SG1[-1]= 1, ID26.SG1[-2]=1, ID50.SG1 = 1),1,IF(releasecondition,0,P4))
where this formula is in P3.

Here are some examples of persistent variables:
Spreadsheet Example Formulas and Usage: Persistent and Incrementing Variables