Login Page - Create Account

Support Board


Date/Time: Sun, 14 Sep 2025 07:52:49 +0000



Post From: Reversal Alert Condition Syntax

[2023-09-07 20:39:43]
Sawtooth - Posts: 4263
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