Support Board
Date/Time: Wed, 27 Nov 2024 09:58:54 +0000
Post From: Reversal Alert Condition Syntax
[2023-09-07 20:39:43] |
Sawtooth - Posts: 4120 |
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 |